Algebraically Find the Intersection of Two Lines

When straight lines intersect on a two-dimensional graph, they meet at only one point, described by a single set of x- and y-coordinates. Because both lines pass through that point, you know that the x- and y- coordinates must satisfy both equations. With a couple extra techniques, you can find the intersections of parabolas and other quadratic curves using similar logic.

Steps

Finding the Intersection of Two Straight Lines

  1. Write the equation for each line with y on the left side. If necessary, rearrange the equation so y is alone on one side of the equal sign. If the equation uses f(x) or g(x) instead of y, separate this term instead. Remember, you can cancel out terms by performing the same action to both sides.
    • If you do not know the equations, Find-the-Equation-of-a-Line based on the information you have.
    • Example: Your two lines are <math>y = x + 3</math> and <math>y - 12 = -2x</math>. To get y alone in the second equation, add 12 to each side: <math>y = 12 - 2x</math>
  2. Set the right sides of the equation equal to each other. We're looking for a point where the two lines have the same x and y values; this is where the lines cross. Both equations have just y on the left side, so we know the right sides are equal to each other. Write a new equation that represents this.
    • Example: We know <math>y = x + 3</math> and <math>y = 12 - 2x</math>, therefore <math>x + 3 = 12 - 2x</math>.
  3. Solve-for-X. The new equation only has one variable, x. Solve this using algebra, by performing the same operation on both sides. Get the x terms on one side of the equation, then put it in the form x = __. (If this is impossible, skip down to the end of this section.)
    • Example: <math>x + 3 = 12 - 2x</math>
    • Add <math>2x</math> to each side:
    • <math>3x + 3 = 12</math>
    • Subtract 3 from each side:
    • <math>3x = 9</math>
    • Divide each side by 3:
    • <math>x = 3</math>.
  4. Use this x-value to solve for y. Choose the equation for either line. Replace every x in the equation with the answer you found. Do the arithmetic to solve for y.
    • Example: <math>x = 3</math> and <math>y = x + 3</math>
    • <math>y = 3 + 3</math>
    • <math>y = 6</math>
  5. Check your work. It's a good idea to plug your x-value into the other equation and see if you get the same result. If you get a different solution for y, go back and check your work for mistakes.
    • Example: <math>x = 3</math> and <math>y = 12 - 2x</math>
    • <math>y = 12 - 2(3)</math>
    • <math>y = 12 - 6</math>
    • <math>y = 6</math>
    • This is the same answer as before. We did not make any mistakes.
  6. Write down the x and y coordinates of the intersection. You've now solved for the x-value and y-value of the point where the two lines intersect. Write down the point as a coordinate pair, with the x-value as the first number.
    • Example: <math>x = 3</math> and <math>y = 6</math>
    • The two lines intersect at (3,6).
  7. Deal with unusual results. Some equations make it impossible to solve for x. This doesn't always mean you made a mistake. There are two ways a pair of lines can lead to a special solution:
    • If the two lines are parallel, they do not intersect. The x terms will cancel out, and your equation will simplify to a false statement (such as <math>0 = 1</math>). Write "the lines do not intersect" or no real solution" as your answer.
    • If the two equations describe the same line, they "intersect" everywhere. The x terms will cancel out and your equation will simplify to a true statement (such as <math>3 = 3</math>). Write "the two lines are the same" as your answer.

Problems with Quadratic Equations

  1. Recognize quadratic equations. In a quadratic equation, one or more variables is squared (<math>x^2</math> or <math>y^2</math>), and there are no higher powers. The lines these equations represent are curved, so they can intersect a straight line at 0, 1, or 2 points. This section will teach you how to find the 0, 1, or 2 solutions to your problem.
    • Expand equations with parentheses to check whether they're quadratics. For example, <math>y = (x + 3)(x)</math> is quadratic, since it expands into <math>y = x^2 + 3x.</math>
    • Equations for a circle or ellipse have both an <math>x^2</math> and a <math>y^2</math> term.[1][2] If you're having trouble with these special cases, see the Tips section below.
  2. Write the equations in terms of y. If necessary, rewrite each equation so y is alone on one side.
    • Example: Find the intersection of <math>x^2 + 2x - y = -1</math> and <math>y = x + 7</math>.
    • Rewrite the quadratic equation in terms of y:
    • <math>y = x^2 + 2x + 1</math> and <math>y = x + 7</math>.
    • This example has one quadratic equation and one linear equation. Problems with two quadratic equations are solved in a similar way.
  3. Combine the two equations to cancel out the y. Once you've set both equations equal to y, you know the two sides without a y are equal to each other.
    • Example: <math>y = x^2 + 2x + 1</math> and <math>y = x + 7</math>
    • <math>x^2 + 2x + 1 = x + 7</math>
  4. Arrange the new equation so one side is equal to zero. Use standard algebraic techniques to get all the terms on one side. This will set the problem up so we can solve it in the next step.
    • Example: <math>x^2 + 2x + 1 = x + 7</math>
    • Subtract x from each side:
    • <math>x^2 + x + 1 = 7</math>
    • Subtract 7 from each side:
    • <math>x^2 + x - 6 = 0</math>
  5. Solve-Quadratic-Equations. Once you've set one side equal to zero, there are three ways to solve a quadratic equation. Different people find different methods easier. You can read about Solve-Quadratic-Equations-Using-the-Quadratic-Formula or Complete-the-Square, or follow along with this example of the Factor-Second-Degree-Polynomials-(Quadratic-Equations) method:
    • Example: <math>x^2 + x - 6 = 0</math>
    • The goal of factoring is to find the two factors that multiply together to make this equation. Starting with the first term, we know <math>x^2</math> can divide into x, and x. Write down (x    )(x    ) = 0 to show this.
    • The last term is -6. List each pair of factors that multiply to make negative six: <math>-6 * 1</math>, <math>-3 * 2</math>, <math>-2 * 3</math>, and <math>-1 * 6</math>.
    • The middle term is x (which you could write as 1x). Add each pair of factors together until you get 1 as an answer. The correct pair of factors is <math>-2 * 3</math>, since <math>-2 + 3 = 1</math>.
    • Fill out the gaps in your answer with this pair of factors: <math>(x - 2)(x + 3) = 0</math>.
  6. Keep an eye out for two solutions for x. If you work too quickly, you might find one solution to the problem and not realize there's a second one. Here's how to find the two x-values for lines that intersect at two points:
    • Example (factoring): We ended up with the equation <math>(x-2)(x+3) = 0</math>. If either of the factors in parentheses equal 0, the equation is true. One solution is <math>x - 2 = 0</math> → <math>x = 2</math>. The other solution is <math>x + 3 = 0</math> → <math>x = -3</math>.
    • Example (quadratic equation or complete the square): If you used one of these methods to solve your equation, a square root will show up. For example, our equation becomes <math>x = (-1+\sqrt{25})/2</math>. Remember that a square root can simplify to two different solutions: <math>\sqrt{25} = 5 * 5</math>, and <math>\sqrt{25} = (-5) * (-5)</math>. Write two equations, one for each possibility, and solve for x in each one.
  7. Solve problems with one or zero solutions. Two lines that barely touch only have one intersection, and two lines that never touch have zero. Here's how to recognize these:
    • One solution: The problems factor into two identical factors ((x-1)(x-1) = 0). When plugged into the quadratic formula, the square root term is <math>\sqrt{0}</math>. You only need to solve one equation.
    • No real solution: There are no factors that satisfy the requirements (summing to the middle term). When plugged into the quadratic formula, you get a negative number under the square root sign (such as <math>\sqrt{-2}</math>). Write "no solution" as your answer.
  8. Plug your x-values back into either original equation. Once you have the x-value of your intersection, plug it back into one of the equations you started with. Solve for y to find the y-value. If you have a second x-value, repeat for this as well.
    • Example: We found two solutions, <math>x = 2</math> and <math>x = -3</math>. One of our lines has the equation <math>y = x + 7</math>. Plug in <math>y = 2 + 7</math> and <math>y = -3 + 7</math>, then solve each equation to find that <math>y = 9</math> and <math>y = 4</math>.
  9. Write the point coordinates. Now write your answer in coordinate form, with the x-value and y-value of the intersection points. If you have two answers, make sure you match the correct x-value to each y-value.
    • Example: When we plugged in <math>x = 2</math>, we got <math>y = 9</math>, so one intersection is at (2, 9). The same process for our second solution tells us another intersection lies at (-3, 4).

Tips

  • Equations for a circle or ellipse have an <math>x^2</math> term and a <math>y^2</math> term. To find the intersection of a circle and a straight line, solve for x in the linear equation. Substitute the solution for x in the circle equation, and you'll have an easier quadratic equation. These problems can have 0, 1, or 2 solutions, as described in the method above.
  • A circle and a parabola (or other quadratic) can have 0, 1, 2, 3, or 4 solutions. Find the variable that is squared in both equations — let's say it's x2. Solve for <math>x^2</math> and substitute the answer for the <math>x^2</math> in the other equation. Solve for y to get 0, 1, or 2 solutions. Plug each solution back into the original quadratic equation and solve for x. Each of these can have 0, 1, or 2 solutions.

Related Articles

Sources and Citations

Further info: