2.2 Quadratic Equations
Every quadratic equation $ax^2+bx+c=0$ has exactly two roots in $\mathbb{C}$, given by the quadratic formula. The discriminant $b^2-4ac$ decides their nature, their sum $-\tfrac ba$ and product $\tfrac ca$ can be read off without solving, and any two numbers are the roots of $x^2-(\text{sum})\,x+(\text{product})=0$.
In 1545 Gerolamo Cardano asked for two numbers whose sum is $10$ and whose product is $40$. If the numbers are $x$ and $10-x$, then $x(10-x)=40$, i.e. $x^2-10x+40=0$, and the usual method gives $x=5\pm\sqrt{-15}$. Cardano called the answer "as subtle as it is useless" — and then checked that it works: $(5+\sqrt{-15})+(5-\sqrt{-15})=10$ and $(5+\sqrt{-15})(5-\sqrt{-15})=25+15=40$. With the complex numbers of Section 2.1 this is no longer a curiosity: in $\mathbb{C}$ every quadratic equation has exactly two roots, and there is one formula for them.
Cardano's check also contains the second big idea of this section. The sum and the product of the roots can be read straight from the equation $x^2-10x+40=0$, without solving it. JEE Main questions on quadratics rarely ask you to find the roots; they ask for the value of $\alpha^2+\beta^2$ or $\alpha^{10}+\beta^{10}$, for the values of a parameter that make the roots equal, real, of opposite signs or on either side of a number, for the equation whose roots are $\tfrac1\alpha$ and $\tfrac1\beta$, or for the condition that two equations share a root. In this section we solve quadratics in $\mathbb{R}$ and in $\mathbb{C}$, prove the relations between roots and coefficients, classify the nature of the roots and the sign of a quadratic expression, and form equations with given roots. Expect two or three questions on this material in every paper, often combined with other units.
Solving Quadratic Equations in $\mathbb{R}$ and in $\mathbb{C}$
A quadratic equation is an equation $ax^2+bx+c=0$ with $a\ne0$. Unless we say otherwise, the coefficients $a$, $b$, $c$ are real. A number $\alpha$ (real or complex) is a root (solution) of the equation if $a\alpha^2+b\alpha+c=0$, i.e. a zero of the quadratic polynomial $p(x)=ax^2+bx+c$. The number
$$D=b^2-4ac$$is the discriminant of the equation.
Let $a,b,c\in\mathbb{R}$, $a\ne0$, and $D=b^2-4ac$. In $\mathbb{C}$ the equation $ax^2+bx+c=0$ has exactly the roots
$$x=\frac{-b\pm\sqrt D}{2a},$$where $\sqrt D=i\sqrt{-D}$ when $D\lt0$. Counted with repetition there are always two roots $\alpha$, $\beta$, and $ax^2+bx+c=a(x-\alpha)(x-\beta)$ for every $x$. A quadratic equation has at most two roots: if $ax^2+bx+c=0$ holds for three different values of $x$, then $a=b=c=0$ (the "equation" is an identity). The same formula solves equations with complex coefficients, with $\sqrt D$ replaced by either square root of $D$ (Theorem 2.3).
Proof. Complete the square:
$$ax^2+bx+c=a\left[\left(x+\frac{b}{2a}\right)^2-\frac{D}{4a^2}\right].$$Since $a\ne0$, the equation is equivalent to $\left(x+\tfrac{b}{2a}\right)^2=\tfrac{D}{4a^2}$. A complex number $w\ne0$ has exactly two square roots $\pm s$, and $0$ has only $0$ (Theorem 2.3). So $x+\tfrac b{2a}=\pm\tfrac{s}{2a}$ with $s^2=D$ — for real $D\ge0$, $s=\sqrt D$; for $D\lt0$, $s=i\sqrt{-D}$ — which is the formula. Writing $\alpha,\beta$ for the two values, the bracket above is a difference of two squares, $\left(x+\tfrac b{2a}-\tfrac s{2a}\right)\left(x+\tfrac b{2a}+\tfrac s{2a}\right)=(x-\alpha)(x-\beta)$. Finally, if three different numbers were roots, $a(x-\alpha)(x-\beta)$ would vanish at a number different from $\alpha$ and $\beta$, which is impossible for $a\ne0$; so $a=0$, the equation becomes $bx+c=0$ with three roots, forcing $b=0$ and then $c=0$. $\blacksquare$
The roots of $x^2+2x+5=0$ are
Relations between Roots and Coefficients
Cardano checked his answer by adding and multiplying the roots. That check is a theorem, and it is the most useful single fact about quadratics.
If $\alpha$ and $\beta$ are the roots of $ax^2+bx+c=0$ ($a\ne0$; real or complex coefficients), then
$$\alpha+\beta=-\frac ba,\qquad \alpha\beta=\frac ca,\qquad (\alpha-\beta)^2=\frac{D}{a^2}.$$For real roots, the distance between them is $|\alpha-\beta|=\dfrac{\sqrt D}{|a|}$.
Proof. By Theorem 2.6, $ax^2+bx+c=a(x-\alpha)(x-\beta)$ $=ax^2-a(\alpha+\beta)x+a\alpha\beta$ for all $x$. Two polynomials that agree for every $x$ have the same coefficients (their difference would be a quadratic or linear expression with more than two roots — impossible unless it is zero, by Theorem 2.6). So $b=-a(\alpha+\beta)$ and $c=a\alpha\beta$. Then $(\alpha-\beta)^2=(\alpha+\beta)^2-4\alpha\beta=\tfrac{b^2}{a^2}-\tfrac{4c}{a}=\tfrac{D}{a^2}$. $\blacksquare$ These are often called Vieta's relations, after François Viète (1540–1603).
An expression in $\alpha$ and $\beta$ is symmetric if it does not change when $\alpha$ and $\beta$ are interchanged: $\alpha^2+\beta^2$, $\tfrac1\alpha+\tfrac1\beta$ and $\alpha^3\beta+\alpha\beta^3$ are symmetric; $\alpha-\beta$ is not. Every symmetric polynomial in $\alpha$, $\beta$ can be written in terms of $\alpha+\beta$ and $\alpha\beta$ alone — and so can be evaluated from the coefficients without solving the equation.
$\alpha^2-\beta^2=(\alpha+\beta)(\alpha-\beta)$
For high powers there is a better tool than expanding. Write $S_n=\alpha^n+\beta^n$ (so $S_0=2$ and $S_1=\alpha+\beta$).
If $\alpha$, $\beta$ are the roots of $ax^2+bx+c=0$, then for every integer $n\ge2$
$$aS_n+bS_{n-1}+cS_{n-2}=0,\qquad S_n=\alpha^n+\beta^n.$$The same recurrence holds for $T_n=\alpha^n-\beta^n$ and for any combination $p\,\alpha^n+q\,\beta^n$.
Proof. Multiply $a\alpha^2+b\alpha+c=0$ by $\alpha^{n-2}$: $a\alpha^n+b\alpha^{n-1}+c\alpha^{n-2}=0$. Do the same for $\beta$ and add (or subtract, or combine with weights $p$, $q$). $\blacksquare$ ⏱ This is how JEE Main questions such as "find $\dfrac{a_{10}-2a_8}{a_9}$, where $a_n=\alpha^n-\beta^n$" are meant to be done: the ratio is read off from the recurrence in one line.
If $\alpha$, $\beta$ are the roots of $x^2-3x+1=0$, then $\alpha^2+\beta^2$ equals
Nature of the Roots and the Sign of a Quadratic
For real coefficients the discriminant tells us what kind of roots to expect before we compute them.
Let $ax^2+bx+c=0$ have real coefficients, $a\ne0$, and discriminant $D=b^2-4ac$.
- $D\gt0$: two distinct real roots. $\ D=0$: two equal real roots, $\alpha=\beta=-\tfrac b{2a}$. $\ D\lt0$: two non-real roots $p\pm iq$, conjugates of each other, with $p=-\tfrac b{2a}$ and $q=\tfrac{\sqrt{-D}}{2|a|}$.
- If $a,b,c$ are rational and $D\gt0$: the roots are rational when $D$ is the square of a rational number, and irrational otherwise — then they form a pair $m\pm\sqrt n$ with $m$, $n$ rational.
All of this is read straight from the formula $\dfrac{-b\pm\sqrt D}{2a}$: the $\pm$ part vanishes exactly when $D=0$, is real when $D\gt0$, and is purely imaginary when $D\lt0$; for rational coefficients, $\sqrt D$ is the only possible source of irrationality. The pairing of roots is a general fact:
- If $a,b,c$ are real and $\alpha$ is a non-real root of $ax^2+bx+c=0$, then the other root is $\bar\alpha$.
- If $a,b,c$ are rational and $m+\sqrt n$ is a root ($m,n$ rational, $\sqrt n$ irrational), then the other root is $m-\sqrt n$.
Proof. (1) Conjugate the equation $a\alpha^2+b\alpha+c=0$; since $a,b,c$ are real, Theorem 2.2 gives $a\bar\alpha^2+b\bar\alpha+c=0$, so $\bar\alpha$ is a root, and $\bar\alpha\ne\alpha$ because $\alpha$ is not real. (2) Let the other root be $\beta$. By Theorem 2.7, $\alpha+\beta=-\tfrac ba$ is rational, so $\beta=r-\sqrt n$ for some rational $r$. The product $(m+\sqrt n)(r-\sqrt n)=(mr-n)+(r-m)\sqrt n$ is also rational, and since $\sqrt n$ is irrational this forces $r=m$. $\blacksquare$ Without the hypotheses the pairing fails: in Example 2(a) the roots $2+i$ and $3-2i$ are not conjugates.
Let $f(x)=ax^2+bx+c$ with $a,b,c$ real, $a\ne0$, and $x$ real.
- If $D\lt0$, $f(x)$ has the sign of $a$ for every real $x$.
- If $D=0$, $f(x)$ has the sign of $a$ for every $x\ne-\tfrac b{2a}$, and $f\!\left(-\tfrac b{2a}\right)=0$.
- If $D\gt0$ with real roots $\alpha\lt\beta$, $f(x)$ has the sign of $a$ for $x\lt\alpha$ and $x\gt\beta$, and the opposite sign for $\alpha\lt x\lt\beta$.
In particular $f(x)\gt0$ for all real $x$ $\iff$ $a\gt0$ and $D\lt0$; and $f(x)\ge0$ for all real $x$ $\iff$ $a\gt0$ and $D\le0$. The least value of $f$ when $a\gt0$ (greatest when $a\lt0$) is $-\dfrac{D}{4a}$, taken at $x=-\dfrac b{2a}$.
Proof. From the completed square, $f(x)=a\left[\left(x+\tfrac b{2a}\right)^2-\tfrac{D}{4a^2}\right]$. If $D\lt0$ the bracket is a square plus a positive number, so it is positive; if $D=0$ it is a square, positive except at $x=-\tfrac b{2a}$. If $D\gt0$, $f(x)=a(x-\alpha)(x-\beta)$, and the product $(x-\alpha)(x-\beta)$ is negative exactly when $x$ lies between the roots. The bracket is smallest, equal to $-\tfrac D{4a^2}$, at $x=-\tfrac b{2a}$, which gives the extreme value $-\tfrac D{4a}$. $\blacksquare$
- If the parameter appears in the $x^2$ coefficient, first treat the case "$a=0$" separately — the equation is then linear and the discriminant rules do not apply.
- Equal roots: $D=0$. Real roots: $D\ge0$. Distinct real roots: $D\gt0$. Non-real roots: $D\lt0$.
- Roots of opposite signs: $\tfrac ca\lt0$ (this already forces $D\gt0$). Both roots positive: $D\ge0$, $-\tfrac ba\gt0$, $\tfrac ca\gt0$.
- A real number $k$ lies strictly between the roots $\iff$ $a\,f(k)\lt0$ (again $D\gt0$ is automatic). Both roots greater than $k$: $D\ge0$, $a\,f(k)\gt0$ and $-\tfrac b{2a}\gt k$.
- $f(x)\gt0$ for all real $x$: $a\gt0$ and $D\lt0$ — plus the case $a=0$ if the parameter allows it.
Take $f(x)=x^2-4x+c$. As $c$ increases from $0$, for which value of $c$ do the roots stop being real?
$x^2+2x+k\gt0$ for every real $x$ exactly when
Forming Equations with Given Roots; Transformed and Common Roots
Theorem 2.7 read backwards builds an equation from its roots: we only need their sum and product.
The quadratic equations with roots $\alpha$ and $\beta$ are exactly the non-zero multiples of
$$x^2-(\alpha+\beta)\,x+\alpha\beta=0.$$If $\alpha$, $\beta$ are the roots of $ax^2+bx+c=0$, then:
Why? The first statement is Theorem 2.7 with $a=1$. For the table, use the substitution principle: if $y=g(x)$ and $x=g^{-1}(y)$, then $y$ is a new root exactly when $g^{-1}(y)$ is an old root, so replace $x$ by $g^{-1}(x)$ in the old equation. For roots $k\alpha$: $x=\tfrac yk$ gives $a\tfrac{y^2}{k^2}+b\tfrac yk+c=0$; multiply by $k^2$. For $\tfrac1\alpha$: $a\tfrac1{y^2}+b\tfrac1y+c=0$; multiply by $y^2$ — the coefficients are reversed. For $\alpha^2$: use sum $\alpha^2+\beta^2=\tfrac{b^2-2ac}{a^2}$ and product $\tfrac{c^2}{a^2}$. $\blacksquare$
Common roots. When do two quadratics share a root? Subtracting the equations usually finds it quickly; the general condition comes from eliminating the root.
Consider $a_1x^2+b_1x+c_1=0$ and $a_2x^2+b_2x+c_2=0$ with $a_1a_2\ne0$.
- They have both roots in common $\iff$ $\dfrac{a_1}{a_2}=\dfrac{b_1}{b_2}=\dfrac{c_1}{c_2}$ (the equations are multiples of each other).
- If they have exactly one common root $\alpha$, then $a_1b_2-a_2b_1\ne0$, $$\alpha=\frac{c_1a_2-c_2a_1}{a_1b_2-a_2b_1},$$ $$(c_1a_2-c_2a_1)^2=(a_1b_2-a_2b_1)(b_1c_2-b_2c_1).$$
Proof. (1) By Theorem 2.12 both equations are multiples of $x^2-(\alpha+\beta)x+\alpha\beta=0$. (2) Multiply the first equation by $a_2$, the second by $a_1$ and subtract: $(a_1b_2-a_2b_1)\alpha=c_1a_2-c_2a_1$. If $a_1b_2-a_2b_1$ were $0$, the right side would be $0$ too and the coefficients would be proportional — both roots common. So we may divide, which gives $\alpha$. Eliminating $\alpha$ the other way (multiply by $c_2$ and $c_1$ and subtract) gives $(c_1a_2-c_2a_1)\alpha^2=(b_1c_2-b_2c_1)\alpha$, and since $\alpha\ne0$ here, $\alpha=\dfrac{b_1c_2-b_2c_1}{c_1a_2-c_2a_1}$. Equating the two expressions for $\alpha$ gives the condition. (If $\alpha=0$ then $c_1=c_2=0$ and both sides of the condition are $0$.) $\blacksquare$ ⏱ In practice: subtract the equations (after scaling) to kill $x^2$, find the common root, and substitute back.
Fix the sum of the roots at $S=4$ and let the product $P$ grow from $0$. What happens to the roots of $x^2-Sx+P=0$?
1. The leading coefficient may vanish. If the parameter sits in the $x^2$ coefficient, check that value separately: $(k-2)x^2+2(k-2)x+4\gt0$ holds for $k=2$ (it is just $4\gt0$), which the condition "$a\gt0$, $D\lt0$" misses.
2. Conjugate pairs need real (or rational) coefficients. $z^2-(5-i)z+(8-i)=0$ has roots $2+i$ and $3-2i$. Do not assume $\bar\alpha$ is a root unless the coefficients are real.
3. "Real" versus "distinct real". Real roots: $D\ge0$. Distinct real roots: $D\gt0$. Read which one the question wants; the boundary value is a favourite option.
4. Signs in Vieta. The sum is $-\tfrac ba$, not $\tfrac ba$; for $2x^2+3x-5=0$ the sum is $-\tfrac32$ and the product $-\tfrac52$. Write the equation as $a x^2+bx+c=0$ before reading off.
5. Substitutions restrict the new variable. With $t=|x|$ or $t=x^2$, negative values of $t$ give no real $x$; with $t=x+\tfrac1x$, real $x$ needs $|t|\ge2$. Discard before counting roots.
6. $\alpha-\beta$ has two signs. $(\alpha-\beta)^2=\tfrac{D}{a^2}$ fixes only $|\alpha-\beta|$. When a question asks for $\alpha-\beta$, check whether $\alpha$ is meant to be the larger root.
If $\alpha$, $\beta$ are the roots of $x^2-4x+2=0$, the equation whose roots are $\tfrac1\alpha$ and $\tfrac1\beta$ is
Exercises
$\alpha$ and $\beta$ always denote the roots of the equation named in the part. Coefficients are real unless stated otherwise.
- 1 Solve $6x^2-x-2=0$.
- 2 Solve $x^2+3x+9=0$ in $\mathbb{C}$.
- 3 Solve $2x^2-3x+5=0$ in $\mathbb{C}$.
- 4 Solve $\sqrt2\,x^2+x+\sqrt2=0$ in $\mathbb{C}$.
- 5 Solve $z^2-(2+3i)z+(-1+3i)=0$.
- 6 Find all complex roots of $x^4+3x^2-4=0$.
- 7 Find the product of the real roots of $x^2-|x|-6=0$.
- 8 Find all real roots of $(x^2+x)^2-8(x^2+x)+12=0$ and their sum.
- 9 For which real $a$ is $(a^2-1)x^2+(a-1)x+(a^2-4a+3)=0$ satisfied by more than two values of $x$?
- 1 Find $\alpha+\beta$ and $\alpha\beta$.
- 2 Find $\alpha^2+\beta^2$.
- 3 Find $\alpha^3+\beta^3$.
- 4 Find $(\alpha-\beta)^2$.
- 5 Find $\dfrac1\alpha+\dfrac1\beta$ and $\alpha^2\beta+\alpha\beta^2$.
- 6 One root of $x^2-7x+k=0$ exceeds the other by $2$. Find $k$.
- 7 One root of $2x^2-9x+k=0$ is twice the other. Find $k$ and the roots.
- 8 The sum of the roots of $x^2-(k+2)x+(2k+1)=0$ equals the sum of their squares. Find all possible $k$. For which of them are the roots real?
- 9 $\alpha$, $\beta$ are the roots of $x^2-x-1=0$. Using Theorem 2.8, find $\alpha^5+\beta^5$.
- 1 Without solving, state the nature of the roots of (a) $4x^2-12x+9=0$ (b) $3x^2+5x-2=0$ (c) $x^2-4x+1=0$ (d) $2x^2+3x+4=0$.
- 2 Find $k$ for which $kx^2+6x+1=0$ has equal roots.
- 3 Find all $k$ for which $x^2-2kx+7k-12=0$ has equal roots, and their sum.
- 4 Find all real $m$ for which $x^2-2(m+1)x+(m^2+3)=0$ has real roots.
- 5 Prove that $x^2-(k-3)x-(k-1)=0$ has two distinct real roots for every real $k$.
- 6 Solve $2x^2-5x-3\lt0$. How many integers satisfy it?
- 7 How many integers $k$ make $x^2+kx+k+3\gt0$ for every real $x$?
- 8 Find the least value of $2x^2-8x+11$ for real $x$, and where it occurs.
- 9 Find all real $k$ for which (a) the roots of $x^2-3x+(k-4)=0$ have opposite signs; (b) the number $1$ lies between the roots of $x^2+(k-1)x+(k-5)=0$.
- 10 A rectangular garden is to have area $40\ \text{m}^2$ and perimeter $26$ m. Find its dimensions. Show that no rectangle has area $40\ \text{m}^2$ and perimeter $24$ m, and find the least possible perimeter for area $40\ \text{m}^2$.
- 1 Form the quadratic equation with integer coefficients whose roots are $-\tfrac23$ and $\tfrac52$.
- 2 Form a quadratic equation with rational coefficients having $3-\sqrt5$ as a root.
- 3 Form a quadratic equation with real coefficients having $\dfrac{1+3i}{1-i}$ as a root.
- 4 $\alpha$, $\beta$ are the roots of $x^2-3x+5=0$. Form the equation whose roots are $\alpha+2$ and $\beta+2$.
- 5 For the same $\alpha$, $\beta$, form the equation whose roots are $\dfrac1{\alpha^2}$ and $\dfrac1{\beta^2}$.
- 6 $\alpha$, $\beta$ are the roots of $2x^2+3x-7=0$. Form the equation whose roots are $3\alpha$ and $3\beta$.
- 7 Find all values of $k$ for which $2x^2+kx-5=0$ and $x^2-3x-4=0$ have a common root.
- 8 The equations $x^2+ax+6=0$ and $x^2+bx-6=0$ have a common root. Prove that $a^2-b^2=24$.
- 9 Find $p$ and $q$ if $x^2+px+q=0$ and $2x^2+6x-8=0$ have both roots in common.
E1. JEE Main · MCQ If $\alpha$, $\beta$ are the roots of $x^2-2x+4=0$, then $\alpha^6+\beta^6$ equals (A) $64$ (B) $128$ (C) $-128$ (D) $0$
E2. JEE Main · Numerical Find the number of integers $k$ for which both roots of $x^2-2kx+k^2-1=0$ lie in the open interval $(-2,4)$. Give the answer to the nearest integer.
E3. JEE Main · MCQ The set of all real $k$ for which $(k-2)x^2+2(k-2)x+4\gt0$ for every real $x$ is (A) $[2,6)$ (B) $(2,6)$ (C) $(2,6]$ (D) $[2,6]$
E4. JEE Main · Numerical Let $\alpha$, $\beta$ be the roots of $x^2-5x+3=0$ and $a_n=\alpha^n+\beta^n$. Find $\dfrac{a_{10}+3a_8}{a_9}$. Give the answer to the nearest integer.
E5. JEE Main · MCQ $1-i$ is a root of $x^2+ax+b=0$, where $a$, $b$ are real. Then the roots of $x^2+bx+a=0$ are (A) non-real (B) real and rational (C) real, irrational and distinct (D) real and equal
E6. JEE Main · Numerical For a non-zero real number $k$, the equations $x^2-7x+k=0$ and $x^2-9x+2k=0$ have a common root. Find $k$. Give the answer to the nearest integer.
Research question. On winter mornings, fog on the highways of North India, the Netherlands or California can cut visibility to a few tens of metres. If a driver must be able to stop within the distance they can see, what is the highest safe speed — and how much does a wet road change it?
Why it matters. Road-safety agencies publish stopping-distance tables (the UK Highway Code, for example) built from a simple model: a driver travelling at $v$ m/s needs a thinking distance $v\,t_r$ (reaction time $t_r$) plus a braking distance $\dfrac{v^2}{2\mu g}$, where $\mu$ is the friction coefficient between tyres and road and $g=9.8\ \text{m/s}^2$. So the stopping distance $d(v)=t_rv+\dfrac{v^2}{2\mu g}$ is a quadratic in $v$, and "the highest safe speed" is a root of a quadratic equation.
What to do.
- Take $t_r=1.5$ s and $\mu=0.7$ (dry asphalt). Write the equation $d(v)=L$ for a visibility of $L$ metres in the form $av^2+bv+c=0$ and explain, using Theorem 2.7, why it always has exactly one positive root.
- Find the safe speed for $L=30,\ 50,\ 100,\ 150$ m, in m/s and in km/h.
- Repeat with $\mu=0.4$ (wet road) and with $t_r=2.5$ s (a tired driver). Which change costs more speed?
- Sketch $d(v)$ against $v$ and mark each answer as the point where the parabola meets the horizontal line $d=L$. What does the negative root mean physically, if anything?
Tools: A calculator or spreadsheet; graph paper or a graphing tool.
Hand in: A table of safe speeds for the three scenarios, your sketch, and a short recommendation (three or four sentences) for a fog-season speed advisory on a highway with visibility $50$ m.
Going further. Doubling the speed more than doubles the stopping distance. Use the formula to find the speed at which thinking distance and braking distance are equal, and explain why braking dominates at motorway speeds.
🧪 Self-check quiz
Q1. The roots of $x^2-6x+10=0$ are
Q2. If $\alpha$, $\beta$ are the roots of $x^2+4x-3=0$, then $\alpha^2+\beta^2$ is
Q3. The equation $x^2+kx+4=0$ has non-real roots exactly when
Q4. A quadratic equation whose roots are $\tfrac12$ and $-3$ is
Q5. If $2+3i$ is a root of $x^2+px+q=0$ with $p$, $q$ real, then $q$ equals