Skip to content
Educora
IntermediateGrade 715 min19 / 82

Linear functions and their graphs

The idea of a function, the coordinate plane, the function y = kx + b and how k and b change its graph.

Check yourself
In this lesson you will learn
  • Explain what a function is
  • Plot points on the coordinate plane
  • Draw the graph of y = kx + b
  • Explain what the coefficients k and b mean

A mobile operator charges a 5-manat monthly fee plus 2 manat for every gigabyte of data. If you use x GB a month, you pay y = 2x + 5 manat. Each value of x gives exactly one value of y — this is a function. And its graph is a straight line.

Functions and the coordinate plane

Definition
Function

A rule that assigns exactly one value of y to each value of the variable x (the input, or argument). y is called the value of the function and is written y = f(x).

To picture a function we use the coordinate plane: the horizontal x-axis and the vertical y-axis. Each point has two coordinates: to reach A(2, 3), go 2 units right from the origin and 3 units up. The graph of a function is the set of all points (x, f(x)).

x (GB)01234
y = 2x + 5 (manat)5791113
Each time x increases by 1, y always increases by 2. These points lie on one straight line.

The linear function y = kx + b

y = kx + b
where:
  • kthe slope: how much y changes when x increases by 1
  • bwhere the graph crosses the y-axis: (0, b)

The graph of a linear function is a straight line, so two points are enough to draw it. Some textbooks write the formula as y = mx + b, and in Türkiye as y = mx + n.

  • If k > 0, the function is increasing: the graph rises from left to right.
  • If k < 0, the function is decreasing: the graph falls.
  • If k = 0, y = b is a horizontal line parallel to the x-axis.
  • If b = 0, y = kx is direct proportion, and the graph passes through the origin.
  • Lines with the same k are parallel.
Interactive
Loading simulation…
Move the k and b sliders: k changes how steep the line is, and b shifts it up or down.
Drawing the graph

Draw the graph of y = −2x + 4. Does the point A(3, −2) lie on it?

Show solution
Find two points.
x = 0: y = 4 ⇒ (0, 4) — where it crosses the y-axis.
y = 0: −2x + 4 = 0 ⇒ x = 2 ⇒ (2, 0) — where it crosses the x-axis.
Draw the line through these points; since k = −2 < 0, the function is decreasing.
A(3, −2): −2 · 3 + 4 = −2 — true, so A lies on the graph.
A line through two points

The graph of a linear function passes through (1, 3) and (3, 7). Write the formula of the function.

Show solution
When x goes from 1 to 3 (up 2), y goes from 3 to 7 (up 4).
k = 4 ÷ 2 = 2.
From the point (1, 3): 3 = 2 · 1 + b ⇒ b = 1.
Answer: y = 2x + 1. Check: 2 · 3 + 1 = 7.
Which plan is cheaper?

Plan A: y = 2x + 5, plan B: y = 3x + 1 (x in GB, y in manat). For what amount of data do the plans cost the same, and which is better for someone who uses little data?

Show solution
Set the prices equal: 2x + 5 = 3x + 1 ⇒ x = 4.
At x = 4 GB both plans cost 13 manat — this is where the graphs cross: (4, 13).
For example, at x = 1: A costs 7 manat, B costs 4 manat. So plan B is cheaper for less than 4 GB, and A for more.

Key points

  • A function assigns exactly one y to each x.
  • The graph of y = kx + b is a straight line; two points are enough to draw it.
  • k > 0 — increasing, k < 0 — decreasing; b is where the line meets the y-axis.
  • Lines with equal slopes are parallel.

Check yourself

10 questions. Every correct answer earns XP.

1 / 10
What is the value of y = 3x − 2 when x = 4?