Equations of Linear Functions

Algebra 2Module 2: Linear Equations, Inequalities and SystemsAlgebra

Learn equations of linear functions step by step with worked examples you can follow. Then practise with 37 instant-feedback questions. Free Algebra 2 lesson from Mr Ahmed Hamouda.

By the end of this page you will be able to move an equation between standard, slope-intercept and point-slope form, write the equation of a line from a point and a slope or from two points, and explain what the slope and intercept mean in a real situation.

Core Concepts

1. Three forms, one line

Standard form, slope-intercept form and point-slope form are not three different lines. They are the same line wearing three different outfits. You convert between them constantly, so the real skill is knowing which outfit shows you what you need:

Slope-intercept — hands you the slope and the y-intercept for free. Best for graphing.
Point-slope — the fastest way to write an equation when you know a point and the slope.
Standard form — tidy integer coefficients, and both intercepts come out easily. Best for comparing two equations.
Pick the form that matches what you were given. Given a point and a slope? Point-slope, every time. Given two points? Find the slope, then point-slope. Asked to graph? Slope-intercept. Asked for integer coefficients? Standard.

2. Slope-intercept form

Slope-Intercept Form
y = mx + b
m is the slope — the rate of change, rise ÷ run.
b is the y-intercept — the value of y when x = 0.

The slope is computed from any two points on the line:

m = (y₂ − y₁) ÷ (x₂ − x₁)

To convert into this form: isolate y. Move the x-term across, then divide every term by whatever multiplies y.

Subtract in the same order, top and bottom. If you use y₂ − y₁ on top, you must use x₂ − x₁ on the bottom. Swapping the order on one line only flips the sign of your slope.

3. Point-slope form — and why it works

Point-Slope Form
y − y₁ = m(x − x₁), where m is the slope and (x₁, y₁) is any known point on the line.

This is not a new formula to memorise — it is the slope formula rearranged. Start from the slope between a known point (x₁, y₁) and a general point (x, y):

1(y − y₁) ÷ (x − x₁) = mSlope between the two points
2y − y₁ = m(x − x₁)Multiply both sides by (x − x₁)
★
Either point works. Given two points, using the first gives one equation and using the second gives a different-looking equation — but simplify both and they collapse to the identical line. Do not panic if your answer does not match the back of the book letter for letter; convert both to slope-intercept form and compare.

4. Standard form and its house rules

Standard Form
Ax + By = C, where A ≥ 0, A and B are not both zero, and A, B, C are integers whose greatest common factor is 1.

To convert into this form: gather the x- and y-terms on the left, multiply through by the LCD to clear every fraction, then multiply by −1 if needed so that A ends up non-negative. Finally divide out any common factor.

Standard form pays you back at the intercepts: set y = 0 to get the x-intercept C/A, and set x = 0 to get the y-intercept C/B. Two substitutions, two points, and you can graph the line.

All three rules matter. −2x + 5y = 70 is a correct equation but it is not standard form, because A is negative. Neither is 4x − 10y = 60, because 4, 10 and 60 share a factor of 2. Fix the sign, then divide out the common factor.

5. Reading a real-world model

When a linear equation models something real, m and b stop being letters and become sentences:

SymbolWhat it isHow to say it out loud
mRate of change“y changes by m for every 1 unit increase in x”
bStarting value“when x = 0, y starts at b”
sign of mDirectionpositive = growing, negative = shrinking, zero = constant

Always state the units. A slope of 22 is meaningless; “22 dollars per month” is an answer.

Watch out for the interpolation trap: a linear model assumes the rate never changes. That is usually reasonable close to the data and unreliable far away from it. If a question asks you to predict something 40 years out, saying “the model assumes a constant rate, which may not hold” is part of the answer.

6. Vocabulary

Slope — rate of change; rise ÷ run.
y-intercept — where the line crosses the y-axis; x = 0 there.
x-intercept — where the line crosses the x-axis; y = 0 there.
Rate of change — the slope, read with units attached.
Linear model — a straight-line equation used to describe real data.

Key Figures

Figure 1 — the slope is a staircase
−2 2 4 6 8 −2 2 4 6 run = 4 rise = 3 (1, 1) (5, 4) y = ¾x + ¼
From (1, 1) to (5, 4) the line climbs 3 and travels 4, so m = 3/4. Start anywhere on the line and take any staircase you like — the ratio rise ÷ run always comes out the same. That constant ratio is what makes the graph straight.
Figure 2 — the same line in all three forms
−2 4 6 −4 −2 2 4 b = −4 (3, 2) m = 2 (2, 0) (0, −4)
Tap each form to see what it hands you for free. Slope-intercept points straight at b = −4. Point-slope points at the point (3, 2) and the slope 2. Standard form gives both intercepts, (2, 0) and (0, −4), from two quick substitutions. One line, one graph, three different pieces of free information.
Figure 3 — what the slope's sign does to the picture
m > 0uphill m < 0downhill m = 0flat: y = 1.5 undefinedvertical: x = 1.5
Positive climbs left to right, negative falls, zero is flat. A vertical line is the odd one out: its run is 0, so rise ÷ run divides by zero and the slope is undefined. A vertical line can never be written as y = mx + b — it is always x = a.

Build your own line

Drag the two sliders and watch all three forms rewrite themselves in real time. Try to answer these without touching the graph, then check yourself:

  • What happens to the graph when b changes but m stays put?
  • Set m to a fraction like 1.5. What does the standard form have to do to keep its coefficients whole?
  • Set m = 0. Why does the standard form lose its x-term completely?
y = 2x − 4 y = 2(x − 2) 2x − y = 4

Move It Yourself

Worked Examples

Write y = (2/5)x + 14 in standard form and identify A, B and C.
1−(2/5)x + y = 14Subtract (2/5)x from each side
2−2x + 5y = 70Multiply every term by 5 to clear the fraction
32x − 5y = −70Multiply by −1 so that A ≥ 0
2x − 5y = −70, so A = 2, B = −5, C = −70
Check: the coefficients 2, 5 and 70 have no common factor and A is positive, so all three standard-form rules hold. Substituting x = 0 gives −5y = −70, so y = 14 — the y-intercept we started with. ✓
Write 12x − 4y = 24 in slope-intercept form and state m and b.
1−4y = −12x + 24Subtract 12x from each side
2y = 3x − 6Divide every term by −4
y = 3x − 6, so m = 3 and b = −6
Divide every term. Dividing only the y-term is the single most common error here. And dividing by a negative flips the sign of both other terms: −12x ÷ −4 = +3x, and 24 ÷ −4 = −6.
Write the equation of the line with slope m = 11 through the point (3, −5), in point-slope form and then in slope-intercept form.
1y − y₁ = m(x − x₁)Start from point-slope form
2y − (−5) = 11(x − 3)Substitute m = 11, x₁ = 3, y₁ = −5
3y + 5 = 11(x − 3)Simplify the double negative
4y = 11x − 38Distribute, then subtract 5 — slope-intercept form
y + 5 = 11(x − 3), or equivalently y = 11x − 38
Check: substitute x = 3 into y = 11x − 38 to get 33 − 38 = −5 ✓ — the line really does pass through (3, −5).
Find the equation of the line through (1, 1) and (7, 13).
1m = (13 − 1) ÷ (7 − 1) = 12/6 = 2Slope formula, same order top and bottom
2y − 1 = 2(x − 1)Point-slope using (1, 1)
3y = 2x − 1Distribute and add 1

Using (1, 1)

y − 1 = 2(x − 1)
y = 2x − 1

Using (7, 13)

y − 13 = 2(x − 7)
y = 2x − 14 + 13 = 2x − 1
y = 2x − 1 — and both starting points lead to it
Check both given points: 2(1) − 1 = 1 ✓ and 2(7) − 1 = 13 ✓. Testing both points catches an arithmetic slip in the slope immediately.
Athletic shoe sales are modelled by 3246x − 2y = −152,722, where x is the number of years after 2010 and y is sales in millions of dollars. Interpret the slope and the y-intercept.
1−2y = −3246x − 152,722Subtract 3246x from each side
2y = 1623x + 76,361Divide every term by −2
3m = 1623Sales rise by about $1623 million per year
4b = 76,361In 2010 (x = 0) sales were about $76,361 million
Sales grew by roughly $1.62 billion per year from a 2010 starting point of about $76.4 billion
Why convert first? Standard form hides the rate of change. You cannot read a slope off 3246x − 2y = −152,722 — and note the slope is not 3246. Getting to y = mx + b is what makes the sentence available.
Smartphone users numbered 1.31 billion in 2013 and 2.38 billion in 2017. Write a linear model and use it to estimate the number of users in 2025.
1let x = years after 2013, y = billions of usersDefine the variables first — this choice makes b easy
2points (0, 1.31) and (4, 2.38)2013 is x = 0, so 2017 is x = 4
3m = (2.38 − 1.31) ÷ 4 = 0.2675 ≈ 0.27About 0.27 billion new users per year
4y = 0.27x + 1.31b = 1.31 because x = 0 is 2013
5y = 0.27(12) + 1.31 = 4.552025 is 12 years after 2013
y = 0.27x + 1.31, predicting about 4.55 billion users in 2025
Choosing x = 0 wisely saves work. Letting x count years after the first data point makes that point the y-intercept, so b drops out for free with no substitution. And do add the caveat: the model assumes constant growth, which must eventually fail as the number of users approaches the world population.

Try It Yourself

Do each one on paper, then reveal. Problem 6 is the one that looks unfamiliar but uses nothing new.

Problem 1

Write y = −(3/4)x + 5 in standard form.
1(3/4)x + y = 5Add (3/4)x to each side — A is already positive this way
23x + 4y = 20Multiply every term by 4
3x + 4y = 20  (A = 3, B = 4, C = 20)
Check: x = 0 gives 4y = 20, so y = 5 ✓ — the original y-intercept.

Problem 2

Write 5x + 2y = −8 in slope-intercept form and state m and b.
12y = −5x − 8Subtract 5x from each side
2y = −(5/2)x − 4Divide every term by 2
y = −(5/2)x − 4, so m = −5/2 and b = −4
Check: a fractional slope is perfectly fine. From (0, −4), run 2 right and 5 down lands on (2, −9), and 5(2) + 2(−9) = 10 − 18 = −8 ✓

Problem 3

Write the equation of the line through (−2, 7) with slope −3, in point-slope form and in slope-intercept form.
1y − 7 = −3(x − (−2))Substitute into point-slope form
2y − 7 = −3(x + 2)Simplify the double negative — a negative x₁ becomes a plus
3y − 7 = −3x − 6Distribute
4y = −3x + 1Add 7 to each side
y − 7 = −3(x + 2), or y = −3x + 1
Check: −3(−2) + 1 = 6 + 1 = 7 ✓

Problem 4

Find the equation of the line through (4, −1) and (−2, 11) in slope-intercept form.
1m = (11 − (−1)) ÷ (−2 − 4) = 12 ÷ (−6) = −2Slope formula, keeping the order consistent
2y − (−1) = −2(x − 4)Point-slope using (4, −1)
3y + 1 = −2x + 8Distribute
4y = −2x + 7Subtract 1 from each side
y = −2x + 7
Check both points: −2(4) + 7 = −1 ✓ and −2(−2) + 7 = 11 ✓

Problem 5

A gym charges a $30 joining fee plus $22 per month. Write a linear model, say what m and b mean, and find the total cost after 9 months.
1y = 22x + 30x = months, y = total cost in dollars
2m = 22The cost rises $22 for each additional month
3b = 30At x = 0 months you have already paid the $30 joining fee
4y = 22(9) + 30 = 228Substitute x = 9
y = 22x + 30, and 9 months costs $228
The one-off charge is always b. Joining fees, delivery charges and call-out fees are paid once, so they sit at x = 0. Anything charged “per something” is the slope.

Problem 6

A line has x-intercept 6 and y-intercept −4. Write its equation in standard form.
1the intercepts are the points (6, 0) and (0, −4)An intercept is just a point with a zero in it
2m = (−4 − 0) ÷ (0 − 6) = 2/3Slope from the two points
3y = (2/3)x − 4b = −4 is handed to you by the y-intercept
43y = 2x − 12Multiply every term by 3
52x − 3y = 12Gather on the left with A ≥ 0
2x − 3y = 12
Check both intercepts: (6, 0) gives 12 − 0 = 12 ✓ and (0, −4) gives 0 + 12 = 12 ✓

Summary

You are given …Use …Because
A point and the slopePoint-slope formSubstitute and you are done in one line
Two pointsSlope formula, then point-slopeEither point gives the same line
The slope and the y-interceptSlope-intercept formBoth values drop straight into y = mx + b
Both interceptsTreat them as two points(a, 0) and (0, b) are ordinary points
An equation to graphConvert to slope-interceptPlot b, then step off the slope
An equation to compare or tidyConvert to standard formInteger coefficients, A ≥ 0, GCF 1
A real-world rate and a fixed chargey = mx + bRate is m, one-off amount is b
A standard-form equation to interpretConvert to y = mx + b firstThe slope is not the coefficient of x in Ax + By = C

Every formula from this lesson

m = (y₂ − y₁)/(x₂ − x₁) y = mx + b y − y₁ = m(x − x₁) Ax + By = C x-intercept = C/A y-intercept = C/B horizontal: y = b, m = 0 vertical: x = a, m undefined
Common mistakes to avoid
  • Subtracting the coordinates in opposite orders, which flips the sign of the slope.
  • Dividing only the y-term when isolating y — every term must be divided.
  • Leaving A negative, or leaving a common factor, and calling it standard form.
  • Reading the slope of Ax + By = C straight off as A. Convert first, or use m = −A/B.
  • Forgetting that a negative x₁ turns into a plus: x − (−2) = x + 2.
  • Saying a vertical line has slope 0. Zero slope is horizontal; vertical slope is undefined.
  • Giving a real-world slope with no units.
★
One idea to hold on to: a straight line is completely pinned down by one point plus a direction. Point-slope form is that sentence written in algebra, which is why it is the fastest route into every other form.

Practice Quiz

15 questions · click an answer to check it instantly

0/15

๐Ÿ“ Test your understanding