Algebra · real student question

Solve the system x - y = 5 and 2x + y = 4.

Question

Solve the system

xy=5x-y=5
2x+y=42x+y=4

Step-by-step solution

  1. Look at the coefficients before choosing a method. The yy terms are y-y and +y+y — already exact opposites. That makes elimination by addition the fastest route, with no multiplication needed to line them up.

  2. Add the two equations. Adding left sides and right sides:

    (xy)+(2x+y)=5+4(x-y)+(2x+y)=5+4

    3x=93x=9

    The yy terms cancel because y+y=0-y+y=0.

  3. Solve for xx.

    x=93=3x=\frac{9}{3}=3

  4. Back-substitute into the simpler equation. Using xy=5x-y=5 with x=3x=3:

    3y=5y=2y=23-y=5\quad\Longrightarrow\quad -y=2\quad\Longrightarrow\quad y=-2

  5. Check the pair in BOTH original equations. Substituting is only a real check if the equation not used for back-substitution is tested too:

    3(2)=53-(-2)=5\qquad\checkmark
    2(3)+(2)=62=42(3)+(-2)=6-2=4\qquad\checkmark

    Geometrically the two lines have different slopes (11 and 2-2), so they meet at exactly one point, (3,2)(3,-2).

Answer

x=3,y=2x=3,\quad y=-2

Need to solve a different problem like this? Open the solver →