SOLUTION: For this problem: All the roots of x^2 + px + q = 0 are real, where p and q are real numbers. Prove that all the roots of x^2 + px + q + (x + a)(2x + p) = 0 are real, for any rea

Algebra ->  Quadratic Equations and Parabolas -> SOLUTION: For this problem: All the roots of x^2 + px + q = 0 are real, where p and q are real numbers. Prove that all the roots of x^2 + px + q + (x + a)(2x + p) = 0 are real, for any rea      Log On


   



Question 1172141: For this problem: All the roots of
x^2 + px + q = 0 are real, where p and q are real numbers. Prove that all the roots of
x^2 + px + q + (x + a)(2x + p) = 0 are real, for any real number a.
I solved it like this:
We know that all roots of x^2+px+q=0 are real. We can derive from this condition that p^2- 4q >=0
Let us do some simplification of second equation:
x^2+ px + q (x+a)(2x+p) = 3x^2+ x(2p + 2a) + ap + q
So we want to prove that the discriminant of equation
3x^2+x(2p + 2a) + ap + q = 0
is greater or equal to zero.
D = (2p + 2a)^2 - 4 *3(ap+q) = 4(p^2 + a^2 + 2ap - 3ap - 3q) = 4(a^2-ap+p^2-3q)
To prove that D >=0 , we can view D as a polynomial of a:
D(a) = 4a^2 - a(4p) + 4(p^2-3q)
We know that if a quadratic polynomial has a positive greatest coefficient and it's discriminant <= 0 then polynomials are always positive.
So it remains for us to prove that
(4p)^2 - 4*4*4(p^2-3q) <= 0
Let's divide both side by 4^2 :
p^2 - 4(p^2-3q) <= 0
-3p^2 + 12q <= 0
Now we divide by 3
-p^2+4q<= 0
Now we transfer terms to the other side:
0<= p^2 -4q, or p^2-4q >=0
There, now we have proved that the roots of a are real!
Can you show me another way to solve it? I'm curious.

Found 4 solutions by Edwin McCravy, AnlytcPhil, Plocharczyk, mccravyedwin:
Answer by Edwin McCravy(20055) About Me  (Show Source):
You can put this solution on YOUR website!

Here is a different way, borrowing from linear programming the idea of
using a non-negative slack variable to change an inequality into an equation.

Since x%5E2+%2B+px+%2B+q+=+0 has only real solutions, 

p%5E2-4q%3E=0
p%5E2%3E=4q
q%3C=p%5E2%2F4

Introduce a non-negative slack variable s s%3E=0 so that

q%2Bs=p%5E2%2F4
q=p%5E2%2F4-s

Substitute for q in 

x%5E2+%2B+px+%2B+q+%2B+%28x+%2B+a%29%282x+%2B+p%29+=+0 

x%5E2+%2B+px+%2B+p%5E2%2F4+-+s+%2B+%28x+%2B+a%29%282x+%2B+p%29+=+0

Which simplifies to this

3x%5E2+%2B+%282a%2B2p%29x+%2B+ap+%2B+p%5E2%2F4+-+s+=+0

Which has the discriminant

%282a%2B2p%29%5E2-12%28ap%2Bp%5E2%2F4-s%29

Which simplifies to

4a%5E2+-+4ap+%2B+p%5E2+%2B+12s

and it must be non-negative, so

4a%5E2+-+4ap+%2B+p%5E2+%2B+12s%3E=0

We solve this for a

a+%3E=+%28p+%2B+2sqrt%28-3s%29+%29%2F2+ 

OR

a+%3C=+%28p+-+2sqrt%28-3s%29+%29%2F2+ 

But since a is real, this tells us that our
slack variable s, is not only non-negative but
it is also non-positive s%3C=0 as well.
This means s=0.

Therefore, q=p%5E2%2F4-s becomes q=p%5E2%2F4

x%5E2+%2B+px+%2B+p%5E2%2F4+-+s+%2B+%28x+%2B+a%29%282x+%2B+p%29+=+0

becomes

x%5E2+%2B+px+%2B+p%5E2%2F4+%2B+%28x+%2B+a%29%282x+%2B+p%29+=+0

which has solutions:

x+=+%28-4a+-+p%29%2F6 and x=-p%2F2

which are real.

Edwin

Answer by AnlytcPhil(1806) About Me  (Show Source):
Answer by Plocharczyk(17) About Me  (Show Source):
Answer by mccravyedwin(407) About Me  (Show Source):