Coordinates relative to a basis (linear algebra)

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
4 replies · 17K views
hocuspocus102
Messages
44
Reaction score
0

Homework Statement


The set B = {-4-x^2, -8+4x-2x^2, -14+12x-4x^2} is a basis for P2. Find the coordinates of p(x) = (-2 +0x -x^2) relative to this basis.


Homework Equations


n/a


The Attempt at a Solution


so the set would be in a matrix like this:
|-4 0 -1|
|-8 4 -2|
|-14 12 -4| and multiplying this by

|-2|
| 0|
|-1| as the vector for p(x) gives

| 9|
|18|
|32| but that's not the right answer and I thought that's how you'd do it.
 
Physics news on Phys.org
hocuspocus102 said:

Homework Statement


The set B = {-4-x^2, -8+4x-2x^2, -14+12x-4x^2} is a basis for P2. Find the coordinates of p(x) = (-2 +0x -x^2) relative to this basis.


Homework Equations


n/a


The Attempt at a Solution


so the set would be in a matrix like this:
|-4 0 -1|
|-8 4 -2|
|-14 12 -4| and multiplying this by

|-2|
| 0|
|-1| as the vector for p(x) gives

| 9|
|18|
|32| but that's not the right answer and I thought that's how you'd do it.
You're going at this the wrong way around. You want the vector c = <c1, c2, c3>T such that Ac = <-2, 0, -1>T, where A is the matrix you have above.
 
oh ok, so if multiply A inverse times <-2, 0, -1> would it be right? I tried that and got <-5/2, 1, 12> which I checked but is still the wrong answer. Did I just put the coordinates in the wrong order or something? because the inverse thing makes sense but it didn't accept my answer. thanks.
 
oh ok, I figured it out, thanks a lot!