I'm trying to find all possible cubic equations that can be found from two scenarios.
The first scenario is a lot like the one I asked a couple of days ago on Stack Overflow, found here: https://stackoverflow.com/questions/31909731/finding-all-possible-quadratic-equations-from-two-points
Except this time, I have three static points, along with one dynamic integer variable. The three points represent points that all qualifying cubic functions must pass through, and the dynamic variable is what changes the shape of the line.
I'm really not sure where to begin with this.
The second scenario is quite a bit different, in which there are two static points, and then there are two dynamic integer variables. The two points represent points that all qualifying cubic functions should be able to pass through, and the two dynamic variables change the shape of the line, while keeping the line within the two points.
I think that I have an idea on how to solve this, but I just wanted to make sure that it was legitimate. I was going to solve pretty much exactly the way the quadratic situation was found, and just bundle the x cubed and x squared parts together.
Basically, I want to find the 2 general equations that express all equations that can be found from the above scenarios, please.