Creating Linear Equations- A Complete Guide

What Linear Equations Actually Are

A linear equation is any equation that graphs as a straight line. That's it. No curves, no loops, just a straight line going in some direction across the coordinate plane.

These equations form the foundation of algebra and show up everywhere—from calculating costs to predicting trends. If you're learning algebra, you'll work with these constantly. If you're past that, you probably forgot how useful they are until you needed them again.

The Three Forms You Need to Know

Linear equations can be written in three main ways. Each form is useful in different situations. Here's what they look like:

Standard Form

Ax + By = C

A, B, and C are integers. A should be positive. This form makes it easy to find x and y intercepts. Set x to 0 to find the y-intercept, set y to 0 to find the x-intercept.

Slope-Intercept Form

y = mx + b

This is the most commonly used form. m is the slope. b is where the line crosses the y-axis. If you need to graph something quickly, this is your go-to.

Point-Slope Form

y - y₁ = m(x - x₁)

This form uses a known point (x₁, y₁) and the slope. Useful when you have a point on the line and the slope, but haven't found the y-intercept yet.

Key Components Explained

Slope (m)

Slope tells you how steep the line is. Calculate it using two points:

slope = (y₂ - y₁) ÷ (x₂ - x₁)

Slope can be:

Y-Intercept (b)

The y-intercept is where the line crosses the y-axis. This happens when x = 0. In y = mx + b, the b value is always the y-intercept.

X-Intercept

The x-intercept is where the line crosses the x-axis. This happens when y = 0. Plug in 0 for y and solve for x.

Comparing the Three Forms

Form Equation Best Used For Key Info Given
Standard Ax + By = C Finding intercepts, integer coefficients Intercepts directly
Slope-Intercept y = mx + b Graphing quickly, identifying slope and y-intercept Slope and y-intercept
Point-Slope y - y₁ = m(x - x₁) Writing equation from a point and slope A point on the line and slope

How to Create Linear Equations

From Two Points

Given two points, here's how you find the equation:

  1. Find the slope using the two points
  2. Plug the slope and one point into point-slope form
  3. Simplify to get slope-intercept form

Example: Points (2, 3) and (4, 7)

Slope = (7 - 3) ÷ (4 - 2) = 4 ÷ 2 = 2

Using point (2, 3): y - 3 = 2(x - 2)

Simplified: y = 2x - 1

From a Point and Slope

This one's straightforward. Take your point (x₁, y₁) and slope m, then plug into point-slope form:

y - y₁ = m(x - x₁)

Example: Point (1, 4), slope = -3

y - 4 = -3(x - 1)

Simplified: y = -3x + 7

From the Y-Intercept and Slope

Just use slope-intercept form directly. You already have m and b.

Example: Y-intercept = 5, slope = 2

y = 2x + 5

Done. That's literally all there is to it.

From a Graph

  1. Pick two points on the line (use intersections with grid lines for accuracy)
  2. Calculate slope from those points
  3. Find the y-intercept (where the line crosses the y-axis)
  4. Write y = mx + b

From a Word Problem

Word problems give you real-world information. Your job is to extract the mathematical relationship.

Look for:

Example: "A taxi costs $3 to start, plus $2 per mile."

Total cost = 3 + 2(miles)

Equation: y = 2x + 3

x = miles traveled, y = total cost

Converting Between Forms

Slope-Intercept to Standard Form

Start with y = mx + b

Move mx to the left side: mx - y = b

If needed, multiply everything by -1 to make A positive

Standard Form to Slope-Intercept

Start with Ax + By = C

Solve for y: By = -Ax + C

Divide by B: y = (-A/B)x + (C/B)

The slope is -A/B, the y-intercept is C/B

Common Mistakes to Avoid

Practice Problems to Try

Create equations for these scenarios:

  1. Points (1, 2) and (5, 10)
  2. Slope = 4, passes through (3, 1)
  3. Y-intercept = -2, slope = -1/2
  4. A gym charges $50 monthly membership plus $10 per personal training session. Write the equation for total monthly cost based on sessions attended.

Answers:

  1. y = 2x
  2. y = 4x - 11
  3. y = -0.5x - 2
  4. y = 10x + 50

When You'll Actually Use This

Linear equations show up in budgeting, pricing models, physics problems, data analysis, and any situation where two things change at a constant rate relative to each other. Once you understand how to set them up, you can model real situations without overthinking it.

Master the three forms. Practice converting between them. Get fast at finding slope. That's all you need.