Intersection of a quadratic function and a line

A point where the parabola y=x2y = x^2 meets a line is a point that sits on the parabola and on the line at the same time. At such a point the yy you get from the parabola and the yy you get from the line are exactly equal. So to find an intersection we set those two yy values equal and combine them into a single equation.

Solving for the intersections

Take the line y=2x+3y = 2x + 3.

x2=2x+3x22x3=0(x3)(x+1)=0\begin{align*} x^2 &= 2x + 3 \\ x^2 - 2x - 3 &= 0 \\ (x - 3)(x + 1) &= 0 \end{align*}

So x=3x = 3 or x=1x = -1. Putting these back into the parabola gives y=9y = 9 and y=1y = 1, so the two intersection points are (3,9)(3, 9) and (1,1)(-1, 1).

Counting without solving

The key idea is that the number of solutions of the equation is the number of intersection points. You can find that count using the discriminant D=b24acD = b^2 - 4ac of the quadratic ax2+bx+c=0ax^2 + bx + c = 01. It is the part under the square root in the quadratic formula, and its sign decides everything.

DiscriminantSolutionsThe line and the parabola
D>0D > 0twocut at two points
D=0D = 0oneare tangent
D<0D < 0nonedo not meet

Sliding a line of fixed slope

If you slide a line of the same slope up and down, these three cases appear in turn: while the line runs deep through the parabola there are two crossings, as it drops the two crossings move closer, at one moment they merge into a single point where the line is tangent, and lower still the line leaves the parabola entirely.

Three lines of slope 22 are drawn on the graph, each giving x22xk=0x^2 - 2x - k = 0 with discriminant D=4+4kD = 4 + 4k.

LineEquationDDResult
y=2x+3y = 2x + 3x22x3=0x^2 - 2x - 3 = 01616two crossings
y=2x1y = 2x - 1(x1)2=0(x - 1)^2 = 000tangent at (1,1)(1, 1)
y=2x3y = 2x - 3x22x+3=0x^2 - 2x + 3 = 08-8no crossing

The large dots on the graph mark the intersection and tangency points.

  1. Discriminant, Wikipedia