Algebra 2Quadratic Functions and Equations6 of 7
Quadratic Functions and Equations · 6

Systems of Nonlinear Equations

Solving a system of equations means finding the exact (x,y)(x, y) points where their graphs cross, and when at least one graph curves, they can cross in more than one place.

Where curved graphs cross
xx
yy
y=x2y = \curveone{x^2}
y=x+2y = \curvetwo{x + 2}
1

A parabola and a line

We want to find the exact (x,y)(x, y) points where this parabola and straight line cross:

y=x2y=x+2\displaystyle \begin{aligned} y &= \curveone{x^2} \\ y &= \curvetwo{x + 2} \end{aligned}

Since both equations already have the height yy by itself, we can set those heights equal to find the xx-values where the graphs meet.

Solving a parabola and a line by substitution
y=x2y=x+2(x,y)=  ?\displaystyle \begin{aligned}y &= \curveone{x^2}\\y &= \curvetwo{x + 2}\\[12pt](x, y) &= \;?\end{aligned}
Text solution
Set the heights equal and solve for xxAt an intersection, both graphs have the same height yy, so we put x+2\curvetwo{x + 2} in place of yy in the first equation to get a quadratic equation with only xx.
x2=x+2x2−x−2=0(x−2)(x+1)=0x=2orx=−1\displaystyle \begin{aligned} \curveone{x^2} &= \curvetwo{x + 2} \\ x^2 - x - 2 &= 0 \\ (x - 2)(x + 1) &= 0 \\ x = \solved{2} \quad &\text{or} \quad x = \solved{-1} \end{aligned}
Plug each xx into the line to find yyThe numbers 2\solved{2} and −1\solved{-1} are two separate xx-locations, not the single point (2,−1)(2, -1), so we plug each xx into the simpler line equation y=x+2y = \curvetwo{x + 2} to get its height yy.
x=2:y=2+2=4→(2,4)x=−1:y=−1+2=1→(−1,1)\displaystyle \begin{aligned} x = \solved{2}: \quad y &= \solved{2} + 2 = 4 \\ &\rightarrow (2, 4) \\[6pt] x = \solved{-1}: \quad y &= \solved{-1} + 2 = 1 \\ &\rightarrow (-1, 1) \end{aligned}

So the line crosses the parabola at two points: (2,4)(2, 4) and (−1,1)(-1, 1).

2

When the graphs don't cross

Now let's keep the parabola y=x2y = \curveone{x^2} and move the line down so we are looking for where these two graphs cross:

y=x2y=x−5\displaystyle \begin{aligned} y &= \curveone{x^2} \\ y &= \curvetwo{x - 5} \end{aligned}

Even without looking at a graph, we can set the heights equal the same way and let the quadratic formula tell us whether the graphs ever touch.

For ax2+bx+c=0,x=−b±b2−4ac⏟discriminant2a\displaystyle \begin{aligned} &\text{For } ax^2 + bx + c = 0, \\ &x = \frac{-b \pm \sqrt{\underroot{\underbrace{b^2 - 4ac}_{\text{discriminant}}}}}{2a} \end{aligned}
When the graphs don't cross
xx
yy
y=x2y = \curveone{x^2}
y=x−5y = \curvetwo{x - 5}
Text solution
Set the heights equal and move all terms to one sideWe set the two heights equal and move everything to the left side so it equals zero.
x2=x−5x2−x+5=0\displaystyle \begin{aligned} \curveone{x^2} &= \curvetwo{x - 5} \\ x^2 - x + 5 &= 0 \end{aligned}
Check the discriminant inside the square rootSince x2−x+5x^2 - x + 5 doesn't factor cleanly, we plug a=1a = 1, b=−1b = -1, and c=5c = 5 into the quadratic formula and check the discriminant b2−4ac\underroot{b^2 - 4ac} under the square root.
x=1±(−1)2−4(1)(5)⏟discriminant =−192=1±−192\displaystyle \begin{aligned} x &= \frac{1 \pm \sqrt{\underroot{\underbrace{(-1)^2 - 4(1)(5)}_{\text{discriminant } = -19}}}}{2} \\ &= \frac{1 \pm \sqrt{\underroot{-19}}}{2} \end{aligned}

Because −19\sqrt{\underroot{-19}} is not a real number, there are no real solutions. The line stays completely below the parabola and never touches it.

As the line moves up and down across the parabola y=x2y = \curveone{x^2}, the sign of the discriminant under the square root tells us whether the line crosses the parabola twice, touches it at a single point, or misses it completely.

Drag the line up and down to see how the number inside the square root tells you how many times the line hits the parabola.
3

A circle and a line

In the earlier systems, yy was already by itself on one side. Now we want to find where a circle and a line cross. By the Pythagorean theorem, every point (x,y)(x, y) at distance rr from the origin satisfies x2+y2=r2\curveone{x^2 + y^2} = r^2, so in the system below, x2+y2=25\curveone{x^2 + y^2} = 25 is a circle of radius 55 centered at the origin.

x2+y2=25x−y=1\displaystyle \begin{aligned} \curveone{x^2 + y^2} &= 25 \\ \curvetwo{x - y} &= 1 \end{aligned}

Getting a variable by itself in the circle equation x2+y2=25\curveone{x^2 + y^2} = 25 would bring in a square root, so we get yy by itself in the line equation first and plug that into the circle.

Solving a circle and a line
x2+y2=25x−y=1(x,y)=  ?\displaystyle \begin{aligned}\curveone{x^2 + y^2} &= 25\\\curvetwo{x - y} &= 1\\[12pt](x, y) &= \;?\end{aligned}
Text solution
Get yy by itself in the line and substitute into the circleRearranging the line equation x−y=1\curvetwo{x - y} = 1 gives a simple expression for yy with no square roots.
y=x−1x2+(x−1)2=25\displaystyle \begin{aligned} y &= \curvetwo{x - 1} \\ \curveone{x^2} + (\curvetwo{x - 1})^2 &= 25 \end{aligned}
Multiply out (x−1)2(\curvetwo{x - 1})^2 and solve for xxSquaring (x−1)(\curvetwo{x - 1}) means multiplying (x−1)(x−1)(\curvetwo{x - 1})(\curvetwo{x - 1}), not just squaring each piece to get x2+1x^2 + 1.
x2+(x−1)(x−1)⏟x2−2x+1=252x2−2x+1=252x2−2x−24=0x2−x−12=0(x−4)(x+3)=0x=4orx=−3\displaystyle \begin{aligned} \curveone{x^2} + \underbrace{(\curvetwo{x - 1})(\curvetwo{x - 1})}_{\curvetwo{x^2 - 2x + 1}} &= 25 \\ 2x^2 - 2x + 1 &= 25 \\ 2x^2 - 2x - 24 &= 0 \\ x^2 - x - 12 &= 0 \\ (x - 4)(x + 3) &= 0 \\ x = \solved{4} \quad &\text{or} \quad x = \solved{-3} \end{aligned}
Plug each xx back into the line to find yyWe plug x=4x = \solved{4} and x=−3x = \solved{-3} back into the line y=x−1y = \curvetwo{x - 1} rather than the circle, because the circle has two points at x=4x = \solved{4} and only one of them is also on the line.
xx
yy
x2+y2=25\curveone{x^2 + y^2} = 25
x−y=1\curvetwo{x - y} = 1
x=4x = \solved{4}
(4,3)(4, 3)
(4,−3)\curveone{(4, -3)}
x=4:y=4−1=3→(4,3)x=−3:y=−3−1=−4→(−3,−4)\displaystyle \begin{aligned} x = \solved{4}: \quad y &= \solved{4} - 1 = 3 \\ &\rightarrow (4, 3) \\[6pt] x = \solved{-3}: \quad y &= \solved{-3} - 1 = -4 \\ &\rightarrow (-3, -4) \end{aligned}

So the line crosses the circle at (4,3)(4, 3) and (−3,−4)(-3, -4).

4

Two curves: elimination

Now we want to find where two curved graphs, a circle and a parabola, cross:

x2+y2=13x2−y=7\displaystyle \begin{aligned} \elim{x^2} + \curveone{y^2} &= 13 \\ \elim{x^2} - \curvetwo{y} &= 7 \end{aligned}

Solving the second equation for y=x2−7y = \curvetwo{x^2 - 7} and plugging that into the circle would mean multiplying out (x2−7)2(\curvetwo{x^2 - 7})^2, which creates an x4x^4 equation. Because both equations already have the exact same x2\elim{x^2} term, we can subtract one equation from the other to eliminate x2\elim{x^2} in a single step.

Solving two curves by elimination
x2+y2=13x2−y=7(x,y)=  ?\displaystyle \begin{aligned}\elim{x^2} + \curveone{y^2} &= 13\\\elim{x^2} - \curvetwo{y} &= 7\\[12pt](x, y) &= \;?\end{aligned}
Text solution
Subtract the equations to eliminate x2\elim{x^2}Subtracting the bottom equation from the top one cancels out x2\elim{x^2} right away. Watch the minus sign: subtracting −y-\curvetwo{y} becomes +y+\curvetwo{y}, while y2\curveone{y^2} and y\curvetwo{y} stay separate terms.
(x2+y2)−(x2−y)=13−7y2+y=6\displaystyle \begin{aligned} (\elim{x^2} + \curveone{y^2}) - (\elim{x^2} - \curvetwo{y}) &= 13 - 7 \\ \curveone{y^2} + \curvetwo{y} &= 6 \end{aligned}
Solve the quadratic equation for the heights yyMoving 66 to the left side gives a quadratic equation for the heights yy where the two curves cross.
y2+y−6=0(y+3)(y−2)=0y=2ory=−3\displaystyle \begin{aligned} y^2 + y - 6 &= 0 \\ (y + 3)(y - 2) &= 0 \\ y = \solved{2} \quad &\text{or} \quad y = \solved{-3} \end{aligned}
Plug each height yy into the parabola to find xxBecause both the circle and the parabola are symmetric left-to-right, each height yy crosses both the left and right sides of the curves, so we keep both the positive and negative square roots for xx.
xx
yy
x2+y2=13\curveone{x^2 + y^2} = 13
x2−y=7\curvetwo{x^2 - y} = 7
(0,−7)\curvetwo{(0, -7)}
y=2y = \solved{2}
(−3,2)(-3, 2)
(3,2)(3, 2)
y=−3y = \solved{-3}
(−2,−3)(-2, -3)
(2,−3)(2, -3)
y=2:x2−2=7x2=9x=±3→(3,2) and (−3,2)\displaystyle \begin{aligned} y = \solved{2}: \\ x^2 - \solved{2} &= 7 \\ x^2 &= \underroot{9} \\ x &= \pm 3 \\ &\rightarrow (3, 2) \text{ and } (-3, 2) \end{aligned}
y=−3:x2−(−3)=7x2+3=7x2=4x=±2→(2,−3) and (−2,−3)\displaystyle \begin{aligned} y = \solved{-3}: \\ x^2 - (\solved{-3}) &= 7 \\ x^2 + 3 &= 7 \\ x^2 &= \underroot{4} \\ x &= \pm 2 \\ &\rightarrow (2, -3) \text{ and } (-2, -3) \end{aligned}

So the circle and parabola cross at four points: (3,2)(3, 2), (−3,2)(-3, 2), (2,−3)(2, -3), and (−2,−3)(-2, -3).

5

When one height misses the curve

In the problem above, both heights y=2y = \solved{2} and y=−3y = \solved{-3} gave positive numbers for x2\underroot{x^2}. If the parabola starts higher up so its vertex sits inside the circle, one of the yy-values from elimination can land below the vertex, where the parabola doesn't go.

When a branch has no real solutions
xx
yy

As the parabola moves up and down through the circle, each height yy from elimination gives two symmetric points above the vertex (x2>0\underroot{x^2} > 0), one point right at the vertex (x2=0\underroot{x^2} = 0), or no real points below the vertex (x2<0\underroot{x^2} < 0).

Each height you find gives two matching intersections above the parabola's vertex, one right at the vertex, and none below it.

Key concepts

Line and curve →\rightarrow Substitute from the line

If yy is already by itself in both equations (y=x2y = \curveone{x^2} and y=x+2y = \curvetwo{x + 2}), set the expressions equal (x2=x+2\curveone{x^2} = \curvetwo{x + 2}). If neither variable is by itself (x2+y2=25\curveone{x^2 + y^2} = 25 and x−y=1\curvetwo{x - y} = 1), always get a variable by itself in the line (y=x−1y = \curvetwo{x - 1}) to avoid square roots, multiply out (x−1)(x−1)=x2−2x+1(\curvetwo{x - 1})(\curvetwo{x - 1}) = \curvetwo{x^2 - 2x + 1} carefully, and plug your xx-values back into the line at the end so the circle doesn't give you an extra ±\pm value that isn't on the line.

Two curves with a matching squared term →\rightarrow Eliminate the squared term

When both equations curve and share a term like x2\elim{x^2} (x2+y2=13\elim{x^2} + \curveone{y^2} = 13 and x2−y=7\elim{x^2} - \curvetwo{y} = 7), don't solve for y=x2−7y = \curvetwo{x^2 - 7} and square it into x4x^4. Subtract the equations to cancel x2\elim{x^2} in one step, solve for yy, and keep both the positive and negative values of xx whenever plugging back in gives x2>0\underroot{x^2} > 0.

Negative under a square root →\rightarrow Drop that case

When we set the expressions for yy equal for a line and a parabola, a negative discriminant (like −19\underroot{-19} from x2−x+5=0x^2 - x + 5 = 0) means there are no real intersections, while a zero discriminant means they touch at a single point. If plugging a coordinate back in at the end gives an equation like x2=−4x^2 = \underroot{-4}, that height gives no real points, so cross it out and keep any real points from the other height.

6

Practice

1

Solve the system y=x2y = x^2 and y=x+6y = x + 6.

Both equations already give the height yy. What has to be true about x2x^2 and x+6x + 6 at an intersection?

Set the two expressions for yy equal and solve for xx:
x2=x+6x2−x−6=0(x−3)(x+2)=0x=3orx=−2\displaystyle \begin{aligned} \curveone{x^2} &= \curvetwo{x + 6} \\ x^2 - x - 6 &= 0 \\ (x - 3)(x + 2) &= 0 \\ x = \solved{3} \quad &\text{or} \quad x = \solved{-2} \end{aligned}
Watch out: Don't stop here and write (3,−2)(3, -2) as a single point. The numbers 3\solved{3} and −2\solved{-2} are two separate xx-locations that each need their own height yy. Also check the signs when factoring x2−x−6x^2 - x - 6: factoring as (x+3)(x−2)=0(x + 3)(x - 2) = 0 flips the solutions to x=−3x = -3 and x=2x = 2, which gives (−3,3)(-3, 3) and (2,8)(2, 8).
Plug each xx into y=x+6y = \curvetwo{x + 6}:
x=3:y=3+6=9x=−2:y=−2+6=4\displaystyle \begin{aligned} x = \solved{3}: \quad y &= \solved{3} + 6 & &= 9 \\ x = \solved{-2}: \quad y &= \solved{-2} + 6 & &= 4 \end{aligned}
Answer: (3,9)(3, 9) and (−2,4)(-2, 4)
2

Solve the system y=x2+4y = x^2 + 4 and y=4xy = 4x.

Set the heights equal and bring every term to one side. How many solutions does the quadratic equation have?

Set the heights equal and move 4x\curvetwo{4x} to the left side:
x2+4=4xx2−4x+4=0(x−2)2=0x=2\displaystyle \begin{aligned} \curveone{x^2 + 4} &= \curvetwo{4x} \\ x^2 - 4x + 4 &= 0 \\ (x - 2)^2 &= 0 \\ x &= \solved{2} \end{aligned}
Watch out: The quadratic x2−4x+4=0x^2 - 4x + 4 = 0 is a perfect square (x−2)2=0(x - 2)^2 = 0 (its discriminant is (−4)2−4(1)(4)=0\underroot{(-4)^2 - 4(1)(4)} = 0), so the line touches the parabola at a single point. Treating it like a difference of squares (x−2)(x+2)=0(x - 2)(x + 2) = 0 gives a wrong second solution x=−2x = -2 and the extra point (−2,−8)(-2, -8).
Plug x=2x = \solved{2} into y=4xy = \curvetwo{4x}:
y\displaystyle y =4(2)\displaystyle = 4(\solved{2}) =8\displaystyle = 8
Answer: (2,8)(2, 8)
3

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

After setting the heights equal and moving everything to one side, check the discriminant b2−4acb^2 - 4ac inside the square root.

Set the heights equal and move all terms to the left side:
x2+3=x+1x2−x+2=0\displaystyle \begin{aligned} \curveone{x^2 + 3} &= \curvetwo{x + 1} \\ x^2 - x + 2 &= 0 \end{aligned}
Watch out: Subtracting 11 from 33 gives +2+2, not −2-2. Writing x2−x−2=0x^2 - x - 2 = 0 makes the quadratic factor as (x−2)(x+1)=0(x - 2)(x + 1) = 0 and gives the wrong points (2,3)(2, 3) and (−1,0)(-1, 0).
Check the discriminant in the quadratic formula:
x=1±(−1)2−4(1)(2)2=1±−72\displaystyle \begin{aligned} x &= \frac{1 \pm \sqrt{\underroot{(-1)^2 - 4(1)(2)}}}{2} \\ &= \frac{1 \pm \sqrt{\underroot{-7}}}{2} \end{aligned}
Because −7\underroot{-7} is negative inside the square root, the line and parabola never cross.
Answer: No real solutions
4

Solve the system x2+y2=10x^2 + y^2 = 10 and x−y=2x - y = 2.

Which equation lets you get a variable by itself without bringing in a square root?

Get yy by itself in the line x−y=2\curvetwo{x - y} = 2 and substitute into the circle. (The solution film gets xx by itself instead and reaches the same answer.)
y=x−2x2+(x−2)2=10\displaystyle \begin{aligned} y &= \curvetwo{x - 2} \\ \curveone{x^2} + (\curvetwo{x - 2})^2 &= 10 \end{aligned}
Multiply out (x−2)(x−2)(\curvetwo{x - 2})(\curvetwo{x - 2}) and solve for xx:
x2+(x2−4x+4)=102x2−4x+4=102x2−4x−6=0x2−2x−3=0(x−3)(x+1)=0x=3orx=−1\displaystyle \begin{aligned} \curveone{x^2} + (\curvetwo{x^2 - 4x + 4}) &= 10 \\ 2x^2 - 4x + 4 &= 10 \\ 2x^2 - 4x - 6 &= 0 \\ x^2 - 2x - 3 &= 0 \\ (x - 3)(x + 1) &= 0 \\ x = \solved{3} \quad &\text{or} \quad x = \solved{-1} \end{aligned}
Watch out: Squaring (x−2)2(\curvetwo{x - 2})^2 piece by piece to x2+4x^2 + 4 misses the middle −4x-4x term, turning the equation into 2x2+4=102x^2 + 4 = 10 and giving x=±3x = \pm\sqrt{3}.
Plug each xx back into the line y=x−2y = \curvetwo{x - 2}:
Watch out: Plugging x=3x = \solved{3} into the circle x2+y2=10\curveone{x^2 + y^2} = 10 gives y2=1→y=±1y^2 = 1 \rightarrow y = \pm 1, which brings in the extra point (3,−1)(3, -1) that doesn't work in the line x−y=2\curvetwo{x - y} = 2. Always use the line:
x=3:y=3−2=1x=−1:y=−1−2=−3\displaystyle \begin{aligned} x = \solved{3}: \quad y &= \solved{3} - 2 & &= 1 \\ x = \solved{-1}: \quad y &= \solved{-1} - 2 & &= -3 \end{aligned}
Answer: (3,1)(3, 1) and (−1,−3)(-1, -3)
5

Solve the system x2+y2=25x^2 + y^2 = 25 and x2−y=13x^2 - y = 13.

Both curved equations have an x2x^2 term. How can you cancel x2x^2 in one step without creating x4x^4?

Subtract the second equation from the first to eliminate x2x^2:
(x2+y2)−(x2−y)=25−13y2+y=12\displaystyle \begin{aligned} (\elim{x^2} + \curveone{y^2}) - (\elim{x^2} - \curvetwo{y}) &= 25 - 13 \\ \curveone{y^2} + \curvetwo{y} &= 12 \end{aligned}
Watch out: Subtracting −y-\curvetwo{y} gives +y+\curvetwo{y}, not −y-y. Writing y2−y=12y^2 - y = 12 flips the factors to (y−4)(y+3)=0(y - 4)(y + 3) = 0 and gives the wrong heights y=4y = 4 and y=−3y = -3 (which then give x=±17x = \pm\sqrt{17} and x=±10x = \pm\sqrt{10}).
Solve the quadratic equation for the heights yy:
y2+y−12=0(y+4)(y−3)=0y=3ory=−4\displaystyle \begin{aligned} y^2 + y - 12 &= 0 \\ (y + 4)(y - 3) &= 0 \\ y = \solved{3} \quad &\text{or} \quad y = \solved{-4} \end{aligned}
Plug each height yy into x2−y=13x^2 - y = 13:
Watch out: Remember to take both the positive and negative square roots for x2\underroot{x^2}. Keeping only the positive root misses (−4,3)(-4, 3) and (−3,−4)(-3, -4) and leaves only two of the four intersections.
y=3:x2−3=13→x2=16→x=±4y=−4:x2−(−4)=13→x2=9→x=±3\displaystyle \begin{aligned} y = \solved{3}: \quad x^2 - \solved{3} &= 13 \\ \rightarrow \quad x^2 &= \underroot{16} \\ \rightarrow \quad x &= \pm 4 \\[6pt] y = \solved{-4}: \quad x^2 - (\solved{-4}) &= 13 \\ \rightarrow \quad x^2 &= \underroot{9} \\ \rightarrow \quad x &= \pm 3 \end{aligned}
Answer: (4,3)(4, 3), (−4,3)(-4, 3), (3,−4)(3, -4), and (−3,−4)(-3, -4)
6

Solve the system x2+y2=8x^2 + y^2 = 8 and x2−y=2x^2 - y = 2.

Eliminate x2x^2 to find the two possible heights yy, then check what happens to x2x^2 when you plug each height back in.

Subtract the second equation from the first to eliminate x2x^2:
(x2+y2)−(x2−y)=8−2y2+y=6y2+y−6=0(y+3)(y−2)=0y=2ory=−3\displaystyle \begin{aligned} (\elim{x^2} + \curveone{y^2}) - (\elim{x^2} - \curvetwo{y}) &= 8 - 2 \\ \curveone{y^2} + \curvetwo{y} &= 6 \\ y^2 + y - 6 &= 0 \\ (y + 3)(y - 2) &= 0 \\ y = \solved{2} \quad &\text{or} \quad y = \solved{-3} \end{aligned}
Plug each height yy into x2−y=2x^2 - y = 2:
y=2:x2−2=2x2=4x=±2\displaystyle \begin{aligned} y = \solved{2}: \\ x^2 - \solved{2} &= 2 \\ x^2 &= \underroot{4} \\ x &= \pm 2 \end{aligned}
y=−3:x2−(−3)=2x2+3=2x2=−1(no real solutions)\displaystyle \begin{aligned} y = \solved{-3}: \\ x^2 - (\solved{-3}) &= 2 \\ x^2 + 3 &= 2 \\ x^2 &= \underroot{-1} \quad (\text{no real solutions}) \end{aligned}
Watch out: Don't ignore the minus sign on x2=−1x^2 = \underroot{-1} and turn it into x=±1x = \pm 1 (which gives the wrong points (1,−3)(1, -3) and (−1,−3)(-1, -3)), and watch the double negative in x2−(−3)=2x^2 - (\solved{-3}) = 2 so it doesn't become x2−3=2→x=±5x^2 - 3 = 2 \rightarrow x = \pm\sqrt{5}. Because x2=−1x^2 = \underroot{-1} has no real square root, y=−3y = \solved{-3} gives no real points.
Answer: (2,2)(2, 2) and (−2,2)(-2, 2)