Solving cubic equation with matrices

  • Thread starter Thread starter Beam me down
  • Start date Start date
  • Tags Tags
    Cubic Matrices
Click For Summary
To solve for the coefficients b, c, and d in the cubic equation y=x^3+bx^2+cx+d using the points (-2,-13), (-1,0), and (1,2), three equations are needed, which can be derived from the given points. The discussion highlights the importance of correctly setting up the matrix system, suggesting the removal of the first row from the matrix representing the cubic equation to facilitate solving for the unknowns. It emphasizes that three equations with three unknowns are sufficient for this problem, and that matrix inversion may not be the best approach due to the structure of the equations. The final equation, as per the book, is y=x^3-2x^2+3, which indicates the correct values for b, c, and d. Proper matrix setup is crucial for obtaining the correct solution.
Beam me down
Messages
46
Reaction score
0
I need to find b, c and d in a cubic equation of the form y=x3+bx2+cx+d (ie. a=1 if a is the coefficient of x3). I've been given three points (-2,-13), (-1,0), (1,2). If I had a fourth piece of data i could solve the equation I suppose, but with only three I've really struggled. Here's what I've got so far:

http://img71.imageshack.us/img71/9821/matrix0iw.gif

(1) is just the set out
(2) I've entered the data
(3) I've rearranged the equation

But when I thin input the equation on my calculator (the TI-89 Cas calc) I get a matrix in which every row has x and y in it. But that solution doesn't agree with the back of the book, which states that:
b=-2
c=0
d=3

which indicates a final equation of y=x3-2x2+3

I've thought of using a matrix system which ommits the top row of all three matrices, but of course that equation system isn't defined.

I'd really apprieciate any help, thanks.
 
Last edited by a moderator:
Physics news on Phys.org
3 pieces of data is enough, you'll have 3 equations and 3 unknowns. Remove the first [x^3 x^2 x 1] row from the first matrix and the first [y] row from the last (but don't change the [1 b c d]^T matrix). It's representing the equation y=x^3+bx^2+cx+d, which doesn't help you solve for b, c, and d.
 
shmoe said:
3 pieces of data is enough, you'll have 3 equations and 3 unknowns. Remove the first [x^3 x^2 x 1] row from the first matrix and the first [y] row from the last (but don't change the [1 b c d]^T matrix). It's representing the equation y=x^3+bx^2+cx+d, which doesn't help you solve for b, c, and d.

So your suggesting the following matrix?

http://img97.imageshack.us/img97/8471/matrix28pd.gif

Becuase the matrix to the negative power is undefined, and even if it were, a matrix with 4 columns can't multiply with a matrix of 3 rows.
 
Last edited by a moderator:
So your suggesting the following matrix?

No, he's suggesting

Code:
/-8  4 -2  1 \ /1\   /-13\
|-1  1 -1  1 | |b| = |  0|
\ 1  1  1  1 / |c|   \  2/
               \d/

Obviously you can't simply invert your matrix to solve this one. So use something else. :-p


Incidentally, is there any particular reason you put a known into your unknown vector? You could use a matrix inversion, if you really wanted to, and set the problem up right.
 

Similar threads

  • · Replies 69 ·
3
Replies
69
Views
9K
Replies
30
Views
3K
Replies
4
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 7 ·
Replies
7
Views
10K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
2
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K