# Thread:

1. ## Change of Basis Matrix

Hey guys, I have a question on change of basis.

Find the change of basis matrix from the standard basis {(1,0,0),(0,1,0),(0,0,1)} to {(-1,1,1),(1,-1,1),(1,1,-1)}.

I'm having some trouble in figuring out what to do. Thanks in advance!

2. Let $[a,b,c]=p[-1,1,1]+q[1,-1,1]+r[1,1,-1]$

giving
$a=-p+q+r$
$b= p-q+r$
$c= p+q-r$

which solves to
$p=\frac{b+c}{2}$
$q=\frac{a+c}{2}$
$r=\frac{b+a}{2}$

3. How is this a matrix though? I'm guessing there should be real numbers.

4. The "change of basis" matrix must map the coefficients of a given vector, as written in one basis, into the coefficients of the same vector, written in the other basis.

For example, the vector [1, 0, 0], in the first basis would be written, of course, as 1[1, 0, 0]+ 0[0, 1, 0]+ 0[0, 0, 1] so its coefficents are [1, 0, 0] (which is why it is the 'standard' basis). In terms of the other basis, [1, 0, 0]= a[-1, 1, 1]+ b[1, -1, 1]+ c[1, 1, -1]= [-a+b+c, a-b+c, a+b-c]. So we must have -a+ b+ c= 1, a- b+ c= 0, a+ b- c= 0. Adding the first two equatins, 2c= 1 so c= 1/2. Adding the last two equations, 2a= 0 so a= 0, Adding the first and last equations, 2b= 1 so b= 1/2. The coefficients are [0, 1/2, 1/2].
But it should be easy to see that if we multiply any matrix by [1, 0, 0] we get $\begin{bmatrix}a & b & c \\ d & e & f \\ g & h & i\end{bmatrix}\begin{bmatrix}1 \\ 0 \\ 0\end{bmatrix}= \begin{bmatrix}a \\ d\\ f\end{bmatrix}$, the first column of the matrix. So the first column of the "change of basis" matrix must be $\begin{bmatrix}0 \\\frac{1}{2}\\ \frac{1}{2}\end{bmatrix}$. Do the same with the second and third vectors in each basis to get the second and third columns.

5. Originally Posted by HallsofIvy
So the first column of the "change of basis" matrix must be $\begin{bmatrix}0 \\\frac{1}{2}\\ \frac{1}{2}\end{bmatrix}$.
I don't understand how you got $\begin{bmatrix}0 \\\frac{1}{2}\\ \frac{1}{2}\end{bmatrix}$. How do we know what d and g are in the "change of basis" matrix?

Originally Posted by HallsofIvy
Do the same with the second and third vectors in each basis to get the second and third columns.
Shouldn't the first vector that you multiply by be (-1,1,1) and not (1,0,0)? And then the second and third vectors would be (1,-1,1) and (1,1,-1) respectively? Just a bit confused but thanks for taking the time to help.

6. Originally Posted by Fel
I don't understand how you got $\begin{bmatrix}0 \\\frac{1}{2}\\ \frac{1}{2}\end{bmatrix}$
I'm like you here.
Also, if I understood well, Halls made a little mistake when he wrote $\begin{bmatrix}a & b & c \\ d & e & f \\ g & h & i\end{bmatrix}\begin{bmatrix}1 \\ 0 \\ 0\end{bmatrix}= \begin{bmatrix}a \\ d\\ f\end{bmatrix}$, I think it should be $\begin{bmatrix}a & b & c \\ d & e & f \\ g & h & i\end{bmatrix}\begin{bmatrix}1 \\ 0 \\ 0\end{bmatrix}= \begin{bmatrix}a \\ d\\ g\end{bmatrix}$.

7. I am not sure that I fully understand what you need.
The matric $C = \left[ {\begin{array}{rrr}<br /> { - 1} & 1 & 1 \\<br /> 1 & { - 1} & 1 \\<br /> 1 & 1 & { - 1} \\<br /> <br /> \end{array} } \right]^{ - 1} = \frac{1}<br /> {2}\left[ {\begin{array}{ccc}<br /> 0 & 1 & 1 \\<br /> 1 & 0 & 1 \\<br /> 1 & 1 & 0 \\<br /> <br /> \end{array} } \right]$ when applied to any point will the “coordinates” in the new base.

Example: $<br /> C \cdot \left[ {\begin{array}{r}<br /> 2 \\<br /> { - 4} \\<br /> 6 \\<br /> <br /> \end{array} } \right] = \left[ {\begin{array}{r}<br /> 1 \\<br /> { - 4} \\<br /> 1 \\ \end{array} } \right]$ so $\left\langle {2, - 4,6} \right\rangle = \left\langle { - 1,1,1} \right\rangle + 4\left\langle {1, - 1,1} \right\rangle - \left\langle {1,1, - 1} \right\rangle$

8. Originally Posted by Plato
The matric $C = \left[ {\begin{array}{rrr}<br /> { - 1} & 1 & 1 \\<br /> 1 & { - 1} & 1 \\<br /> 1 & 1 & { - 1} \\<br /> <br /> \end{array} } \right]^{ - 1} = \frac{1}<br /> {2}\left[ {\begin{array}{ccc}<br /> 0 & 1 & 1 \\<br /> 1 & 0 & 1 \\<br /> 1 & 1 & 0 \\<br /> <br /> \end{array} } \right]$
How did you get that inverse? I keep getting something else.

9. Originally Posted by Fel
How did you get that inverse? I keep getting something else.
I used a computer algebra system.
Attached Thumbnails
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 18, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 20, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "github"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "english_confidence": 0.9199082851409912, "perplexity_flag": "middle"}