Guaranteed Real Roots

Algebra Level 5

Find the largest positive integer n n such that for all real numbers a 1 a_1 , a 2 a_2 , , a n + 1 \dots , a_{n+1} , the equation a n + 1 x 2 2 x a 1 2 + a 2 2 + + a n + 1 2 + ( a 1 + a 2 + + a n ) = 0 a_{n+1} x^2 - 2x \sqrt{ a_1^2 + a_2^2 + \cdots + a_{n+1}^2} + (a_1 + a_2 + \cdots + a_n) = 0 has real roots.

Details and assumptions

Clarification: a 1 , a 2 , , a n + 1 a_1, a_2, \ldots, a_{n+1} is any set of real numbers. There is no restrictions stated in the problem. They do not need to be integers, nor always positive, nor an arithmetic progression.


The answer is 4.

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.

10 solutions

For the equation to have real roots, it's discriminant Δ 0 \Delta \geq 0 .

Δ = 4 ( a 1 2 + a 2 2 + . . . + a n + 1 2 4 a n + 1 ( a 1 + a 2 + . . . + a n ) \Delta = 4(a_1^2 + a_2^2 + ... + a_{n+1}^2 - 4a_{n+1}(a_1+a_2+...+a_n)

= 4 ( a 1 2 + a 2 2 + . . . + a n + 1 2 ) 4 a n + 1 ( a 1 + a 2 + . . . + a n ) + n a n + 1 2 n a n + 1 2 = 4(a_1^2 + a_2^2 + ... + a_{n+1}^2) - 4a_{n+1}(a_1+a_2+...+a_n) + na_{n+1}^2 - na_{n+1}^2

= ( 2 a 1 a n + 1 ) 2 + . . . + ( 2 a n a n + 1 ) 2 + a n + 1 2 ( 4 n ) = (2a_1 - a_{n+1})^2 + ... + (2a_n - a_{n+1})^2 + a_{n+1}^2(4 - n)

This is clearly non-negative for n 4 n \leq 4 with maximum n = 4 n = 4 .

For n > 4 n > 4 the last square will be greater than all preceding squares & will make Δ \Delta negative. Like put all a i = m a_i = m & a n + 1 = m + 1 a_{n+1} = m+1 for some constant m. This gives us negative discriminant & hence non-real roots.

Moderator note:

This is a very nice solution!

Do you really mean "For n>4 the last square will be greater than all preceding squares ..."? As per your example, let n = 5, ai = 1, and a5 = 0.5. All preceding squares would = 1.5^2, for a total of 9, while the last term would be -0.25, for a net positive. Since the ai can be any real numbers, I think you meant "For n>4 the last square can be greater than all preceding squares ..."

Tom Capizzi - 5 years ago
Yang Liu
Aug 4, 2013

For the equation to have real roots, we must have the discriminant at least 0, that is 4 ( ( a 1 2 + a 2 2 + + a n 2 + a n + 1 2 ) a n + 1 ( a 1 + a 2 + + a n ) ) 0 4\left((a^2_1+a^2_2+\cdots+a^2_n+a^2_{n+1})-a_{n+1}\left(a_1+a_2+\cdots+a_n\right)\right) \ge 0 \implies a n + 1 2 a n + 1 ( a 1 + a 2 + + a n ) + ( a 1 2 + a 2 2 + + a n 2 ) 0 a^2_{n+1}-a_{n+1}\left(a_1+a_2+\cdots + a_n\right)+\left(a^2_1+a^2_2+\cdots +a^2_n\right) \ge 0 . Viewing this as a quadratic in a n + 1 a_{n+1} , its always non-negative iff the discriminant is always non-positive. So we should have the discriminant 0 \le 0 , so ( a 1 + a 2 + + a n ) 2 4 ( a 1 2 + a 2 2 + + a n 2 ) 0 (a_1+a_2+\cdots +a_n)^2-4(a^2_1+a^2_2+\cdots+a^2_n) \le 0 . For n 5 n \ge 5 , this is not always true (just plug in everything = 1). For n = 4 n = 4 though, the claim follows from Cauchy-Schwarz: ( a 1 2 + a 2 2 + a 3 2 + a 4 2 ) ( 1 + 1 + 1 + 1 ) ( a 1 + a 2 + a 3 + a 4 ) 2 (a^2_1+a^2_2+a^2_3+a^2_4)(1+1+1+1) \ge (a_1+a_2+a_3+a_4)^2 .

Moderator note:

Well done! Instead of Cauchy-Schwartz, one can also use "arithmetic mean less than or equal to quadratic mean" inequality.

Kevin Sun
May 20, 2014

In order for this to always have real roots, the discriminant must always be nonnegative, which means that 4 ( a 1 2 + a 2 2 + a n + 1 2 ) 4 a n + 1 ( a 1 + + a n ) 4(a_1^2+a_2^2+ \cdots a_{n+1}^2)- 4a_{n+1}(a_1+\cdots + a_n) . When n = 4 n = 4 , this is true, because if we rearrange, this is equivalent to ( 2 a 1 a 5 + 1 ) 2 + ( 2 a 2 a 5 ) 2 + ( 2 a 3 a 5 ) 2 + ( 2 a 4 a 5 ) 2 0 (2a_1-a_{5+1})^2+(2a_2-a_{5})^2+(2a_3-a_{5})^2+(2a_4-a_{5})^2 \ge 0 , which is true by the trivial inequality.

The statement will not hold when n 5 n \ge 5 . This can be shown by taking a 1 = a 2 = = a n = 1 , a n + 1 = 2 a_1=a_2= \cdots = a_n = 1, a_{n+1} = 2 . Then the left hand side of the discriminant evaluates to 4 n + 16 4n+16 , while the right hand side evaluates to 8 n 8n . When n > 4 n > 4 , this does not hold.

Thus the largest value for which the statement holds is n = 4 n=4

Duc Minh Phan
Aug 4, 2013

The discriminant of the L.H.S is Δ = ( 2 a 1 2 + a 2 2 + + a n + 1 2 ) 2 4 a n + 1 ( a 1 + a 2 + + a n ) = 4 ( a 1 2 + a 2 2 + + a n + 1 2 a n + 1 ( a 1 + a 2 + + a n ) \Delta = \left( 2\sqrt{a_1^2+a_2^2+\cdots+a_{n+1}^2} \right)^2 - 4a_{n+1}(a_1+a_2+\cdots+a_n) = 4(a_1^2+a_2^2+\cdots+a_{n+1}^2 - a_{n+1}(a_1+a_2+\cdots+a_n) . We need Δ 0 \Delta \ge 0 for all a 1 , a 2 , , a n + 1 a_1,a_2,\ldots,a_{n+1} . By setting a 1 = a 2 = = a n = 1 , a n + 1 = 2 a_1=a_2=\cdots=a_n=1, a_{n+1}=2 , we obtain Δ = 4 ( n + 4 2 n ) 0 \Delta = 4(n+4-2n) \ge 0 , or equivalently, 4 n 0 4-n \ge 0 and n 4 n \le 4 .

Conversely, for n = 4 n=4 , we will prove that a 1 2 + a 2 2 + a 3 2 + a 4 2 + a 5 2 a 5 ( a 1 + a 2 + a 3 + a 4 ) a_1^2+a_2^2+a_3^2+a_4^2+a_5^2 \ge a_5(a_1+a_2+a_3+a_4) for all real numbers a 1 , , a 5 a_1,\ldots,a_5 . Indeed, by using AM-GM inequality and Cauchy-Schwarz inequality, we have a 1 2 + a 2 2 + a 3 2 + a 4 2 + a 5 2 2 a 5 a 1 2 + a 2 2 + a 3 2 + a 4 2 = 2 a 5 4 ( a 1 2 + a 2 2 + a 3 2 + a 4 2 ) 2 a 5 ( a 1 + + a 4 ) . \begin{aligned} a_1^2+a_2^2+a_3^2+a_4^2+a_5^2 & \ge 2a_5\sqrt{a_1^2+a_2^2+a_3^2+a_4^2} \\ &= 2a_5\sqrt{4(a_1^2+a_2^2+a_3^2+a_4^2)} \\ &\ge 2a_5(a_1+\cdots+a_4). \end{aligned}

Therefore, the largest possible value of n n is 4.

Moderator note:

There is an issue with this solution: the last inequality requires than a 5 0 , a_5\geq 0, which is, in general, not true. It is probably fixable, does anybody see how?

Thomas Beuman
Aug 6, 2013

The criterion for a quadratic expression to have only real roots, is simply that the discriminant Δ \Delta must be nonnegative (i.e. positive or zero). In this case:

Δ = 4 ( a 1 2 + + a n + 1 2 ) 4 a n + 1 ( a 1 + + a n ) \Delta = 4(a_1^2 + \ldots + a_{n+1}^2) - 4 a_{n+1} (a_1 + \ldots + a_n)

[ In principle, for the proof it is enough to skip to the end, starting at "More specifically...", but I thought I'd share how I got there. ]

We thus want to establish whether this can be negative. Let us look at this expression as if it were a function of a n + 1 a_{n+1} . For a n + 1 ± a_{n+1} \rightarrow \pm \infty , Δ \Delta is obviously positive, regardless of the values of the other "parameters". Therefore, in order for the parabolic function Δ ( a n + 1 ) \Delta(a_{n+1}) to be negative for some value(s) of a n + 1 a_{n+1} , it must be zero at two points. In order for that to be the case, the discriminant of this new parabolic function Δ ( a n + 1 ) \Delta(a_{n+1}) should be positive. The discriminant is

Δ = 16 ( a 1 + + a n ) 2 64 ( a 1 2 + + a n 2 ) \Delta' = 16(a_1 + \ldots + a_n)^2 - 64(a_1^2 + \ldots + a_n^2)

This is positive iff

Δ > 0 ( a 1 + + a n ) 2 16 > a 1 2 + + a n 2 4 a 1 + + a n 4 > a 1 2 + + a n 2 4 \Delta' > 0 \iff \frac{(a_1 + \ldots + a_n)^2}{16} > \frac{a_1^2 + \ldots + a_n^2}{4} \\ \quad \iff \frac{|a_1 + \ldots + a_n|}{4} > \sqrt{\frac{a_1^2 + \ldots + a_n^2}{4}}

In the last line, for n = 4 n=4 , we recognize the arithmetic mean and the quadratic mean of the numbers a 1 a_1 through a 4 a_4 on each side of the inequality. However, the quadratic mean is always at least as large as the arithmetic mean (this is a specific result from the generalized mean inequality), therefore, Δ \Delta' is never positive for n = 4 n=4 . The same holds for n < 4 n<4 , since we can artificially add a 4 = 0 a_4=0 (and a 3 = 0 a_3=0 , a 2 = 0 a_2=0 if applicable) and we can use the same argument.

On the other hand, for n > 4 n>4 , the above inequality can easily hold, for instance in the case a 1 = = a n = 1 a_1 = \ldots = a_n = 1 , guaranteeing that a solution must exist with Δ 0 \Delta \leq 0 .

More specifically, for n = 4 n=4 we can rewrite:

Δ = 4 ( a 1 + a 2 + a 3 + a 4 + a 5 ) 2 4 a 5 ( a 1 2 + a 2 2 + a 3 2 + a 4 2 ) = ( a 5 2 a 1 ) 2 + ( a 5 2 a 2 ) 2 + ( a 5 2 a 3 ) 2 + ( a 5 2 a 4 ) 2 \Delta = 4(a_1 + a_2 + a_3 + a_4 + a_5)^2 - 4 a_5 (a_1^2 + a_2^2 + a_3^2 + a_4^2) \\ \quad = (a_5 - 2 a_1)^2 + (a_5 - 2 a_2)^2 + (a_5 - 2 a_3)^2 + (a_5 - 2 a_4)^2

which clearly demonstrates that Δ \Delta cannot be negative for n = 4 n=4 . The cases with n < 4 n<4 are similar, since you can just add a i a_i 's that are zero.

For n > 4 n>4 , we can for instance take a 1 = = a 5 = 1 a_1 = \ldots = a_5 = 1 , a 6 = = a n = 0 a_6 = \ldots = a_n = 0 (for n > 5 n>5 ) and a n + 1 = 2 a_{n+1} = 2 , which results in the equation 2 x 2 6 x + 5 = 0 2x^2 - 6x + 5 = 0 , which has Δ = 4 \Delta = -4 and hence no real roots, as a counterexample.

Therefore, the largest positive integer n n for which the given equation necessarily has real roots, is 4 \boxed{4}

Karthik Tadinada
Aug 5, 2013

Since we are only interested in the nature of the roots, we can assume without loss of generality that a n + 1 = 1 a_{n+1} =1

Next we can rearrange the equation and complete the square to give

( x 1 + a 1 + a 2 + . . . + a n ) 2 = 1 + ( a 1 2 a 1 ) + ( a 2 2 a 2 ) + . . . + ( a n 2 a n ) (x-\sqrt{1+a_1+a_2+...+a_n})^2=1+(a_1^2-a_1) + (a_2^2-a_2) + ...+ (a_n^2-a_n)

Sketching the quadratic y = x 2 x y=x^2-x you can see that each of the terms inside the bracket is a i 2 a i 1 / 4 a_i^2-a_i \le -1/4 . So each term can take away at most 1 4 \frac{1}{4} and you can have at most 4 terms to guarantee real roots.

Interesting method. (My solution also boiled down to the fact that the maximal value of a 2 a a^2-a is 1 / 4 -1/4 , but it was a discriminate method.)

Peter Byers - 5 years, 6 months ago

This equation has real roofs if and only if its discriminant is non-negative. n=1,2 it is an easy problem. n=3,4 We see the quadratic is positively definite. n=5. the quadratic is not positively definite. Thus n=4

Zk Lin
Jan 12, 2016

It is apparent that for the equation to possess real roots, the discriminant 0 \geq 0 . Therefore, we obtain the inequality

4 ( a 1 2 + + a n + 1 2 ) 4 ( a n + 1 ) ( a 1 + a n ) 0 4(a_1^{2}+\cdots+a_{n+1}^{2})-4(a_{n+1})(a_1+ \cdots a_n) \geq 0

Division of 4 4 on both sides yield

( a 1 2 + + a n + 1 2 ) ( a n + 1 ) ( a 1 + a n ) 0 (a_1^{2}+\cdots+a_{n+1}^{2})-(a_{n+1})(a_1+ \cdots a_n) \geq 0

Now, if we view the function on L . H . S . L.H.S. as a function of a 1 a_1 , we obtain the inequality

a 1 2 a n + 1 a 1 + C 0 a_1^{2}-a_{n+1}a_1+C \geq 0 , where C C is some arbitrary constant.

Obviously, the minimum of L . H . S . L.H.S. of the inequality is obtained when a 1 = a n + 1 2 a_1=\frac{a_{n+1}}{2} .

Similarly, viewing the function in terms of a 2 , a n a_2, \cdots a_n , we know that the minimum of the inequality is obtained when a 2 , , a n = a n + 1 2 a_2, \cdots ,a_n= \frac{a_{n+1}}{2} .

Now, we view the function in terms of a n + 1 a_{n+1} . Note that we get

a n + 1 2 ( a 1 + a 2 + a n ) ( a n + 1 ) + C 0 a_{n+1}^{2}- (a_1+a_2+\cdots a_n)(a_{n+1})+C \geq 0 , where C C is some arbitrary constant.

Obviously, the minimum of L . H . S . L.H.S. of the inequality is obtained when a n + 1 = a 1 + a n 2 a_{n+1}=\frac{a_1+ \cdots a_n}{2} .

Note that, all along, we are assuming that we can indeed find a 1 , a 2 , a 3 . . . a n + 1 a_1,a_2,a_3...a_{n+1} which satisfies a 1 , a 2 , , a n = a n + 1 2 a_1, a_2, \cdots ,a_n= \frac{a_{n+1}}{2} and a n + 1 = a 1 + a n 2 a_{n+1}=\frac{a_1+ \cdots a_n}{2} for all values of n. This might not be the case!

For n = 4 n=4 , we can indeed achieve such minimum. The minimum, 0 0 is achieved when we have ( a 1 , a 2 , a 3 , a 4 , a 5 ) = ( x 2 , x 2 , x 2 , x 2 , x ) (a_1,a_2, a_3, a_4,a_5)=(\frac{x}{2}, \frac{x}{2}, \frac{x}{2}, \frac{x}{2}, x) for all values of x x . Since the minimum of the inequality is 0 0 , the discriminant is always 0 \geq 0 . Thus, there exists real roots to the original equation.

For n = 5 n=5 , don't bother about achieving the minimum. Just pick ( a 1 , a 2 , a 3 , a 4 , a 5 , a 6 ) (a_1,a_2, a_3, a_4,a_5,a_6) = ( 1 , 1 , 1 , 1 , 1 , 3 ) (1,1,1,1,1,\sqrt{3}) and note that the inequality yields a negative value 8 5 3 8-5\sqrt{3} , which is less than 0 0 and we are done.

Moderator note:

Good solution.

Note that C isn't an "arbitrary constant". It is actually a very specific constant (in each case).

黎 李
May 20, 2014

x^2/4+y^2>=xy

A 2nd degree polynomial is guaranteed to have real roots iff its discriminant is greater than or equal to 0 0 . In this case, this condition is written as

4 ( a 1 2 + + a n + 1 2 ) 4 a n + 1 ( a 1 + + a n ) 0 4(a_1^2 + \ldots + a_{n+1}^2) - 4a_{n+1}(a_1+ \ldots + a_n) \geq 0

or, equivalently,

a n + 1 2 a n + 1 ( a 1 + + a n ) + ( a 1 2 + + a n 2 ) 0 a_{n+1}^2 - a_{n+1}(a_1 + \ldots + a_n) + (a_1^2 + \ldots + a_n^2) \geq 0 .

Again, we are faced with a 2nd degree polynomial, this time in a n + 1 a_{n+1} , and we wish to determine when it is guaranteed to assume non-negative values. This happens iff its discriminant is non-positive, in other words, when

( a 1 + + a n ) 2 4 ( a 1 2 + + a n 2 ) (a_1 + \ldots + a_n)^2 \leq 4(a_1^2 + \ldots + a_n^2) . (1)

As a side note, if one rewrites this inequality as a 1 + + a n 2 a 1 2 + + a n 2 |a_1 + \ldots + a_n| \leq 2 \sqrt{a_1^2 + \ldots + a_n^2} (2), it is interesting to observe that the question we are trying to answer can be paraphrased as follows:

What is the largest n n such that for any vector of R n R^n , the absolute value of sum of its coordinates is not greater than twice its norm?

Coming back to (1), we now note that the RHS of the inequality is minimal when a 1 = = a n = α a_1 = \ldots = a_n = \alpha (*) , so we can reduce the problem to finding the largest n n such that for any α \alpha , we have

( n α ) 2 4 n α 2 (n \alpha)^2 \leq 4 n \alpha^2 , which yields

n ( n 4 ) 0 n(n-4) \leq 0 , and it is now easy to see that the largest n n for which this condition holds is 4 4 .

(*) To see why this is true, consider inequality (2) and visualize of ( a 1 , , a n ) (a_1,\ldots,a_n) as a vector in R n R^n . The set of vectors whose sum of coordinates is equal to a constant is an n n -plane which is normal to the vector ( 1 , , 1 ) (1,\ldots,1) , so the vector in that n n -plane that lies closest to the origin, i.e., has the smallest norm, is a multiple of ( 1 , , 1 ) (1,\ldots,1) , hence a 1 = = a n a_1 = \ldots = a_n .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...