I tried researching and found that I can use a system of linear equations and solve by an inverse ma

iristh3virusoo2

iristh3virusoo2

Answered question

2022-02-24

I tried researching and found that I can use a system of linear equations and solve by an inverse matrix to find the cubic equation given 4 points which satisfy the function f(x) of the general form f(x)=ax3+bx2+cx+d
I can also find a cubic of the form ax3+d with no x2 or x term from 2 points, however I was wondering how one would go about finding a full general form cubic given only the minimum and maximum.
Example minimums could be (-1,4) and (2,3)

Answer & Explanation

Randall Odom

Randall Odom

Beginner2022-02-25Added 5 answers

Well, since the extrema are the roots of the derivate, it would be nice to have the minimum and the maximum (and an initial condition too.)
publilandiaik8

publilandiaik8

Beginner2022-02-26Added 5 answers

First find a quadratic that has zeros at the x-values of your points. Then integrate. Then adjust the constant to get the correct y-values. Using your example, we need a quadratic that passes through the points (-1,0) and (2,0). So it must have the form g(x+1)(x2)=gx2gx2g.
Integrate this to get f(x)=g3x3g2x22gx+.
The y-values of your points insist that f(-1)=4 and f(2)=3. This gives two linear equations:
f(1)=g3g2+2g+C=4
f(2)=8g32g4g+C=3
which we can solve to get g=19 and C=9127. This gives
f(x)=127x3118x229x+9127.

Do you have a similar question?

Recalculate according to your conditions!

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?