Math · Algebra

Systems of two linear equations

Explanation

Systems of two linear equations consist of two equations with two variables (usually xx and yy). Solving a system means finding the ordered pair (x,y)(x, y) that satisfies both equations simultaneously, representing the geometric intersection of their lines on a coordinate plane.

Algebraic Methods for Solving Systems

Systems can be solved algebraically using two main techniques depending on how the equations are structured.

  • Substitution Method: Solves one equation for a single variable, then substitutes that expression into the second equation.

    Example: Given y=2x−1y = 2x - 1 and 3x+y=93x + y = 9, substitute (2x−1)(2x - 1) into the second equation:

    3x+(2x−1)=9  ⟹  5x−1=9  ⟹  5x=10  ⟹  x=23x + (2x - 1) = 9 \implies 5x - 1 = 9 \implies 5x = 10 \implies x = 2

    Substitute x=2x = 2 back to find yy: y=2(2)−1=3y = 2(2) - 1 = 3. Solution: (2,3)(2, 3).

  • Elimination Method: Multiplies one or both equations by constants so that adding or subtracting them cancels out one variable.

    Example: Given 2x+3y=122x + 3y = 12 and 4x−3y=64x - 3y = 6, add the two equations to eliminate yy:

    (2x+3y)+(4x−3y)=12+6  ⟹  6x=18  ⟹  x=3(2x + 3y) + (4x - 3y) = 12 + 6 \implies 6x = 18 \implies x = 3

    Substitute x=3x = 3 back into 2(3)+3y=12  ⟹  6+3y=12  ⟹  y=22(3) + 3y = 12 \implies 6 + 3y = 12 \implies y = 2. Solution: (3,2)(3, 2).

Structural Analysis of Solutions (Intersections)

The number of solutions to a linear system in two variables depends on the graphical relationship between the two lines:

  • One Solution (Independent/Consistent): Occurs when the lines have different slopes (m1≠m2m_1 \neq m_2). The lines intersect at a single point (x,y)(x, y).

    Example: y=2x+1y = 2x + 1 and y=−x+4y = -x + 4 intersect at (1,3)(1, 3).

  • No Solution (Inconsistent): Occurs when the lines have equal slopes (m1=m2m_1 = m_2) but different yy-intercepts (b1≠b2b_1 \neq b_2). The lines are parallel and never intersect.

    Example: y=3x+2y = 3x + 2 and y=3x−5y = 3x - 5 yield the false statement 2=−52 = -5 when set equal.

  • Infinitely Many Solutions (Dependent/Consistent): Occurs when the lines have equal slopes (m1=m2m_1 = m_2) and equal yy-intercepts (b1=b2b_1 = b_2). The equations represent the exact same line, meaning every point on the line is a solution.

    Example: 2x+4y=82x + 4y = 8 and x+2y=4x + 2y = 4 simplify to identical equations (0=00 = 0).

Modeling Systems in Context

Systems are frequently used to model scenarios with two unknown quantities governed by two distinct constraints (such as cost and quantity).

  • Quantity Constraint: Sets up an equation based on the count or total number of items: x+y=total countx + y = \text{total count}.

    Example: A mix of xx adult tickets and yy child tickets totaling 150150 tickets   ⟹  x+y=150\implies x + y = 150.

  • Value/Cost Constraint: Sets up an equation based on individual values or rates: Ax+By=total valueAx + By = \text{total value}.

    Example: Adult tickets cost $10\$10 and child tickets cost $6\$6, generating $1,200\$1,200 in total sales   ⟹  10x+6y=1200\implies 10x + 6y = 1200.

Example 1

If 3x+2y=183x + 2y = 18 and 3x−2y=63x - 2y = 6, what is the value of x−yx - y?
A
11
B
77
C
1111
D
44
Choice A is the best answer. Adding the equations eliminates yy: 6x=246x = 24, so x=4x = 4; subtracting gives 4y=124y = 12, so y=3y = 3. Then x−y=4−3=1x - y = 4 - 3 = 1. Choice B is incorrect; it is the value of x+yx + y, not x−yx - y. Choice C is incorrect; it is the value of 2x+y2x + y. Choice D is incorrect; it is the value of xx alone, not x−yx - y.

Example 2

For what value of pp does the system 3x−py=93x - py = 9 and 6x−8y=186x - 8y = 18 have infinitely many solutions?
4
Correct
For infinitely many solutions, the two equations must represent the same line, so the ratios of corresponding coefficients and constants must be equal: 63=−8−p=189\frac{6}{3} = \frac{-8}{-p} = \frac{18}{9}. Since 63=2\frac{6}{3}=2 and 189=2\frac{18}{9}=2, the constant ratio is already satisfied; setting −8−p=2\frac{-8}{-p}=2 gives 8p=2\frac{8}{p}=2, so p=4p=4. A common error is setting the ratio equal to 12\frac{1}{2} instead of 22, or ignoring the constant-term ratio entirely.

Tips for solving

  1. Use elimination when both equations are in standard form (Ax+By=CAx + By = C).

    Example: For 3x+2y=113x + 2y = 11 and 5x−2y=135x - 2y = 13, add them directly to get 8x=24  ⟹  x=38x = 24 \implies x = 3.

  2. Use substitution when one equation already isolates a variable (e.g., y=…y = \dots).

    Example: For y=4x−2y = 4x - 2 and 2x+3y=82x + 3y = 8, plug (4x−2)(4x - 2) directly into the second equation for yy.

  3. Compare slope ratios (−AB-\frac{A}{B}) to quickly check for "No Solution" or "Infinitely Many.

    Example: For 2x+3y=52x + 3y = 5 and 4x+6y=k4x + 6y = k, the left sides match (2×2=42 \times 2 = 4 and 3×2=63 \times 2 = 6). If k=10k = 10, there are infinitely many solutions. If k≠10k \neq 10, there is no solution.

  4. Watch for questions asking for target expressions rather than xx or yy individually.

    Example: If x+y=7x + y = 7 and x−y=3x - y = 3, what is x2−y2x^2 - y^2? Shortcut: Recognize x2−y2=(x+y)(x−y)=7×3=21x^2 - y^2 = (x + y)(x - y) = 7 \times 3 = 21 without solving for xx and yy.

  5. Check boundary points and intersections in system word problems to ensure realistic domain constraints.

    Example: In ticket pricing problems, both x≥0x \ge 0 and y≥0y \ge 0 must hold true; negative ticket counts are extraneous solutions.

Practice questions

00:00
Question 1 · easy
If y=2x+1y = 2x + 1 and y=5x−8y = 5x - 8, what is the value of xx?
Question 2 · easy
If x+y=10x + y = 10 and x−y=4x - y = 4, what is the value of xx?
Question 3 · easy
If 3x+y=123x + y = 12 and y=x−4y = x - 4, what is the value of yy?
Question 4 · easy
A theater sells adult tickets for $8\$8 and child tickets for $5\$5. On a given night, 1212 tickets were sold for a total of $81\$81. How many adult tickets were sold?
Question 5 · easy
If 2x−y=72x - y = 7 and x+y=5x + y = 5, what is the value of xx?
Question 6 · easy
How many solutions does the system y=3x+2y = 3x + 2 and y=−x+6y = -x + 6 have?
Question 7 · easy
If y=4x−3y = 4x - 3 and y=−2x+9y = -2x + 9, what is the value of yy at the solution to this system?
Question 8 · easy
If x=3y+1x = 3y + 1 and 2x−y=122x - y = 12, what is the value of yy?
Question 9 · easy
xy-6-4-2246-6-4-2246(2, 3)
The graph shows the lines y=x+1y = x + 1 and y=−x+5y = -x + 5. What is the solution (x,y)(x, y) to this system?
Question 10 · easy
If 5x+2y=165x + 2y = 16 and x=2x = 2, what is the value of yy?