# Math Help - Multiplying out matrices

1. ## [SOLVED] Multiplying out matrices

Wasn't sure where to put this exactly. It's in a question to do with diagonalising matrices (using the matrix of eigenvectors and what not), and I have the solution in front of me, but I'm stuck on how they get from one step to another. I understand the solution up to here...

$\frac{1}{-2i}\frac{2}{\sqrt{2}}\left(\begin{array}{cc}-2-2i & 0 \\ 0 & 2-2i\end{array}\right)$

...which I simplified to...

$\frac{1}{-i\sqrt{2}}\left(\begin{array}{cc}-2-2i & 0 \\ 0 & 2-2i\end{array}\right)$

...or...

$\left(\begin{array}{cc}(2+2i)/(i\sqrt{2}) & 0 \\ 0 & (2-2i)/(-i\sqrt{2})\end{array}\right)$

Now, the answer is apparently $\left(\begin{array}{cc}(1-i)/\sqrt{2} & 0 \\ 0 & (1+i)/\sqrt{2}\end{array}\right)$, but no matter how I manipulate that above, I can't get this answer.

Any ideas where I'm going wrong / what I'm missing?

2. Wolfram Mathematica confirms your result and rejects the "apparent" answer. I, too, cannot see what's wrong with your steps.

3. Sorry, I was wrong, at least when i is supposed to be the imaginary unit.

4. So are you saying my answer's right or not?

5. Sorry, had to figure it out for myself first. If $i$ is a real number, you're right. But I suppose that $i$ is the imaginary unit. In that case, note that

$\frac{1}{i} = -i$, hence $\frac{1}{-2\,i} = \frac{i}{2}$. Furthermore, $i \cdot i = -1$. The rest should be easy.

6. $i$ is $\sqrt{-1}$, not a real number.

So then I would get $\frac{i}{\sqrt{2}}\left(\begin{array}{cc}-2-2i & 0 \\ 0 & 2-2i\end{array}\right)$, which I get to be equal to $\left(\begin{array}{cc}(-2i+2)/\sqrt{2} & 0 \\ 0 & (2i+2)/\sqrt{2}\end{array}\right)$

Still not seeing how to get to the given answer.

7. The apparent answer is wrong.

$\frac{2 + 2i}{i\sqrt{2}} = \sqrt{2}(1 - i)$
$\frac{2 - 2i}{-i\sqrt{2}} = \sqrt{2}(1 + i)$

8. Well if that's the answer instead of what's written on my solution then the matrix would be...

$\left(\begin{array}{cc}\sqrt{2}(1 - i) & 0 \\ 0 & \sqrt{2}(1 + i)\end{array}\right)$

That would still be a diagonal matrix, wouldn't it?

9. Originally Posted by chella182
Well if that's the answer instead of what's written on my solution then the matrix would be...

$\left(\begin{array}{cc}\sqrt{2}(1 - i) & 0 \\ 0 & \sqrt{2}(1 + i)\end{array}\right)$

That would still be a diagonal matrix, wouldn't it?
Yes

10. Okay, cheers. Could easily be a typo, the only difference between the answer you gave and the answer I have here is the "over" sign between the complex numbers and the $\sqrt{2}$s. I'll e-mail him, see what he says.

11. Originally Posted by chella182
Wasn't sure where to put this exactly. It's in a question to do with diagonalising matrices (using the matrix of eigenvectors and what not), and I have the solution in front of me, but I'm stuck on how they get from one step to another. I understand the solution up to here...

$\frac{1}{-2i}\frac{2}{\sqrt{2}}\left(\begin{array}{cc}-2-2i & 0 \\ 0 & 2-2i\end{array}\right)$

...which I simplified to...

$\frac{1}{-i\sqrt{2}}\left(\begin{array}{cc}-2-2i & 0 \\ 0 & 2-2i\end{array}\right)$

...or...

$\left(\begin{array}{cc}(2+2i)/(i\sqrt{2}) & 0 \\ 0 & (2-2i)/(-i\sqrt{2})\end{array}\right)$

Now, the answer is apparently $\left(\begin{array}{cc}(1-i)/\sqrt{2} & 0 \\ 0 & (1+i)/\sqrt{2}\end{array}\right)$, but no matter how I manipulate that above, I can't get this answer.

Any ideas where I'm going wrong / what I'm missing?

my suspicion is that you have left out a minor detail in this question. Were you instructed to orthogonally diagonalize the matrix? It appears to me that that is precisely what has been done.

Also here is how you go from your last step to their answer (minus the making sure it has unit norm).

$\left(\begin{array}{cc}\frac{i^3}{i^3}\frac{2+2i}{ i\sqrt{2}} & 0 \\ 0 & \frac{i}{i}\frac{2-2i}{-i\sqrt{2}}\end{array}\right)$ Notice we are just multiplying by a carefully chosen 1 here in both terms (to get rid of the imaginary stuff in the denominator.

$\left(\begin{array}{cc}\frac{2i^3+2i^4}{i^4\sqrt{2 }} & 0 \\ 0 & \frac{2i-2i^2}{-i^2\sqrt{2}}\end{array}\right)=\left(\begin{array} {cc}\frac{-2i+2}{\sqrt{2}} & 0 \\ 0 & \frac{2i+2}{\sqrt{2}}\end{array}\right)=\left(\beg in{array}{cc}\frac{2(1-i)}{\sqrt{2}} & 0 \\ 0 & \frac{2(1+i)}{\sqrt{2}}\end{array}\right)$

Now all you have to do is scale both things on the diagonal so that they have norm 1. So we notice that:

$|\frac{1\pm i}{\sqrt2}|=(\frac{1}{\sqrt2})^2+(\pm \frac{1}{\sqrt2})^2=\frac{1}{2}+\frac{1}{2}=1$

This is why I believe they have supplied the answer that they did, to make sure the entries had norm 1. This is an important step to remember in the process of orthogonal diagonalization. Hope I didn't catch ya too late.

12. When you diagonalise a matrix, i.e. find matrices P,D such that A=P^-1*D*P and D is diagonal the trace and determinant of D and A must be the same before and afterwards.
For 2*2 matrices checking the trace is an easy and good check to perform.
I've not heard the term orthogonal diagonalization before, and a quick Google search suggests that it it is a diagonalization where P is an orthogonal matrix.
That doesn't seem to match up with what Gamma has posted.
I also don't understand what changing a diagonal matrix so all its entries have norm 1 is
supposed to achieve since the final matrix is usually not then similar to the starting matrix. In fact It doesn't really have anything in common with it. Also since the matrix has complex entries wouldn't you look for a diagonlization using unitary rather than orthogonal matrices?
I'm confused.

13. The question says...

Find the eigenvalues and eigenvectors of the matrix

$R=\frac{\sqrt{2}}{2}\left(\begin{array}{cc} 1 & -1 \\ 1 & 1 \end{array}\right)$

and find an invertible $2\times2$ matrix $G$ such that $G^{-1}RG$ is a diagonal matrix, compute $G$ and $G^{-1}RG$

Nothing about orthogonal.

14. OK so in fact we have
$R=\left(\begin{array}{cc}\frac{\sqrt{2}}{2} & \frac{-\sqrt{2}}{2} \\\frac{\sqrt{2}}{2} & \frac{\sqrt{2}}{2}\end{array}\right)$

That is the matrix of a 45 degree rotation. Therefore it clearly has complex eigenvalues that are conjugates of each other, and since the determinant is 1 they both have norm 1. So R is similar to the complex matrix
$\left(\begin{array}{cc}e^\frac{i\pi}{4} & 0 \\ 0 & e^\frac{-i\pi}{4}\end{array}\right)$ which if you express it using ordinary complex numbers is

$\frac{\sqrt{2}}{2}\left(\begin{array}{cc}1+i & 0 \\ 0 & 1-i\end{array}\right)$

I know I have shown no working for this, but every rotation matrix has an analogous diagonal form to this one.

The fact I got the inverse matrix from the answer you have is irrelevant - matrices with the same trace and determinant are all similar, so I am just going to get a different G from you, or you can swap the eigenvalues around.
Now you know the correct eigenvalues it should be routine to calculate the eigenvectors and hence G. I can't do that in my head though!

15. This isn't really helping me with my initial problem, though. I just didn't understand how to get the answer that's given in the solution. The solution tells me how to get the eigenvalues and eigenvectors, which are...

$\frac{1-i}{\sqrt{2}}$ with eigenvector $\left(\begin{array}{c}1 \\ i \end{array}\right)$, and $\frac{1+i}{\sqrt{2}}$ wth eigenvector $\left(\begin{array}{c}1 \\ -i \end{array}\right)$

It then tells me that "an invertible matrix which diagonalises a matrix is given by a matrix of eigenvectors", giving me a $G$ of $\left(\begin{array}{cc}1 & i \\ 1 & -i\end{array}\right)$, therefore $G^{-1}=\frac{1}{-2i}\left(\begin{array}{cc}-i & -1 \\ -i & 1\end{array}\right)$

My problem is that the $G^{-1}RG$ I get is different to the one given in the solution here.

Also, something else I don't get in the given solution (there's probably an easier explanation to this) is this...

$G^{-1}RG=\frac{1}{-2i}\left(\begin{array}{cc}-i & -1 \\ -i & 1\end{array}\right)\frac{\sqrt{2}}{2}\left(\begin{ array}{cc}1 & -1 \\ 1 & 1\end{array}\right)\left(\begin{array}{cc}1 & 1 \\ i & -i\end{array}\right)$
$=\frac{1}{-2i}\left(\begin{array}{cc}-i & -1 \\ -i & 1\end{array}\right)\frac{2}{\sqrt{2}}\left(\begin{ array}{cc}1-i & 1+i \\ 1+i & 1-i\end{array}\right)$

See how the $\frac{\sqrt{2}}{2}$ swapped to a $\frac{2}{\sqrt{2}}$ from the first line to the 2nd? Why is that?

Page 1 of 2 12 Last