Linear Functions Examples in Math

Start with the recap, study the fully worked examples, then use the practice problems to check your understanding of Linear Functions.

This page combines explanation, solved examples, and follow-up practice so you can move from recognition to confident problem-solving in Math.

Concept Recap

A function whose graph is a straight line, characterized by a constant rate of change between any two points.

Every step right changes yy by the same amountβ€”like climbing stairs at a constant pace.

Read the full concept explanation β†’

How to Use These Examples

  • Read the first worked example with the solution open so the structure is clear.
  • Try the practice problems before revealing each solution.
  • Use the related concepts and background knowledge badges if you feel stuck.

What to Focus On

Core idea: A linear function adds the same amount to output for each equal input step.

Common stuck point: The procedure for linear functions is the easy part; the trap is calling every equation with xx linear. Asking "Does the output change by the same amount each time the input step is the same?" first is what keeps a correct-looking calculation from being attached to the wrong concept.

Sense of Study hint: Ask: Does the output change by the same amount each time the input step is the same?

Worked Examples

Example 1

easy
Write the equation of a line with slope 22 and yy-intercept βˆ’3-3.

Answer

y=2xβˆ’3y = 2x - 3

First step

1
The slope-intercept form is y=mx+by = mx + b.

Full solution

  1. 2
    Substitute m=2m = 2 and b=βˆ’3b = -3.
  2. 3
    The equation is y=2xβˆ’3y = 2x - 3.
In slope-intercept form y=mx+by = mx + b, the parameter mm is the slope (rate of change) and bb is the yy-intercept (the value of yy when x=0x = 0).

Example 2

medium
Find the equation of the line through (1,3)(1, 3) and (4,12)(4, 12).

Example 3

medium
Write the equation of a line with slope 33 that passes through (1,7)(1, 7).

Example 4

medium
Find the slope of the line through (βˆ’2,5)(-2, 5) and (3,βˆ’5)(3, -5).

Example 5

medium
Convert 4xβˆ’5y=204x - 5y = 20 to slope-intercept form.

Example 6

medium
A taxi charges $3 to start and $2 per mile. Write a linear function C(m)C(m) for the total cost after mm miles.

Example 7

medium
The points (2,7)(2, 7) and (5,16)(5, 16) lie on a line. Write its slope-intercept equation.

Example 8

medium
A linear function satisfies f(0)=βˆ’3f(0) = -3 and f(4)=5f(4) = 5. Find f(x)f(x).

Example 9

hard
Find the equation of the line through (βˆ’3,4)(-3, 4) parallel to y=βˆ’2x+7y = -2x + 7.

Example 10

hard
A linear function gg satisfies g(2)=11g(2) = 11 and g(7)=βˆ’4g(7) = -4. Find g(0)g(0).

Example 11

hard
Find the intersection of y=2xβˆ’1y = 2x - 1 and y=βˆ’x+8y = -x + 8.

Example 12

challenge
A linear function ff satisfies f(f(x))=4x+3f(f(x)) = 4x + 3 for all xx, with positive slope. Find f(x)f(x).

Practice Problems

Try these problems on your own first, then open the solution to compare your method.

Example 1

easy
What are the slope and yy-intercept of y=βˆ’5x+7y = -5x + 7?

Example 2

hard
Convert 3x+2y=123x + 2y = 12 to slope-intercept form.

Example 3

easy
What is the slope of y=3x+2y = 3x + 2?

Example 4

easy
What is the yy-intercept of y=βˆ’2x+5y = -2x + 5?

Example 5

easy
Is y=x2+1y = x^2 + 1 a linear function?

Example 6

easy
For f(x)=2xβˆ’1f(x) = 2x - 1, find f(3)f(3).

Example 7

easy
As xx increases by 11 in y=4xy = 4x, how does yy change?

Example 8

easy
Does y=7y = 7 describe a line?

Example 9

easy
Write a line with slope 22 through the yy-intercept βˆ’3-3.

Example 10

easy
What is the slope of a vertical line?

Example 11

medium
Find the slope between (1,2)(1, 2) and (4,11)(4, 11).

Example 12

medium
Write the equation of the line through (0,1)(0, 1) with slope βˆ’2-2.

Example 13

medium
Find the equation through (2,5)(2, 5) with slope 33.

Example 14

medium
Where does y=2xβˆ’6y = 2x - 6 cross the xx-axis?

Example 15

medium
Are y=2x+1y = 2x + 1 and y=2xβˆ’4y = 2x - 4 parallel?

Example 16

medium
A line has slope 12\frac{1}{2}. What is the slope of a line perpendicular to it?

Example 17

medium
A plumber charges $50 plus $30/hour. Write the cost function C(h)C(h).

Example 18

challenge
Lines y=3x+1y = 3x + 1 and y=βˆ’x+9y = -x + 9 intersect where?

Example 19

challenge
A line passes through (1,4)(1, 4) and (3,4)(3, 4). Describe it fully.

Example 20

challenge
Find kk so that (2,k)(2, k) lies on y=3xβˆ’4y = 3x - 4.

Example 21

medium
Does the point (3,5)(3, 5) lie on y=2xβˆ’1y = 2x - 1?

Example 22

medium
Convert 2x+y=62x + y = 6 to slope-intercept form.

Example 23

easy
What is the slope of the line y=βˆ’4x+9y = -4x + 9?

Example 24

easy
For f(x)=βˆ’3x+5f(x) = -3x + 5, find f(4)f(4).

Example 25

easy
A line has slope 12\tfrac{1}{2} and yy-intercept βˆ’4-4. Write its equation.

Example 26

easy
Does the point (2,1)(2, 1) lie on the line y=3xβˆ’5y = 3x - 5?

Example 27

medium
Write the equation of the line through (0,βˆ’2)(0, -2) with slope 34\tfrac{3}{4}.

Example 28

medium
A line passes through (2,3)(2, 3) with slope βˆ’1-1. Write its equation in slope-intercept form.

Example 29

medium
For f(x)=βˆ’2x+7f(x) = -2x + 7, find the value of xx that makes f(x)=1f(x) = 1.

Example 30

medium
A line has slope βˆ’2-2 and passes through (3,4)(3, 4). Find its yy-intercept.

Example 31

medium
For the linear function y=23x+1y = \tfrac{2}{3}x + 1, how much does yy change when xx increases by 66?

Example 32

hard
Find the equation of the line through (2,βˆ’1)(2, -1) perpendicular to y=13x+4y = \tfrac{1}{3}x + 4.

Example 33

hard
For what value of kk does the line y=(kβˆ’1)x+6y = (k - 1)x + 6 pass through the point (2,4)(2, 4)?

Background Knowledge

These ideas may be useful before you work through the harder examples.

slopeequationscoordinate plane