A line and a parabola
A comet swings past the sun in a curve, and seen from above, its path is part of a parabola. A spaceship crosses the same region in a straight line. Do the two paths meet, and where? In coordinates, the comet's path and the ship's course are
A point on both paths fits both equations: it is a solution of the system.
Put the line into the parabola
Solve the line's equation for y first. From x minus y equals 2, adding y and taking away 2 on both sides gives
Keep the signs here: y is x minus 2, not 2 minus x. Now replace y in the parabola's equation by x minus 2:
That is a quadratic equation in x alone. Moving everything to the right side gives x squared plus x minus 6 equals 0, and factorising gives the quantity x plus 3, the quantity x minus 2, equals 0, so
The pairs
Each x needs its own y, from the line: y equals x minus 2.
- x equals minus 3 gives y equals minus 5;
- x equals 2 gives y equals 0.
So the paths meet in two points: (−3, −5) and (2, 0). Keep each x with its own y: (−3, 0) is not a meeting point.
A check: at (2, 0), the parabola gives minus 4 plus 4, which is 0, and the line gives 2 minus 0, which is 2. Both fit.
Two, one or none
A line can cross a parabola twice, touch it once, or miss it. The quadratic shows which: two solutions, one, or none.
When the quadratic has no solutions, as when the quadratic formula asks for the root of a negative number, the ship and the comet never meet.
Solve the line for y, put it into the parabola's equation, and solve the quadratic. Each x gets its own y from the line: two, one or no meeting points.