Proving Symmetric Matrix Determinant is Null

  • Thread starter Thread starter Oudeis Eimi
  • Start date Start date
  • Tags Tags
    Determinant
Oudeis Eimi
Messages
77
Reaction score
6
Hi, I'm tutoring someone on lineal algebra (upper high-school level).
We're going through some exercises, but we're stuck with a trivial
looking one.

Homework Statement


Show that the following determinant is null:

\left| \begin{array}{ccc}
1 & \cos x & \cos 2x \\
\cos x & \cos 2x & \cos 3x \\
\cos 2x & \cos 3x & \cos 4x \end{array} \right|

Homework Equations



$$\cos 2x = \cos^2 x - \sin^2 x$$
$$\cos 3x = \cos^3 x - 3 \cos x \sin^2 x$$
$$\cos 4x = \cos^4 x - 6 \cos^2 x \sin^2 x + \sin^4 x$$

Expansion of a determinant by the elements of a row or column.

The Attempt at a Solution



I tried a brute force approach by expanding the cosines and computing the determinant directly in terms of $$\sin x$$ and $$\cos x$$, but that's an inelegant approach. There has to be a trivial, neater way to show this, but I seem to not be in my brightest lately, as I can't find it. I suspect I should be using the fact that the matrix is symmetric. Any ideas?
 
Physics news on Phys.org
Oudeis Eimi said:
Hi, I'm tutoring someone on lineal algebra (upper high-school level).
We're going through some exercises, but we're stuck with a trivial
looking one.

Homework Statement


Show that the following determinant is null:

\left| \begin{array}{ccc}
1 & \cos x & \cos 2x \\
\cos x & \cos 2x & \cos 3x \\
\cos 2x & \cos 3x & \cos 4x \end{array} \right|

Homework Equations



$$\cos 2x = \cos^2 x - \sin^2 x$$
$$\cos 3x = \cos^3 x - 3 \cos x \sin^2 x$$
$$\cos 4x = \cos^4 x - 6 \cos^2 x \sin^2 x + \sin^4 x$$

Expansion of a determinant by the elements of a row or column.

The Attempt at a Solution



I tried a brute force approach by expanding the cosines and computing the determinant directly in terms of $$\sin x$$ and $$\cos x$$, but that's an inelegant approach. There has to be a trivial, neater way to show this, but I seem to not be in my brightest lately, as I can't find it. I suspect I should be using the fact that the matrix is symmetric. Any ideas?

There is an easier way, but maybe not completely suitable for an upper high-school student.

First note that ##\cos(kx) = \text{Re}(e^{ikx})\:\: (i = \sqrt{-1})##, and consider the linear system of equations in real ##y_1,y_2, y_3:##
y_1 + e^{ix} y_2 + e^{2ix} y_3 = 0\\<br /> e^{ix} y_1 + e^{2ix} y_2 + e^{3ix} y_3 = 0\\<br /> e^{2ix} y_1 + e^{3ix} y_2 + e^{4ix} y_3 = 0,<br />
Taking the real parts gives the equations involving cos(kx).

We see that the second equation is obtained from the first by multiplying both sides by ##e^{ix}##, and the third is obtained from the first by multiplying both sides by ##e^{2ix}##. Therefore, the second and third equations are just scalar multliples of the first one, so the system has coefficient matrix of rank 1, hence of zero determinant.
 
Ray Vickson said:
There is an easier way, but maybe not completely suitable for an upper high-school student.

First note that ##\cos(kx) = \text{Re}(e^{ikx})\:\: (i = \sqrt{-1})##, and consider the linear system of equations in real ##y_1,y_2, y_3:##
y_1 + e^{ix} y_2 + e^{2ix} y_3 = 0\\<br /> e^{ix} y_1 + e^{2ix} y_2 + e^{3ix} y_3 = 0\\<br /> e^{2ix} y_1 + e^{3ix} y_2 + e^{4ix} y_3 = 0,<br />
Taking the real parts gives the equations involving cos(kx).

We see that the second equation is obtained from the first by multiplying both sides by ##e^{ix}##, and the third is obtained from the first by multiplying both sides by ##e^{2ix}##. Therefore, the second and third equations are just scalar multliples of the first one, so the system has coefficient matrix of rank 1, hence of zero determinant.

Oh, of course, it was so obvious. Now I feel silly ;-)
Thanks a lot for this, this is the sort of solution I was looking for (I agree, maybe better suitable for a college freshman than a high-schooler, but I think I can make it work for him).
Again, thanks.
 
There's no reason to think Det(A + Bi) = 0 should imply Det(A) = 0.

As a concrete example, consider the matrix

\left( \begin{matrix} 1 &amp; 0 \\ 1 &amp; -1 \end{matrix} \right)

which is the real part of the matrix

\left( \begin{matrix} 1 &amp; i \\ i+1 &amp; i-1 \end{matrix} \right)
 
Ray Vickson said:
There is an easier way, but maybe not completely suitable for an upper high-school student.

First note that ##\cos(kx) = \text{Re}(e^{ikx})\:\: (i = \sqrt{-1})##, and consider the linear system of equations in real ##y_1,y_2, y_3:##
y_1 + e^{ix} y_2 + e^{2ix} y_3 = 0\\<br /> e^{ix} y_1 + e^{2ix} y_2 + e^{3ix} y_3 = 0\\<br /> e^{2ix} y_1 + e^{3ix} y_2 + e^{4ix} y_3 = 0,<br />
Taking the real parts gives the equations involving cos(kx).

We see that the second equation is obtained from the first by multiplying both sides by ##e^{ix}##, and the third is obtained from the first by multiplying both sides by ##e^{2ix}##. Therefore, the second and third equations are just scalar multliples of the first one, so the system has coefficient matrix of rank 1, hence of zero determinant.

I don't think that's an entirely legitimate argument. It's pretty easy to write down a complex matrix with zero determinant with a real part that has nonzero determinant. And looking at the case x=1 numerically I get that it's rank 2, not rank 1.
 
Dick said:
I don't think that's an entirely legitimate argument. It's pretty easy to write down a complex matrix with zero determinant with a real part that has nonzero determinant. And looking at the case x=1 numerically I get that it's rank 2, not rank 1.

Right. After posting the argument I did worry about that, and became much less confident in the original argument.
 
Heh. Welcome to the club Ray. I've done that more than once on these forums, sometimes in a very embarrassing fashion.
 
Let's see if we can construct the 3rd column from a linear combination of the first 2.
The third column has as its first entry:
$$\cos2x=2\cos^2x-1$$
That might be: ##2\cos x \times (\text{2nd column}) - (\text{1st column})##
I checked and found it also works for the 2nd row, but the 3rd row is not so easy to check.


So let's go to the Euler formula approach.
Your determinant is equal to:

$$\frac 1 8 \left| \begin{matrix}
2 & \exp(ix) + \exp(-ix) & \exp(2ix) + \exp(-2ix) \\
\exp(ix) + \exp(-ix) & \exp(2ix) + \exp(-2ix) & \exp(3ix) + \exp(-3ix) \\
\exp(2ix) + \exp(-2ix) & \exp(3ix) + \exp(-3ix) & \exp(4ix) + \exp(-4ix)
\end{matrix} \right|$$

So let's multiply the 2nd column by ##2\cos x = \exp(ix) + \exp(-ix)##.

$$(\exp(ix) + \exp(-ix)) \cdot \begin{pmatrix}
\exp(ix) + \exp(-ix) \\
\exp(2ix) + \exp(-2ix) \\
\exp(3ix) + \exp(-3ix)
\end{pmatrix} =
\begin{pmatrix}
\exp(2ix) + \exp(-2ix) & + & 2 \\
\exp(3ix) + \exp(-3ix) & + & \exp(ix) + \exp(-ix)\\
\exp(4ix) + \exp(-4ix) & + & \exp(2ix) + \exp(-2ix)
\end{pmatrix}$$

Yes... that does look somewhat like a combination of the 1st and 3rd column...

In other words, the 3 columns are dependent, meaning the determinant is zero ##\Box##.
 
I like Serena said:
Let's see if we can construct the 3rd column from a linear combination of the first 2.
The third column has as its first entry:
$$\cos2x=2\cos^2x-1$$
That might be: ##2\cos x \times (\text{2nd column}) - (\text{1st column})##
I checked and found it also works for the 2nd row, but the 3rd row is not so easy to check.

Of course, once you do that for any single row or column, you are done as far as proving the determinant is zero, no?
 
  • #10
LCKurtz said:
Of course, once you do that for any single row or column, you are done as far as proving the determinant is zero, no?

Yes.
If any single row or column is a linear combination of the others, the determinant is zero.
 
  • #11
We can salvage Ray's argument if we can find a real solution for the y's amongst the two-dimensional space of complex solutions.

Writing e^{ix} = a + bi, the one complex equation becomes

y_1 + (a+ bi) y_2 + (a^2 -b ^2 + 2abi) y_3 = 0

And now we can read off a real solution by inspection: if we set y_3 = 1 and y_2 = -2a, then the imaginary parts cancel, leaving a real value for y_1.

Since these y's are real, they remain a solution to the original system of equations after taking the real part.

Now that we know the solution, we can hide away the use of complex numbers so we can look clever: the solution is
  • y_1 = -1
  • y_2 = -2 \cos(x)
  • y_3 = 1
and then we claim an identity
-\cos nx - 2 \cos x \cos (n+1) x + \cos (n+2)x = 0
or to be extra fancy:
2 \cos x \cos nx = \cos (n-1)x + \cos(n+1) x
which is easy to check by applying the angle addition formula on the right hand side. (Or applying the sum-of-cosines identity)
 
Last edited:
  • #12
I like Serena said:
Let's see if we can construct the 3rd column from a linear combination of the first 2.
The third column has as its first entry:
$$\cos2x=2\cos^2x-1$$
That might be: ##2\cos x \times (\text{2nd column}) - (\text{1st column})##
I checked and found it also works for the 2nd row, but the 3rd row is not so easy to check.


So let's go to the Euler formula approach.
Your determinant is equal to:

$$\frac 1 8 \left| \begin{matrix}
2 & \exp(ix) + \exp(-ix) & \exp(2ix) + \exp(-2ix) \\
\exp(ix) + \exp(-ix) & \exp(2ix) + \exp(-2ix) & \exp(3ix) + \exp(-3ix) \\
\exp(2ix) + \exp(-2ix) & \exp(3ix) + \exp(-3ix) & \exp(4ix) + \exp(-4ix)
\end{matrix} \right|$$

So let's multiply the 2nd column by ##2\cos x = \exp(ix) + \exp(-ix)##.

$$(\exp(ix) + \exp(-ix)) \cdot \begin{pmatrix}
\exp(ix) + \exp(-ix) \\
\exp(2ix) + \exp(-2ix) \\
\exp(3ix) + \exp(-3ix)
\end{pmatrix} =
\begin{pmatrix}
\exp(2ix) + \exp(-2ix) & + & 2 \\
\exp(3ix) + \exp(-3ix) & + & \exp(ix) + \exp(-ix)\\
\exp(4ix) + \exp(-4ix) & + & \exp(2ix) + \exp(-2ix)
\end{pmatrix}$$

Yes... that does look somewhat like a combination of the 1st and 3rd column...

In other words, the 3 columns are dependent, meaning the determinant is zero ##\Box##.

Another way (correct this time!) is to attack the linear system Ay = 0 directly. The first equation gives ##y_1 = -\cos(x) y_2 - \cos(2x)y_3##. Substituting that into the other two equations and doing elementary trigonometric simplification gives
(2): \; \cos(x)( -\cos(x) y_2 - \cos(2x)y_3) + \cos(2x) y_2 + \cos(3x)y_3 = 0 \Longrightarrow -\sin^2(x) (y_2 + 2 \cos(x) y_3) = 0 \\<br /> (3):\; \cos(2x)(-\cos(x) y_2 - \cos(2x)y_3) + \cos(3x)y_2 + \cos(4x)y_3 = 0 \Longrightarrow <br /> -2 \cos(x) \sin^2(x) (y_2 + 2\cos(x) y_3) = 0,
so for ##x \neq 0, \pi/2, \pi## we have ##y_2 = -2 \cos(x) y_3## with ##y_3## arbitrary. That means that for ##x \neq 0, \pi/2, \pi## there are non-zero solutions ##(y_1,y_2,y_3)##, so the determinant must vanish.
 
  • #13
Dick said:
I don't think that's an entirely legitimate argument. It's pretty easy to write down a complex matrix with zero determinant with a real part that has nonzero determinant. And looking at the case x=1 numerically I get that it's rank 2, not rank 1.

Damn, you're right. Something else I didn't think about. Seems my linear algebra is rather rusty.
 
  • #14
That should do it. Thanks both Ray and Serena, greatly appreciated (all others who participated in the thread as well).
 
  • #15
Oudeis Eimi said:
That should do it. Thanks both Ray and Serena, greatly appreciated (all others who participated in the thread as well).

Thank you for bringing a nice and interesting problem to our attention!
 
  • #16
I like Serena said:
Thank you for bringing a nice and interesting problem to our attention!

Yours and Hurkyl's solutions are nice. They also show that the determinant of an nxn (n>=3) matrix following the same pattern is also zero.
 
Back
Top