ironfern @ docs ~/math/grade-9/3-equations/equations-two-vars $

Equations in Two Variables

An equation in one variable, like 2x=62x = 6, has a single solution. When we introduce a second variable, the situation changes dramatically: a single equation in two variables generally has infinitely many solutions.

Solutions as Ordered Pairs

📐Definition — Solution of an Equation in Two Variables

A solution of an equation in two variables xx and yy is an ordered pair (x,y)(x, y) that makes the equation true when substituted. The solution set is the collection of all such ordered pairs.

Consider the equation 2xy=42x - y = 4. The pair (3,2)(3, 2) is a solution because 2(3)2=42(3) - 2 = 4. But so is (0,4)(0, -4), (2,0)(2, 0), (5,6)(5, 6), and infinitely many others. Each solution is a point in the coordinate plane, and together they form the graph of the equation.

Graphing a Linear Equation

Every equation of the form ax+by=cax + by = c (where aa and bb are not both zero) graphs as a straight line. To draw the line, we only need two points. The most convenient choices are usually the intercepts:

  • x-intercept: set y=0y = 0 and solve for xx
  • y-intercept: set x=0x = 0 and solve for yy
Example — Graphing by Intercepts

Graph 2xy=42x - y = 4.

Solution. Find the intercepts:

  • When x=0x = 0: 2(0)y=4y=42(0) - y = 4 \Rightarrow y = -4. Point: (0,4)(0, -4).
  • When y=0y = 0: 2x0=4x=22x - 0 = 4 \Rightarrow x = 2. Point: (2,0)(2, 0).

Plot (0,4)(0, -4) and (2,0)(2, 0), then draw the line through them. Every point on this line is a solution to the equation.

Slope-Intercept and Standard Forms

Two common ways to write a linear equation:

  • Standard form: ax+by=cax + by = c, where a,b,ca, b, c are constants.
  • Slope-intercept form: y=mx+by = mx + b, where mm is the slope and bb is the y-intercept.

The slope measures steepness and direction: positive slope means the line rises left to right, negative slope means it falls.

Theorem — Slope Formula

Given two points (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2) on a line with x1x2x_1 \neq x_2, the slope is:

m=y2y1x2x1m = \dfrac{y_2 - y_1}{x_2 - x_1}

Writing an Equation from Two Points

Example — Equation from Two Points

Write the equation of the line through (1,3)(1, 3) and (3,7)(3, 7).

Solution. First, find the slope:

m=7331=42=2m = \dfrac{7 - 3}{3 - 1} = \dfrac{4}{2} = 2

Using point-slope form with the point (1,3)(1, 3):

y3=2(x1)    y=2x+1y - 3 = 2(x - 1) \implies y = 2x + 1

Special Cases

Not every line fits neatly into slope-intercept form:

  • Horizontal line y=ky = k: the slope is 00. Every point has the same yy-coordinate.
  • Vertical line x=kx = k: the slope is undefined. Every point has the same xx-coordinate. This cannot be written as y=mx+by = mx + b.
Exercise — Practice

Graph 3x+2y=63x + 2y = 6 by finding its intercepts. Then rewrite the equation in slope-intercept form and identify the slope.