James's Math Hub
Algebra & Geometry

Lesson 1 / 5 · 10 min read

Linear Equations

Solve for x, find slopes, and graph straight lines.

What is a linear equation?

A linear equation is an equation whose graph is a straight line. The most useful form is slope-intercept form:

y=mx+by = mx + b

  • mm is the slope — how steep the line is (rise over run).
  • bb is the y-intercept — the y-value where the line crosses the y-axis.

Solving for x

To solve a linear equation, your job is to isolate xx on one side. Whatever you do to one side, do to the other.

Example. Solve 3x+7=223x + 7 = 22.

  1. Subtract 7 from both sides: 3x=153x = 15
  2. Divide both sides by 3: x=5x = 5

Example with x on both sides. Solve 5x4=2x+115x - 4 = 2x + 11.

  1. Subtract 2x2x from both sides: 3x4=113x - 4 = 11
  2. Add 4: 3x=153x = 15
  3. Divide by 3: x=5x = 5

Finding slope from two points

Given two points (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2), slope is:

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

Example. Slope through (2,3)(2, 3) and (6,11)(6, 11):

m=11362=84=2m = \frac{11 - 3}{6 - 2} = \frac{8}{4} = 2

Writing the equation of a line

If you know the slope mm and one point (x1,y1)(x_1, y_1), use point-slope form:

yy1=m(xx1)y - y_1 = m(x - x_1)

Then rearrange to y=mx+by = mx + b if you want slope-intercept form.

Key takeaways

  • Linear equation → straight line graph.
  • Slope mm = rise / run.
  • Slope-intercept: y=mx+by = mx + b.
  • To solve: do the same thing to both sides until xx is alone.