Algebra 2Quadratic Functions and Equations5 of 7
Quadratic Functions and Equations · 5

Complex Solutions and the Discriminant

The real solutions of a quadratic equation set equal to zero are the xx-values where its parabola crosses or touches the xx-axis, and we want to see what happens to the solutions when the parabola is lifted so high that it misses the xx-axis completely.

1

When a Parabola Misses the xx-Axis

We can watch how the solutions change by taking the parabola y=x2−4y = x^2 \coef{- 4} and shifting it straight up, first to y=x2y = x^2 and then above the xx-axis to y=x2+4y = x^2 + 4.

When a Parabola Misses the x-Axis
x2− 4=0\htmlClass{lc-blue}{x^2 \htmlClass{lc-orange}{-\,4} = 0}
y=x2− 4\htmlClass{lc-blue}{y = x^2 \htmlClass{lc-orange}{-\,4}}
−2\htmlClass{lc-blue}{-2}
2\htmlClass{lc-blue}{2}
2 realsolutions\begin{array}{c}\text{2 real}\\[-2pt]\text{solutions}\end{array}
y=x2\htmlClass{lc-blue}{y = x^2}
0\htmlClass{lc-blue}{0}
1 realsolution\begin{array}{c}\text{1 real}\\[-2pt]\text{solution}\end{array}
y=x2+ 4\htmlClass{lc-blue}{y = x^2 \htmlClass{lc-orange}{+\,4}}
2 complexsolutions\begin{array}{c}\text{2 complex}\\[-2pt]\text{solutions}\end{array}
Text solution
Isolate x2x^2Subtract 4\coef{4} from both sides of x2+4=0x^2 \coef{+ 4} = 0.
x2+4=0x2=−4\displaystyle \begin{aligned} x^2 \coef{+ 4} &= 0 \\ x^2 &= \disc{-4} \end{aligned}
Take the square root and pull out iiTake the positive and negative square root, rewriting −1\sqrt{-1} as ii.
x=±−4x=±2i\displaystyle \begin{aligned} x &= \pm\sqrt{\disc{-4}} \\ x &= \pm \step{2i} \end{aligned}

So x2+4=0x^2 \coef{+ 4} = 0 has two complex solutions, 2i\step{2i} and −2i-\step{2i}, because the parabola sits completely above the xx-axis and never crosses it.

2

Center and Step in the Quadratic Formula

In x2+4=0x^2 \coef{+ 4} = 0, you can see right away that the graph sits above the xx-axis. For a full quadratic equation like x2−6x+5=0x^2 - 6x \coef{+ 5} = 0, it isn't obvious where the parabola sits, so we split the Quadratic Formula into two pieces, the x-coordinate of the vertex and the term we add to or subtract from it.

Center and Step in the Quadratic Formula
x2−6x+ 5=0\htmlClass{lc-blue}{x^2 - 6x \htmlClass{lc-orange}{+\,5} = 0}
x=−b±b2−4ac2ax = \dfrac{-b \pm \sqrt{b^2 - 4ac}}{2a}

Splitting the Quadratic Formula into two fractions over the denominator 2a2a separates the x-coordinate of the vertex from the term we add and subtract to get the solutions.

x\displaystyle x =−b2a⏟center±b2−4ac2a⏟step\displaystyle = \underbrace{\centre{-\frac{b}{2a}}}_{\centre{\text{center}}} \pm \underbrace{\step{\frac{\sqrt{\disc{b^2 - 4ac}}}{2a}}}_{\step{\text{step}}}
Text solution
Find the centerPlug a=1a = 1 and b=−6b = -6 from x2−6x+5=0x^2 - 6x \coef{+ 5} = 0 into −b2a\centre{-\frac{b}{2a}} to find the parabola's center line (its axis of symmetry).
Center\displaystyle \text{Center} =−−62(1)\displaystyle = -\frac{-6}{2(1)} =62\displaystyle = \frac{6}{2} =3\displaystyle = \centre{3}
Find the step for x2−6x+5=0x^2 - 6x \coef{+ 5} = 0Plug a=1a = 1, b=−6b = -6, and c=5\coef{c} = \coef{5} into b2−4ac2a\step{\frac{\sqrt{\disc{b^2 - 4ac}}}{2a}} to find how far to step left and right from x=3x = \centre{3}.
Step=(−6)2−4(1)(5)2(1)=36−202=162=2x=3±2  ⟹  x=5 and x=1\displaystyle \begin{aligned} \text{Step} &= \frac{\sqrt{(-6)^2 - 4(1)(\coef{5})}}{2(1)} \\ &= \frac{\sqrt{36 - 20}}{2} \\ &= \frac{\sqrt{\disc{16}}}{2} = \step{2} \\ x &= \centre{3} \pm \step{2} \\ &\implies x = \sol{5} \text{ and } x = \sol{1} \end{aligned}
Shift up to the xx-axis (x2−6x+9=0x^2 - 6x \coef{+ 9} = 0)Raising the parabola by 44 units keeps the center at x=3x = \centre{3} and turns the number inside the square root into 0\disc{0}.
Step=(−6)2−4(1)(9)2(1)=36−362=02=0x=3±0  ⟹  x=3\displaystyle \begin{aligned} \text{Step} &= \frac{\sqrt{(-6)^2 - 4(1)(\coef{9})}}{2(1)} \\ &= \frac{\sqrt{36 - 36}}{2} \\ &= \frac{\sqrt{\disc{0}}}{2} = \step{0} \\ x &= \centre{3} \pm \step{0} \\ &\implies x = \sol{3} \end{aligned}
Shift above the xx-axis (x2−6x+13=0x^2 - 6x \coef{+ 13} = 0)Raising the parabola 44 more units turns the number inside the square root negative, making the step imaginary.
Step=(−6)2−4(1)(13)2(1)=36−522=−162=4i2=2ix=3±2i\displaystyle \begin{aligned} \text{Step} &= \frac{\sqrt{(-6)^2 - 4(1)(\coef{13})}}{2(1)} \\ &= \frac{\sqrt{36 - 52}}{2} \\ &= \frac{\sqrt{\disc{-16}}}{2} = \frac{4i}{2} = \step{2i} \\ x &= \centre{3} \pm \step{2i} \end{aligned}

So x2−6x+13=0x^2 - 6x \coef{+ 13} = 0 has two complex solutions, 3+2i\centre{3} + \step{2i} and 3−2i\centre{3} - \step{2i}, because the parabola sits above the xx-axis and no real horizontal step from x=3x = \centre{3} can reach it.

Try changing c\coef{c} in y=x2−6x+cy = x^2 - 6x + \coef{c} below to shift the parabola up and down. The center stays at x=3x = \centre{3}, while the step shrinks to 0\step{0} at the xx-axis and turns imaginary above it.

Sliding the parabola up and down keeps its axis of symmetry in place and changes the number under the square root, shrinking the step to zero when the vertex reaches the x-axis and turning it imaginary above the x-axis.
3

The Discriminant

The discriminant is the part inside the square root of the Quadratic Formula, b2−4ac\disc{b^2 - 4ac}. It tells us how many distinct solutions a quadratic equation has, and whether they are real or nonreal, without having to solve the whole equation.

The Discriminant
x=−b±b2−4ac2ax = \dfrac{-b \pm \sqrt{b^2 - 4ac}}{2a}
x2−6x+ 5=0\htmlClass{lc-blue}{x^2 - 6x \htmlClass{lc-orange}{+\,5} = 0}
x2−6x+ 9=0\htmlClass{lc-blue}{x^2 - 6x \htmlClass{lc-orange}{+\,9} = 0}
x2−6x+ 13=0\htmlClass{lc-blue}{x^2 - 6x \htmlClass{lc-orange}{+\,13} = 0}
x=−b±b2−4ac⏟discriminant2a\displaystyle \begin{aligned} x &= \frac{-b \pm \sqrt{\underbrace{\disc{b^2 - 4ac}}_{\disc{\text{discriminant}}}}}{2a} \end{aligned}

Notice that the discriminant is only the number b2−4ac\disc{b^2 - 4ac} underneath the root. It does not include the square root symbol x\sqrt{\phantom{x}} itself.

b2−4ac>0\htmlClass{lc-pink}{b^2 - 4ac} > 0
2 realsolutions\begin{array}{c}\text{2 real}\\[-2pt]\text{solutions}\end{array}
b2−4ac=0\htmlClass{lc-pink}{b^2 - 4ac} = 0
1 realsolution\begin{array}{c}\text{1 real}\\[-2pt]\text{solution}\end{array}
b2−4ac<0\htmlClass{lc-pink}{b^2 - 4ac} < 0
2 complexsolutions\begin{array}{c}\text{2 complex}\\[-2pt]\text{solutions}\end{array}
4

Finding the Number and Type of Solutions

When a question only asks for the discriminant and the number and type of solutions, like for 2x2+3x+4=02x^2 + 3x + 4 = 0, we just calculate b2−4ac\disc{b^2 - 4ac} and check its sign.

Finding the Number and Type of Solutions
2x2+3x+4=0b2−4ac=  ?\displaystyle \begin{aligned}2x^2 + 3x + 4 &= 0\\[12pt]\disc{b^2 - 4ac} &= \;?\end{aligned}
Text solution
Calculate the discriminantPlug a=2a = 2, b=3b = 3, and c=4c = 4 into b2−4ac\disc{b^2 - 4ac}.
Discriminant=b2−4ac=(3)2−4(2)(4)=9−32=−23\displaystyle \begin{aligned} \text{Discriminant} &= \disc{b^2 - 4ac} \\ &= (3)^2 - 4(2)(4) \\ &= 9 - 32 \\ &= \disc{-23} \end{aligned}
Check the signA negative discriminant means there is a negative number inside the square root, which gives imaginary numbers.
−23<0  ⟹  2 complex solutions\displaystyle \disc{-23} < 0 \implies \text{2 complex solutions}

So the discriminant of 2x2+3x+4=02x^2 + 3x + 4 = 0 is −23\disc{-23}, which means the equation has 2 complex solutions. Watch out for negative signs when plugging into b2−4ac\disc{b^2 - 4ac}. Squaring a negative bb always gives a positive number (like (−3)2=+9(-3)^2 = +9), and when aa is positive, a negative cc turns −4ac-4ac into addition.

5

Solving Quadratic Equations with Complex Solutions

Now let's find the actual solutions to x2+4x+13=0x^2 + 4x + 13 = 0. Finding the discriminant first gives us the single number under the square root before we write out the rest of the Quadratic Formula.

Solving Quadratic Equations with Complex Solutions
x2+4x+13=0x=  ?\displaystyle \begin{aligned}x^2 + 4x + 13 &= 0\\[12pt]x &= \;?\end{aligned}
Text solution
Find the discriminant firstPlug a=1a = 1, b=4b = 4, and c=13c = 13 into b2−4ac\disc{b^2 - 4ac}.
b2−4ac=(4)2−4(1)(13)=16−52=−36\displaystyle \begin{aligned} \disc{b^2 - 4ac} &= (4)^2 - 4(1)(13) \\ &= 16 - 52 \\ &= \disc{-36} \end{aligned}
Plug into the Quadratic Formula and pull out iiPut −36\disc{-36} inside the square root and rewrite −36\sqrt{\disc{-36}} as 6i\step{6i}.
x=−4±−362(1)x=−4±6i2\displaystyle \begin{aligned} x &= \frac{\centre{-4} \pm \sqrt{\disc{-36}}}{2(1)} \\ x &= \frac{\centre{-4} \pm \step{6i}}{2} \end{aligned}
Divide both terms in the numerator by 22Divide both −4\centre{-4} and 6i\step{6i} in the top by the 22 in the bottom.
x=−42±6i2x=−2±3i\displaystyle \begin{aligned} x &= \frac{\centre{-4}}{2} \pm \frac{\step{6i}}{2} \\ x &= \centre{-2} \pm \step{3i} \end{aligned}

So the solutions are x=−2+3ix = \centre{-2} + \step{3i} and x=−2−3ix = \centre{-2} - \step{3i}. The parabola has its axis of symmetry at x=−2x = \centre{-2}. Since the coefficient of x2x^2 is positive, it opens upward, and with no real solutions, it sits entirely above the xx-axis.

6

Finding an Unknown Coefficient Using the Discriminant

Sometimes an equation has an unknown number k\coef{k} as one of its coefficients, like 2x2+8x+k=02x^2 + 8x + \coef{k} = 0, and we want to know which values of k\coef{k} give 11 real solution, 22 real solutions, and 22 complex solutions. Since changing k\coef{k} shifts the parabola up and down, we can find the exact value where the vertex touches the xx-axis by setting the discriminant equal to 00.

Finding an Unknown Coefficient Using the Discriminant
2x2+8x+k\displaystyle 2x^2 + 8x + \coef k =0\displaystyle = 0
1 real solution:k=?2 real solutions:k=?2 complex solutions:k=?\displaystyle {\footnotesize\begin{aligned}\text{1 real solution:}\;\; \coef k &= \;?\\[2pt]\text{2 real solutions:}\;\; \coef k &= \;?\\[2pt]\text{2 complex solutions:}\;\; \coef k &= \;?\end{aligned}}
Text solution
Write the discriminant using k\coef{k}Plug a=2a = 2, b=8b = 8, and c=k\coef{c} = \coef{k} into b2−4ac\disc{b^2 - 4ac}.
b2−4ac=(8)2−4(2)(k)=64−8k\displaystyle \begin{aligned} \disc{b^2 - 4ac} &= (8)^2 - 4(2)(\coef{k}) \\ &= \disc{64 - 8\coef{k}} \end{aligned}
Find k\coef{k} for 1 real solution (b2−4ac=0\disc{b^2 - 4ac} = 0)Set the discriminant equal to 00 to find where the vertex touches the xx-axis.
64−8k=064=8kk=8\displaystyle \begin{aligned} \disc{64 - 8\coef{k}} &= 0 \\ 64 &= 8\coef{k} \\ \coef{k} &= \coef{8} \end{aligned}
Find k\coef{k} for 2 real solutions (b2−4ac>0\disc{b^2 - 4ac} > 0)Set the discriminant greater than 00 and add 8k8\coef{k} to both sides (or subtract 6464 and flip the inequality sign when dividing by −8-8).
64−8k>064>8kk<8\displaystyle \begin{aligned} \disc{64 - 8\coef{k}} &> 0 \\ 64 &> 8\coef{k} \\ \coef{k} &< \coef{8} \end{aligned}
Find k\coef{k} for 2 complex solutions (b2−4ac<0\disc{b^2 - 4ac} < 0)Set the discriminant less than 00 and solve for k\coef{k}.
64−8k<064<8kk>8\displaystyle \begin{aligned} \disc{64 - 8\coef{k}} &< 0 \\ 64 &< 8\coef{k} \\ \coef{k} &> \coef{8} \end{aligned}

So 2x2+8x+k=02x^2 + 8x + \coef{k} = 0 has 11 real solution right at k=8\coef{k} = \coef{8}, 22 real solutions when k<8\coef{k} < \coef{8} shifts the parabola down across the xx-axis, and 22 complex solutions when k>8\coef{k} > \coef{8} lifts the parabola above the xx-axis.

Try changing k\coef{k} in y=2x2+8x+ky = 2x^2 + 8x + \coef{k} below to see how the discriminant 64−8k\disc{64 - 8\coef{k}} changes sign right at k=8\coef{k} = \coef{8}, where the vertex touches the xx-axis.

Changing the constant slides the parabola up and down: at 8 the vertex just touches the x-axis, lowering it pulls the curve down to cross the axis twice for two real solutions, and raising it lifts the curve off the axis for two complex solutions.

Key concepts

We can see the center and step of any quadratic equation ax2+bx+c=0ax^2 + bx + c = 0 by splitting the Quadratic Formula into two fractions, with the discriminant b2−4ac\disc{b^2 - 4ac} sitting inside the square root:

x\displaystyle x =−b2a⏟center±b2−4ac⏞discriminant2a⏟step\displaystyle = \underbrace{\centre{-\frac{b}{2a}}}_{\centre{\text{center}}} \pm \underbrace{\step{\frac{\sqrt{\overbrace{\disc{b^2 - 4ac}}^{\disc{\text{discriminant}}}}}{2a}}}_{\step{\text{step}}}
When there is no xx term

you don't need the Quadratic Formula or the discriminant. Just isolate x2x^2 and take the square root directly, rewriting −1\sqrt{-1} as ii (for x2+4=0x^2 \coef{+ 4} = 0, x2=−4x^2 = \disc{-4}   ⟹  \implies x=±−4=±2ix = \pm\sqrt{\disc{-4}} = \pm \step{2i}).

When you only need the number and type of solutions

don't solve for xx. Just calculate b2−4ac\disc{b^2 - 4ac} without the square root symbol (for 2x2+3x+4=02x^2 + 3x + 4 = 0, b2−4ac=32−4(2)(4)=−23\disc{b^2 - 4ac} = 3^2 - 4(2)(4) = \disc{-23}). A positive discriminant (>0> 0) means 2 real solutions, zero (=0= 0) means 1 real solution, and a negative discriminant (<0< 0) means 2 complex solutions.

When solving a full quadratic equation

find b2−4ac\disc{b^2 - 4ac} first, put it under the square root, and divide both terms in the numerator by 2a2a (for x2+4x+13=0x^2 + 4x + 13 = 0, b2−4ac=−36\disc{b^2 - 4ac} = \disc{-36}, so x=−4±−362=−4±6i2=−2±3ix = \frac{\centre{-4} \pm \sqrt{\disc{-36}}}{2} = \frac{\centre{-4} \pm \step{6i}}{2} = \centre{-2} \pm \step{3i}).

When a coefficient is an unknown k\coef{k}

plug aa, bb, and cc into b2−4ac\disc{b^2 - 4ac} and set it equal to 00 for 1 real solution, >0> 0 for 2 real solutions, or <0< 0 for 2 complex solutions (for 2x2+8x+k=02x^2 + 8x + \coef{k} = 0, 64−8k=0\disc{64 - 8\coef{k}} = 0 gives k=8\coef{k} = \coef{8} for 1 real solution, k<8\coef{k} < \coef{8} for 2 real solutions, and k>8\coef{k} > \coef{8} for 2 complex solutions). If k\coef{k} appears in aa, check any value that makes a=0a = 0 separately, since the equation is then no longer quadratic.

7

Practice

1

Solve x2+36=0x^2 + 36 = 0 for xx.

Since there is no xx term, isolate x2x^2 first. What happens when you take the square root of both sides?

x2=−36x=±−36\displaystyle \begin{aligned} x^2 &= \disc{-36} \\ x &= \pm\sqrt{\disc{-36}} \end{aligned}
(Watch out: forgetting the ±\pm sign or writing −6-6 instead of pulling the negative out of the square root as ii gives the common wrong answers 6i6i or ±6\pm 6.)
x\displaystyle x =±6i\displaystyle = \pm \step{6i}
Answerx=±6ix = \pm 6i
2

Find the discriminant of 2x2−5x−3=02x^2 - 5x - 3 = 0 and state the number and type of solutions.

Plug a=2a = 2, b=−5b = -5, and c=−3c = -3 into b2−4ac\disc{b^2 - 4ac}, paying close attention to the negative signs on both bb and cc.

b2−4ac\displaystyle \disc{b^2 - 4ac} =(−5)2−4(2)(−3)\displaystyle = (-5)^2 - 4(2)(-3)
(Watch out. Writing −52=−25-5^2 = -25 instead of (−5)2=25(-5)^2 = 25 gives the wrong discriminant −1-1. Subtracting 2424 instead of adding −4(2)(−3)=+24-4(2)(-3) = +24 gives the wrong discriminant 11. Making both errors gives −49-49. Also, don't take the square root 49=7\sqrt{49} = 7, because the discriminant is just the number under the root.)
  \displaystyle \qquad\quad\text{ }\text{ } =25+24\displaystyle = 25 + 24 =49\displaystyle = \disc{49}
Since 49>0\disc{49} > 0, the equation has 2 real solutions.
AnswerDiscriminant: 4949; 22 real solutions
3

Solve x2−6x+34=0x^2 - 6x + 34 = 0 for xx.

Calculate the discriminant b2−4ac\disc{b^2 - 4ac} first, then plug it into the Quadratic Formula and simplify the square root using ii.

b2−4ac=(−6)2−4(1)(34)=36−136=−100x=−(−6)±−1002(1)=6±10i2\displaystyle \begin{aligned} \disc{b^2 - 4ac} &= (-6)^2 - 4(1)(34) \\ &= 36 - 136 \\ &= \disc{-100} \\ x &= \frac{\centre{-(-6)} \pm \sqrt{\disc{-100}}}{2(1)} \\ &= \frac{\centre{6} \pm \step{10i}}{2} \end{aligned}
(Watch out. Dividing only the front number 6\centre{6} by 22 and leaving 10i\step{10i} alone gives the common wrong answer 3±10i3 \pm 10i. The 22 in the bottom divides both terms in the numerator.)
x\displaystyle x =3±5i\displaystyle = \centre{3} \pm \step{5i}
The solution film reaches the same answer, 3±5i\centre{3} \pm \step{5i}, by completing the square.
Answerx=3±5ix = 3 \pm 5i
4

For 3x2−12x+k=03x^2 - 12x + \coef{k} = 0, find the values of k\coef{k} that give 11 real solution, 22 real solutions, and 22 complex solutions.

Write the discriminant b2−4ac\disc{b^2 - 4ac} using k\coef{k}, then find where the discriminant equals 00.

b2−4ac=(−12)2−4(3)(k)=144−12k\displaystyle \begin{aligned} \disc{b^2 - 4ac} &= (-12)^2 - 4(3)(\coef{k}) \\ &= \disc{144 - 12\coef{k}} \end{aligned}
For 11 real solution (144−12k=0\disc{144 - 12\coef{k}} = 0):
144\displaystyle 144 =12k  ⟹  k\displaystyle = 12\coef{k} \implies \coef{k} =12\displaystyle = \coef{12}
For 22 real solutions (144−12k>0\disc{144 - 12\coef{k}} > 0) and 22 complex solutions (144−12k<0\disc{144 - 12\coef{k}} < 0):
(Watch out: subtracting 144144 to get −12k>−144-12k > -144 and dividing by −12-12 without flipping the inequality sign swaps the two answers, giving k>12k > 12 for 2 real solutions and k<12k < 12 for 2 complex solutions. Adding 12k12\coef{k} to both sides avoids dividing by a negative: 144>12k  ⟹  k<12144 > 12\coef{k} \implies \coef{k} < \coef{12}.)
Answer11 real solution: k=12k = 12; 22 real solutions: k<12k < 12; 22 complex solutions: k>12k > 12
5

Find all values of k\coef{k} that give x2+kx+25=0x^2 + \coef{k}x + 25 = 0 exactly 11 real solution.

Here the unknown k\coef{k} is the middle coefficient bb. Set the discriminant b2−4ac\disc{b^2 - 4ac} equal to 00 and solve for k\coef{k}.

k2−4(1)(25)=0k2−100=0k2=100\displaystyle \begin{aligned} \coef{k}^2 - 4(1)(25) &= 0 \\ \disc{\coef{k}^2 - 100} &= 0 \\ \coef{k}^2 &= 100 \end{aligned}
(Watch out: taking only the positive square root of 100100 gives k=10k = 10 and misses k=−10k = -10, which also squares to +100+100.)
k\displaystyle \coef{k} =±10\displaystyle = \coef{\pm 10}
Answerk=±10k = \pm 10