Facebook Pixel
Mathos AI logo

Writing Linear Equations

Writing Linear Equations

Writing the equation of a line is a core skill in algebra. Depending on the information you are given, you can build a linear equation using two primary formulas:

  1. Slope-Intercept Form: y=mx+by = mx + b
    • mm is the slope (rate of change).
    • bb is the yy-intercept (starting value).
  2. Point-Slope Form: yy1=m(xx1)y - y_1 = m(x - x_1)
    • mm is the slope.
    • (x1,y1)(x_1, y_1) is a known point on the line.

Given a Point and a Slope

When you know the slope of a line and exactly one point it passes through, start with the point-slope form and simplify it into slope-intercept form.

Example: Write the equation of the line with a slope of 2-2 passing through (3,1)(3, 1).

  1. Identify your values: m=2m = -2, x1=3x_1 = 3, y1=1y_1 = 1.
  2. Plug them into the point-slope formula: y1=2(x3)y - 1 = -2(x - 3)
  3. Distribute the slope: y1=2x+6y - 1 = -2x + 6
  4. Add 11 to both sides to isolate yy: y=2x+7y = -2x + 7

Given Two Points

If you only have two points, you first need to calculate the slope using the slope formula: m=y2y1x2x1m = \frac{y_2 - y_1}{x_2 - x_1}. Once you have the slope, use either point and the point-slope form to find the equation.

Example: Write the equation of the line passing through (1,3)(1, 3) and (4,9)(4, 9).

  1. Find the slope (mm): m=9341=63=2m = \frac{9 - 3}{4 - 1} = \frac{6}{3} = 2
  2. Choose one point, say (1,3)(1, 3), and use the point-slope form: y3=2(x1)y - 3 = 2(x - 1)
  3. Distribute and solve for yy: y3=2x2y - 3 = 2x - 2 y=2x+1y = 2x + 1

From a Word Description

In real-world scenarios, lines are often described by a starting amount and a rate of change.

  • The rate of change is your slope (mm). If something is decreasing, the slope is negative.
  • The starting amount is your yy-intercept (bb).

Example: A pool starts with 200 liters of water and drains at a rate of 15 liters per hour. Write the equation for the amount of water (yy) after xx hours.

  1. The starting amount is 200 liters, so b=200b = 200.
  2. The pool is draining 15 liters per hour, so the rate of change is negative: m=15m = -15.
  3. Plug these directly into the slope-intercept form (y=mx+by = mx + b): y=15x+200y = -15x + 200