Fun squared

Algebra Level 5

Let S = ( k = 1 4 x k x k + 1 ) 2 S=\left(\sum_{k=1}^{4}x_kx_{k+1}\right)^2

Find the maximum of S S when k = 1 5 x k 2 = 2 \sum_{k=1}^{5}x_k^2=2 where x 1 , . . . , x 5 x_1,...,x_5 are positive real numbers.

Inspiration

You might enjoy this as well!


The answer is 3.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

First I'll show only what's necessary:

From AM-GM inequality, we have x 1 2 + 1 3 x 2 2 2 3 x 1 x 2 2 3 x 2 2 + 1 2 x 3 2 2 3 x 2 x 3 1 2 x 3 2 + 2 3 x 4 2 2 3 x 3 x 4 1 3 x 4 2 + x 5 2 2 3 x 4 x 5 \begin{aligned} x_1^2+\frac{1}{3}x_2^2 &\ge \frac{2}{\sqrt{3}}x_1x_2\\ \frac{2}{3}x_2^2+\frac{1}{2}x_3^2 &\ge \frac{2}{\sqrt{3}}x_2x_3\\ \frac{1}{2}x_3^2+\frac{2}{3}x_4^2 &\ge \frac{2}{\sqrt{3}}x_3x_4\\ \frac{1}{3}x_4^2+x_5^2 &\ge \frac{2}{\sqrt{3}}x_4x_5\\ \end{aligned} Sum them up, we get x 1 2 + x 2 2 + x 3 2 + x 4 2 + x 5 2 2 3 ( x 1 x 2 + x 2 x 3 + x 3 x 4 + x 4 x 5 ) x_1^2+x_2^2+x_3^2+x_4^2+x_5^2 \ge \frac{2}{\sqrt{3}}(x_1x_2+x_2x_3+x_3x_4+x_4x_5) It follows immediately that the maximum of S S is 3 \boxed{3} . It occurs when ( x 1 , x 2 , x 3 , x 4 , x 5 ) = ( 1 6 , 1 2 , 2 3 , 1 2 , 1 6 ) . (x_1,x_2,x_3,x_4,x_5) = \left(\frac{1}{\sqrt{6}},\frac{1}{\sqrt{2}},\sqrt{\frac{2}{3}},\frac{1}{\sqrt{2}},\frac{1}{\sqrt{6}}\right).

Here's how I know why I should divide them like that:

We first notice that the summation inside S S is not cyclic. So we need to come up with a new kind of separation. Let 0 < k < 1 0<k<1 be an unknown real number. Since we have x i 2 = 2 \sum x_i^2=2 , we should do something with it. We start out by x 1 2 + k x 2 2 2 k x 1 x 2 . x_1^2+kx_2^2 \ge 2\sqrt{k}x_1x_2. The number k x 2 2 kx_2^2 is a fraction of x 2 2 x_2^2 that we want to combine with x 1 2 x_1^2 . It means that we use only k x 2 2 kx_2^2 , not an entire x 2 2 x_2^2 . Now we have ( 1 k ) x 2 2 (1-k)x_2^2 left. Our next goal is to combine with a fraction of x 3 2 x_3^2 . The question arises that how much do I need to grab from an entire x 3 2 x_3^2 ? The answer is k 1 k \frac{k}{1-k} , why? Because we need a fraction of x 3 2 x_3^2 so that when we apply AM-GM, the right hand side is still 2 k x 2 x 3 2\sqrt{k}x_2x_3 , just like the first one. If we do like that, when we sum up, we would get 2 k x i x i + 1 2\sqrt{k} \sum x_ix_{i+1} . Now, we have ( 1 k ) x 2 2 + ( k 1 k ) x 3 2 2 k x 2 x 3 . (1-k)x_2^2+\left(\frac{k}{1-k}\right)x_3^2 \ge 2\sqrt{k}x_2x_3. Similarly, we now have ( 1 k 1 k ) x 3 2 = ( 1 2 k 1 k ) x 3 2 \left(1-\frac{k}{1-k}\right)x_3^2=\left(\frac{1-2k}{1-k}\right)x_3^2 left. Iterate this method, we will get these inequalities:- ( 1 2 k 1 k ) x 3 2 + ( k k 2 1 2 k ) x 4 2 2 k x 3 x 4 , \left(\frac{1-2k}{1-k}\right)x_3^2 +\left(\frac{k-k^2}{1-2k}\right)x_4^2 \ge 2\sqrt{k}x_3x_4, ( 1 3 k + k 2 1 2 k ) x 4 2 + ( k 2 k 2 1 3 k + k 2 ) x 5 2 2 k x 4 x 5 . \left(\frac{1-3k+k^2}{1-2k}\right)x_4^2+ \left(\frac{k-2k^2}{1-3k+k^2}\right)x_5^2 \ge 2\sqrt{k}x_4x_5. Now, the right hand side is ready, but we still have a fraction of x 5 2 x_5^2 left, what should we do? The solution is take it all. Meaning that we choose k k such that the fraction of x 5 2 x_5^2 in the last inequality is actually an entire x 5 2 x_5^2 . So we set k 2 k 2 1 3 k + k 2 = 1. \frac{k-2k^2}{1-3k+k^2}=1. After solving this equation, we have k = 1 / 3 k=1/3 that is between zero and one. All we need to do after this is to check that it really works just like what I wrote above. That's the trick for question like this.

Very nicely explained! Thanks! (+1) This is certainly an impressive usage of those AM-GM inequalities.

As a challenge, can you apply this method to this problem ?

Otto Bretscher - 5 years, 5 months ago

Great solution!!

Pi Han Goh - 5 years, 5 months ago
Otto Bretscher
Jan 8, 2016

Here is a solution for those who are familiar with quadratic forms .

The symmetric matric of the quadratic form q ( x 1 , . . . , x 5 ) = 2 k = 1 4 x k x k + 1 q(x_1,...,x_5)=2\sum_{k=1}^{4}x_kx_{k+1} is A = [ 0 1 0 0 0 1 0 1 0 0 0 1 0 1 0 0 0 1 0 1 0 0 0 1 0 ] A=\begin{bmatrix}0&1&0&0&0\\1&0&1&0&0\\0&1&0&1&0\\0&0&1&0&1\\0&0&0&1&0\end{bmatrix} The characteristic polynomial is det ( A x I 5 ) = x ( x 2 1 ) ( x 2 3 ) \det(A-xI_5)=-x(x^2-1)(x^2-3) , so that the largest eigenvalue of A A is 3 \sqrt{3} . This is the maximal value of k = 1 4 x k x k + 1 \sum_{k=1}^{4}x_kx_{k+1} when k = 1 5 x k 2 = 2 \sum_{k=1}^{5}x_k^2=2 , with S = 3 S=\boxed{3} .

The idea behind this technique is the following: Once we know the eigenvalues ± 3 , ± 1 , 0 \pm\sqrt{3},\pm 1,0 of q q , we can perform a change of variables and write the form as 3 v 1 2 + v 2 2 v 3 2 3 v 4 2 \sqrt{3}v_1^2+v_2^2-v_3^2-\sqrt{3}v_4^2 . To maximize the value of q q when k = 1 5 v k 2 = 2 \sum_{k=1}^{5}v_k^2=2 we make v 1 2 = 2 v_1^2=2 and v k = 0 v_k=0 for k > 1 k>1 to obtain 2 3 2\sqrt{3} . The sum we seek to maximize is q 2 \frac{q}{2} .

(Equivalently, this solution can be phrased in the language of Lagrange multipliers.)

The idea behind this technique is the following: Once we know the eigenvalues ± 3 , ± 1 , 0 \pm\sqrt{3},\pm 1,0 of q q , we can perform a change of variables and write the form as 3 v 1 2 + v 2 2 v 3 2 3 v 4 2 \sqrt{3}v_1^2+v_2^2-v_3^2-\sqrt{3}v_4^2 .

Wait.... so it's possible to avoid the ( A 3 I 5 ) x 1 , x 2 , x 3 , x 4 , x 5 T = 0 ^ (A - \sqrt3 I_5 )\cdot \langle x_1 , x_2, x_3, x_4, x_5 \rangle ^T = \widehat0 approach? I thought you previously said it couldn't be done?

Pi Han Goh - 5 years, 5 months ago

Log in to reply

Indeed, you don't need the eigenvectors to find the extrema. You need the eigenvectors if you want to know where the extrema are attained.

What did I say could not be done?

Otto Bretscher - 5 years, 5 months ago

Log in to reply

Excerpt from here

I asked : Thanks. It's ridiculously tedious (for me) to solve the Cayley Hamilton, det ( A λ I 5 ) = 0 \det(A- \lambda I_5) = 0 . How do you solve it manually (without the using of computer assistance)? Same goes with solving for B a ^ = 0 ^ B \widehat{a} = \widehat{0} . Is there a shortcut?

You replied : In principle, the eigenvalues are hard (perhaps even impossible) to find for matrices of size 5 x 5 5x5 and larger. In our example, the task is easy since 0 is a triple root so we are down to a quadratic polynomial. In principle, the eigenvectors are the easy part... just solving a linear system, by row reduction. The numbers can be messy, though.

Pi Han Goh - 5 years, 5 months ago

Log in to reply

@Pi Han Goh As Abel and Galois taught us, quintics cannot be solved in general , but many can, including the characteristic polynomial of our matrix here (for one thing, the matrix is singular).

Otto Bretscher - 5 years, 5 months ago

Log in to reply

@Otto Bretscher Ohhhh I misread what you wrote, haha! The way you wrote it made it deceptively simple.

Pi Han Goh - 5 years, 5 months ago

Aren't quadratic forms and Lagrange multiplier two completely different stuff? How is it possible to "phrase" it in the language of LM?

Pi Han Goh - 5 years, 5 months ago

Log in to reply

The linear system defining the Lagrange multipliers can be written as A v = 2 λ v Av=2\lambda v , where A A is the matrix of the quadratic form, so, it's exactly the same problem!

Otto Bretscher - 5 years, 5 months ago

Log in to reply

Arghhh!!! How did I pass my calculus class?

Pi Han Goh - 5 years, 5 months ago

Wait... how do you know that the max of S is equivalent of searching for (max of S)^2? Because x 2 > x x^2 > x is not always true for 0 < x 2 0<x\leq 2 .

Pi Han Goh - 5 years, 5 months ago

Log in to reply

we have x > y > 0 x>y>0 iff x 2 > y 2 > 0 x^2>y^2>0 ... that's what we are using here.

Otto Bretscher - 5 years, 5 months ago

Log in to reply

Arghhh!!! How did I pass my algebra class?

Pi Han Goh - 5 years, 5 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...