Algebra 1Quadratic Functions and Equations7 of 8
Quadratic Functions and Equations · 7

Systems of Linear and Quadratic Equations

We already know how to find where two straight lines cross, and now we want to find where a straight line and a parabola cross.

1

How a Line and a Parabola Can Cross

To solve a system made of a linear equation and a quadratic equation, we are looking for the intersection points (x,y)(x, y) where the line and the parabola are at the exact same spot on the grid.

How a Line and a Parabola Can Cross
2 solutions\text{2 solutions}
1 solution\text{1 solution}
No real solution\text{No real solution}
2 solutions\text{2 solutions}
1 solution\text{1 solution}
No realsolution\begin{gathered}\text{No real}\\[-3pt]\text{solution}\end{gathered}
2

Solving a System by Graphing

Let's find the intersection points of the system

y=x2−3y=x−1\displaystyle \begin{aligned} y &= \curve{x^2 - 3} \\ y &= \linear{x - 1} \end{aligned}

When the crossings land right on the grid corners, we can graph both equations on the same axes and read the coordinates straight off the graph.

Solving a System by Graphing
y=x2−3y = \htmlClass{lc-blue}{x^2 - 3}
y=x−1y = \htmlClass{lc-violet}{x - 1}
−2-2
−1-1
11
22
−3-3
−2-2
−1-1
11
22
33
xx
yy
xx
yy
y=x2−3y = \htmlClass{lc-blue}{x^2 - 3}
(0,−3)\htmlClass{lc-blue}{(0, -3)}
y=x−1y = \htmlClass{lc-violet}{x - 1}
(0,−1)\htmlClass{lc-violet}{(0, -1)}
(−1,−2)\htmlClass{lc-green}{(-1, -2)}
(2,1)\htmlClass{lc-green}{(2, 1)}
Text solution
1. Graph the parabola and the line on the same grid to find where they crossStart the parabola y=x2−3y = \curve{x^2 - 3} at its vertex (0,−3)\curve{(0, -3)} and step out 11 and 22 units to the left and right, then draw the line y=x−1y = \linear{x - 1} through (0,−1)\linear{(0, -1)} with slope 11 to see where the two graphs meet at the same points.
(−1,−2)and(2,1)\displaystyle \meet{(-1, -2)} \quad \text{and} \quad \meet{(2, 1)}
2. Check both intersection points in each original equationPlug each point into both equations to be sure both equations give the same height yy at that xx.
At (−1,−2):y=(−1)2−3=1−3=−2y=−1−1=−2At (2,1):y=22−3=4−3=1y=2−1=1\displaystyle \begin{aligned} \text{At } \meet{(-1, -2)}: \quad y &= (-1)^2 - 3 \\ &= 1 - 3 = \curve{-2} \\ y &= -1 - 1 = \linear{-2} \\[4pt] \text{At } \meet{(2, 1)}: \quad y &= 2^2 - 3 \\ &= 4 - 3 = \curve{1} \\ y &= 2 - 1 = \linear{1} \end{aligned}

So the parabola and the line cross at (−1,−2)\meet{(-1, -2)} and (2,1)\meet{(2, 1)}.

3

Solving a System with Algebra

If the graphs cross high up on the grid or in between grid lines, a hand-drawn graph won't give us exact coordinates. Let's use algebra to find where the parabola and the line cross in the system

y=x2y=2x+3\displaystyle \begin{aligned} y &= \curve{x^2} \\ y &= \linear{2x + 3} \end{aligned}
Solving a System with Algebra
y=x2y = \htmlClass{lc-blue}{x^2}
y=2x+3y = \htmlClass{lc-violet}{2x + 3}
−1-1
11
22
33
44
44
66
88
1010
Text solution
1. Set the two heights equalAt a crossing point, the parabola and the line have the exact same height yy, so we set their equations for yy equal to each other.
x2\displaystyle \curve{x^2} =2x+3\displaystyle = \linear{2x + 3}
2. Subtract the heights and factorMove 2x\linear{2x} and 3\linear{3} to the left side so the equation asks where the vertical gap between the parabola and the line equals 00, then factor the quadratic to find xx.
x2−2x−3=0(x−3)(x+1)=0x=3,x=−1\displaystyle \begin{aligned} \gap{x^2 - 2x - 3} &= 0 \\ \gap{(x - 3)(x + 1)} &= 0 \\ x = 3, \quad x &= -1 \end{aligned}
3. Plug each xx-value back in to find the height yyEach crossing is a point (x,y)(x, y), so substitute x=−1x = -1 and x=3x = 3 into the original equations to find the height at each spot and confirm they match.
At x=−1:y=(−1)2=1andy=2(−1)+3=1  ⟹  (−1,1)At x=3:y=32=9andy=2(3)+3=9  ⟹  (3,9)\displaystyle \begin{aligned} \text{At } x = -1: \quad y &= (-1)^2 = \curve{1} \\ \text{and} \quad y &= 2(-1) + 3 = \linear{1} \\ &\implies \meet{(-1, 1)} \\[4pt] \text{At } x = 3: \quad y &= 3^2 = \curve{9} \\ \text{and} \quad y &= 2(3) + 3 = \linear{9} \\ &\implies \meet{(3, 9)} \end{aligned}

So the two intersection points are (−1,1)\meet{(-1, 1)} and (3,9)\meet{(3, 9)}.

> Watch out on tests: Stopping as soon as you find x=−1x = -1 and x=3x = 3 gives an incomplete answer. Those xx-values only tell you how far left and right the crossings are. Always plug them back in to get the heights yy, and check each point in both original equations to confirm that it is a solution.

Here is how the height difference x2−2x−3\gap{x^2 - 2x - 3} becomes 00 at the intersections (−1,1)\meet{(-1, 1)} and (3,9)\meet{(3, 9)}.

The vertical gap between the two graphs hits zero right where they have the same height.
4

One Solution or No Real Solution

Now let's keep the parabola y=x2y = \curve{x^2} and slide our slope-22 line down the grid to see what happens in the algebra when the line only touches the parabola once, or misses it completely:

y=x2withy=2x−1andy=x2withy=2x−5\displaystyle \begin{aligned} y &= \curve{x^2} \quad \text{with} \quad y = \linear{2x - 1} \qquad \text{and} \\ y &= \curve{x^2} \quad \text{with} \quad y = \linear{2x - 5} \end{aligned}

When a quadratic ax2+bx+c=0ax^2 + bx + c = 0 doesn't factor, the expression inside the square root of the Quadratic Formula tells us whether real solutions exist:

b2−4ac⏟discriminant\displaystyle \sqrt{\underbrace{\disc{b^2 - 4ac}}_{\text{discriminant}}}
One Solution or No Real Solution
y=x2y = \htmlClass{lc-blue}{x^2}
y=2x+3y = \htmlClass{lc-violet}{2x + 3}
−1-1
11
22
33
44
−4-4
44
88
Text solution
1. Set the heights equal and factor for y=2x−1y = \linear{2x - 1}Setting x2\curve{x^2} equal to 2x−1\linear{2x - 1} and moving all terms to the left side gives two identical factors, showing that the two crossings have merged into one xx-value.
x2=2x−1x2−2x+1=0(x−1)(x−1)=0x=1\displaystyle \begin{aligned} \curve{x^2} &= \linear{2x - 1} \\ \gap{x^2 - 2x + 1} &= 0 \\ \gap{(x - 1)(x - 1)} &= 0 \\ x &= 1 \end{aligned}
2. Plug x=1x = 1 back in to find the single point where they touchSubstitute x=1x = 1 into the height equation to get the coordinates where the line touches the parabola.
y\displaystyle y =12\displaystyle = 1^2 =1  ⟹  (1,1)\displaystyle = \curve{1} \implies \meet{(1, 1)}
3. Set the heights equal and check b2−4ac\sqrt{\disc{b^2 - 4ac}} for y=2x−5y = \linear{2x - 5}Setting x2\curve{x^2} equal to 2x−5\linear{2x - 5} gives a quadratic that does not factor, so we plug a=1a = 1, b=−2b = -2, and c=5c = 5 into b2−4ac\disc{b^2 - 4ac} inside the square root.
x2=2x−5x2−2x+5=0b2−4ac=(−2)2−4(1)(5)=4−20=−16b2−4ac=−16\displaystyle \begin{aligned} \curve{x^2} &= \linear{2x - 5} \\ \gap{x^2 - 2x + 5} &= 0 \\ \disc{b^2 - 4ac} &= (-2)^2 - 4(1)(5) \\ &= 4 - 20 = \disc{-16} \\ \sqrt{\disc{b^2 - 4ac}} &= \sqrt{\disc{-16}} \end{aligned}

Because −16\sqrt{\disc{-16}} is not a real number, the vertical gap never reaches 00 and the system with y=2x−5y = \linear{2x - 5} has no real solution.

Here is what happens to the crossings and to b2−4ac\disc{b^2 - 4ac} as we slide the line up and down:

Whether the line crosses the parabola twice, touches it once, or misses it completely matches whether the number inside the square root is positive, zero, or negative.
5

When yy Is Not by Itself

Now let's solve a system where the linear equation isn't written as y=y = right from the start:

y=x2−4x+5x+y=5\displaystyle \begin{aligned} y &= \curve{x^2 - 4x + 5} \\ \linear{x + y} &= \linear{5} \end{aligned}
When an Equation Is in Disguise
y=x2−4x+5x+y=5(x,y)=  ?\displaystyle \begin{aligned} y &= \curve{x^2 - 4x + 5} \\ \linear{x + y} &= \linear{5} \\[8pt] (x, y) &= \;? \end{aligned}
Text solution
1. Substitute for yy in the linear equation (or rewrite the line as y=−x+5y = \linear{-x + 5})Because the top equation already tells us that yy equals x2−4x+5\curve{x^2 - 4x + 5}, we can substitute that whole expression in place of yy in x+y=5\linear{x + y} = \linear{5}.
x+(x2−4x+5)\displaystyle \linear{x} + (\curve{x^2 - 4x + 5}) =5\displaystyle = \linear{5}
2. Simplify to 00 and factor out the shared xxCombine the xx-terms and subtract 55 from both sides, then factor out the shared xx.
x2−3x+5=5x2−3x=0x(x−3)=0x=0,x=3\displaystyle \begin{aligned} x^2 - 3x + 5 &= 5 \\ \gap{x^2 - 3x} &= 0 \\ \gap{x(x - 3)} &= 0 \\ x = 0, \quad x &= 3 \end{aligned}
3. Plug each xx-value into the linear equation to find yyUse the rewritten line y=−x+5y = \linear{-x + 5} to get the height at each crossing.
At x=0:y=−0+5=5  ⟹  (0,5)At x=3:y=−3+5=2  ⟹  (3,2)\displaystyle \begin{aligned} \text{At } x = 0: \quad y &= -0 + 5 = \linear{5} \\ &\implies \meet{(0, 5)} \\[4pt] \text{At } x = 3: \quad y &= -3 + 5 = \linear{2} \\ &\implies \meet{(3, 2)} \end{aligned}

So the parabola and the line cross at (0,5)\meet{(0, 5)} and (3,2)\meet{(3, 2)}.

6

Systems in the Real World

Let's use the same method on a real-world path problem. You toss a ball upward from a 12-meter12\text{-meter} balcony so its height yy, in meters, after xx seconds follows y=−x2+4x+12y = \curve{-x^2 + 4x + 12}, while at the exact same moment a camera drone rises from a 4-meter4\text{-meter} platform along y=2x+4y = \linear{2x + 4}. We want to find when the ball and the drone are at the same height and what that height is.

Systems in the Real World
y=−x2+4x+12y = \htmlClass{lc-blue}{-x^2 + 4x + 12}
y=2x+4y = \htmlClass{lc-violet}{2x + 4}
12 m12\text{ m}
4 m4\text{ m}
11
22
33
44
55
88
1616
x (seconds)x\ (\text{seconds})
y (meters)y\ (\text{meters})
11
22
33
44
55
66
00
x (seconds)x\ (\text{seconds})
y (meters)y\ (\text{meters})
y=−x2+4x+12y = \htmlClass{lc-blue}{-x^2 + 4x + 12}
(0,12)\htmlClass{lc-blue}{(0, 12)}
y=2x+4y = \htmlClass{lc-violet}{2x + 4}
(0,4)\htmlClass{lc-violet}{(0, 4)}
(4,12)\htmlClass{lc-green}{(4, 12)}
(−2,0)rejected\begin{gathered}(-2, 0)\\[-2pt] \text{rejected}\end{gathered}
Text solution
1. Set the two heights equal and move all terms to the side that keeps x2x^2 positiveSet the two heights equal at the same time xx. Moving every term to the right side gives a positive coefficient of x2x^2 for easy factoring.
−x2+4x+12=2x+40=x2−2x−8\displaystyle \begin{aligned} \curve{-x^2 + 4x + 12} &= \linear{2x + 4} \\ 0 &= \gap{x^2 - 2x - 8} \end{aligned}
2. Factor to find the times xxFind the two numbers that multiply to −8-8 and add to −2-2.
(x−4)(x+2)=0x=4,x=−2\displaystyle \begin{aligned} \gap{(x - 4)(x + 2)} &= 0 \\ x = 4, \quad x &= -2 \end{aligned}
3. Keep only the time that makes sense in the story and find the height yyBecause xx measures seconds after the ball is thrown, we discard x=−2x = -2 and substitute x=4x = 4 into both equations to find the height.
At x=4:y=2(4)+4=12andy=−42+4(4)+12=−16+16+12=12\displaystyle \begin{aligned} \text{At } x = 4: \quad y &= 2(4) + 4 = \linear{12} \\ \text{and} \quad y &= -4^2 + 4(4) + 12 \\ &= -16 + 16 + 12 \\ &= \curve{12} \end{aligned}

So the ball and the drone are at the same height 4 seconds4\text{ seconds} after the throw, at 12 meters12\text{ meters}.

Key concepts

When you see a system with a parabola and a line on a test, you are always looking for the points (x,y)(x, y) where both graphs have the exact same height.

Graphing vs. algebra

If a problem gives you a grid and the crossings sit right on grid corners (like y=x2−3y = \curve{x^2 - 3} and y=x−1y = \linear{x - 1} meeting at (−1,−2)\meet{(-1, -2)} and (2,1)\meet{(2, 1)}), read the points off the graph and plug them into both equations to check. There is no need to factor. Otherwise, solve with algebra.

Setting the gap to zero

Get yy by itself in both equations (or substitute the quadratic directly for yy, as in x+(x2−4x+5)=5\linear{x} + (\curve{x^2 - 4x + 5}) = \linear{5}), set the heights equal, and move every term to one side so the equation equals 00. If the coefficient of x2x^2 is negative, like in −x2+4x+12=2x+4\curve{-x^2 + 4x + 12} = \linear{2x + 4}, move everything to the other side to get 0=x2−2x−80 = \gap{x^2 - 2x - 8} so the coefficient of x2x^2 is positive.

How the gap equation tells you the number of crossings

  • Two different real xx-values from factors like (x−3)(x+1)=0\gap{(x - 3)(x + 1)} = 0 or x(x−3)=0\gap{x(x - 3)} = 0 give two crossings. Don't use the Quadratic Formula when you can factor or factor out a shared xx.
  • Two identical factors like (x−1)(x−1)=0\gap{(x - 1)(x - 1)} = 0 give just one xx-value, meaning the line touches the parabola at a single point.
  • Does not factor: Check the discriminant b2−4ac\disc{b^2 - 4ac} inside the square root b2−4ac\sqrt{\disc{b^2 - 4ac}}. When b2−4ac\disc{b^2 - 4ac} is negative, like (−2)2−4(1)(5)=−16(-2)^2 - 4(1)(5) = \disc{-16} in x2−2x+5=0\gap{x^2 - 2x + 5} = 0, stop right there. The line misses the parabola and there is no real solution.
Finishing the answer

Always plug each xx back into the original equations to get the height yy for each point (x,y)(x, y), and in a real-world story, reject any solution that doesn't make sense in real life, such as negative time x=−2x = -2.

7

Practice

1

Solve the system by graphing y=x2−4y = x^2 - 4 and y=x−2y = x - 2, then check both intersection points in the equations.

Where does the vertex of y=x2−4y = \curve{x^2 - 4} sit on the vertical axis, and what are the yy-intercept and slope of y=x−2y = \linear{x - 2}?

Graph the parabola y=x2−4y = \curve{x^2 - 4} starting at its vertex (0,−4)\curve{(0, -4)}, stepping out 11 unit left and right to (−1,−3)\curve{(-1, -3)} and (1,−3)\curve{(1, -3)}, and 22 units left and right to (−2,0)\curve{(-2, 0)} and (2,0)\curve{(2, 0)}. Graph the line y=x−2y = \linear{x - 2} starting at (0,−2)\linear{(0, -2)}. Step right 11 and up 11 twice to reach (2,0)\meet{(2, 0)}. From (0,−2)\linear{(0, -2)}, step left 11 and down 11 to reach (−1,−3)\meet{(-1, -3)}. (Watch out: when checking x=−1x = -1 in y=x2−4y = \curve{x^2 - 4}, square the negative sign too so (−1)2−4=1−4=−3(-1)^2 - 4 = 1 - 4 = \curve{-3}; leaving off the parentheses gives −1−4=−5-1 - 4 = -5 and makes a valid crossing look wrong.)
(−1,−3)and(2,0)\displaystyle \meet{(-1, -3)} \quad \text{and} \quad \meet{(2, 0)}
In y=x2−4:(−1)2−4=−3and22−4=0In y=x−2:−1−2=−3and2−2=0\displaystyle \begin{aligned} \text{In } y = \curve{x^2 - 4}: \quad & (-1)^2 - 4 = \curve{-3} \quad \text{and} \quad 2^2 - 4 = \curve{0} \\ \text{In } y = \linear{x - 2}: \quad & -1 - 2 = \linear{-3} \quad \text{and} \quad 2 - 2 = \linear{0} \end{aligned}
2

Solve the system algebraically: y=x2−2x−1y = x^2 - 2x - 1 and y=x+3y = x + 3.

Set the two heights equal and move all terms to the left side. What quadratic equals 00?

x2−2x−1=x+3x2−3x−4=0\displaystyle \begin{aligned} \curve{x^2 - 2x - 1} &= \linear{x + 3} \\ \gap{x^2 - 3x - 4} &= 0 \end{aligned}
(Watch out: when factoring x2−3x−4=0\gap{x^2 - 3x - 4} = 0, the numbers must add to −3-3, so use (x−4)(x+1)=0\gap{(x - 4)(x + 1)} = 0; flipping the signs to (x+4)(x−1)=0(x + 4)(x - 1) = 0 gives the wrong points (−4,−1)(-4, -1) and (1,4)(1, 4).)
(x−4)(x+1)=0x=−1,x=4\displaystyle \begin{aligned} \gap{(x - 4)(x + 1)} &= 0 \\ x = -1, \quad x &= 4 \end{aligned}
At x=−1:y=−1+3=2At x=4:y=4+3=7\displaystyle \begin{aligned} \text{At } x = -1: \quad y &= -1 + 3 = \linear{2} \\ \text{At } x = 4: \quad y &= 4 + 3 = \linear{7} \end{aligned}
(−1,2)and(4,7)\displaystyle \meet{(-1, 2)} \quad \text{and} \quad \meet{(4, 7)}
3

Solve the system algebraically: y=x2+3y = x^2 + 3 and y=4x−1y = 4x - 1.

Once you move 4x−1\linear{4x - 1} to the left side to get =0= 0, look closely at the two factors you get.

x2+3=4x−1x2−4x+4=0(x−2)(x−2)=0\displaystyle \begin{aligned} \curve{x^2 + 3} &= \linear{4x - 1} \\ \gap{x^2 - 4x + 4} &= 0 \\ \gap{(x - 2)(x - 2)} &= 0 \end{aligned}
(Watch out: x−2=0x - 2 = 0 solves to x=2x = 2, not x=−2x = -2; using x=−2x = -2 gives y=−9y = -9 in the line and y=7y = 7 in the parabola, which immediately warns you the heights don't match.)
x\displaystyle x =2  ⟹  y\displaystyle = 2 \implies y =22+3\displaystyle = 2^2 + 3 =7\displaystyle = \curve{7}
(2,7)\displaystyle \meet{(2, 7)}
4

Solve the system algebraically: y=x2+3y = x^2 + 3 and y=2x+1y = 2x + 1.

Set the heights equal to get the gap equation =0= 0. Does any pair of numbers multiply to cc and add to bb, or should you check inside b2−4ac\sqrt{\disc{b^2 - 4ac}}?

x2+3=2x+1x2−2x+2=0\displaystyle \begin{aligned} \curve{x^2 + 3} &= \linear{2x + 1} \\ \gap{x^2 - 2x + 2} &= 0 \end{aligned}
(Watch out: don't force x2−2x+2=0\gap{x^2 - 2x + 2} = 0 to factor as (x−2)(x+1)=0(x - 2)(x + 1) = 0, which multiplies to −2-2 at the end instead of +2+2 and gives the false crossings (2,5)(2, 5) and (−1,−1)(-1, -1).)
b2−4ac=(−2)2−4(1)(2)=4−8=−4\displaystyle \begin{aligned} \disc{b^2 - 4ac} &= (-2)^2 - 4(1)(2) \\ &= 4 - 8 = \disc{-4} \end{aligned}
No real solution, because x2−2x+2=0\gap{x^2 - 2x + 2} = 0 has a negative number inside the square root, b2−4ac=(−2)2−4(1)(2)\disc{b^2 - 4ac} = (-2)^2 - 4(1)(2) =−4= \disc{-4}, so the line and parabola never touch.
5

Solve the system: y=x2−6x+4y = x^2 - 6x + 4 and 2x+y=42x + y = 4.

In 2x+y=4\linear{2x + y} = \linear{4}, how can you replace yy (or get yy by itself) so your equation has only xx's?

2x+(x2−6x+4)=4x2−4x+4=4x2−4x=0\displaystyle \begin{aligned} \linear{2x} + (\curve{x^2 - 6x + 4}) &= \linear{4} \\ x^2 - 4x + 4 &= 4 \\ \gap{x^2 - 4x} &= 0 \end{aligned}
(Watch out: factor xx out front as x(x−4)=0\gap{x(x - 4)} = 0 rather than dividing both sides by xx; dividing by xx loses the x=0x = 0 crossing and leaves only (4,−4)\meet{(4, -4)}.)
x(x−4)=0x=0,x=4\displaystyle \begin{aligned} \gap{x(x - 4)} &= 0 \\ x = 0, \quad x &= 4 \end{aligned}
Using y=−2x+4:at x=0,  y=4;at x=4,  y=−2(4)+4=−4\displaystyle \begin{aligned} &\text{Using } y = \linear{-2x + 4}: \\ &\text{at } x = 0, \; y = \linear{4}; \\ &\text{at } x = 4, \; y = -2(4) + 4 = \linear{-4} \end{aligned}
(0,4)and(4,−4)\displaystyle \meet{(0, 4)} \quad \text{and} \quad \meet{(4, -4)}
6

A flare is launched upward from an 18-meter18\text{-meter} cliff, and its height yy, in meters, after xx seconds is given by y=−x2+4x+18y = -x^2 + 4x + 18. At the same moment, a weather balloon rises from a 3-meter3\text{-meter} platform according to y=2x+3y = 2x + 3. After how many seconds are the flare and the balloon at the same height, and what is that height?

Set the heights equal and move every term to the side that makes x2x^2 positive. Once you find both values of xx, what does xx stand for in the story?

−x2+4x+18=2x+30=x2−2x−150=(x−5)(x+3)x=5,x=−3\displaystyle \begin{aligned} \curve{-x^2 + 4x + 18} &= \linear{2x + 3} \\ 0 &= \gap{x^2 - 2x - 15} \\ 0 &= \gap{(x - 5)(x + 3)} \\ x = 5, \quad x &= -3 \end{aligned}
(Watch out: don't keep x=−3x = -3 as a second answer of −3 seconds-3\text{ seconds} at a height of −3 meters-3\text{ meters}. Here xx is time after the launch, so negative time is before the flare was even fired.)
At x\displaystyle \text{At } x =5:y\displaystyle = 5: \quad y =2(5)+3\displaystyle = 2(5) + 3 =13\displaystyle = \linear{13}
5 seconds5\text{ seconds}, at a height of 13 meters13\text{ meters} (x=−3x = -3 is rejected because it is before the launch).