School › Grade 9

Linear Functions

Grade 9 · Unit 3

📖 Short lecture

A linear function has the form $f(x)=mx+b$, and its graph is a straight line. The $x$-intercept is where the graph crosses the $x$-axis ($y=0$) and the $y$-intercept is where it crosses the $y$-axis ($x=0$). The rate of change, or slope, $m=\frac{y_2-y_1}{x_2-x_1}=\frac{\text{rise}}{\text{run}}$ is constant for a linear function.

A positive slope rises from left to right, a negative slope falls, a slope of $0$ gives a horizontal line, and a vertical line has an undefined slope. Direct variation $y=kx$ is a line through the origin with constant of variation $k$. An arithmetic sequence such as $3,7,11,15,\dots$ is a linear function of the term number: $a_n=a_1+(n-1)d$.

Going further

To graph a linear equation quickly, find the two intercepts and join them, or start at the $y$-intercept and use the slope: for $y=-\frac23x+4$ start at $(0,4)$, go down $2$ and right $3$. A table of values with equal steps in $x$ shows equal differences in $y$, which is how we recognise a linear function in data.

Proportional relationships are linear functions through the origin. Arithmetic sequences are linear functions restricted to whole-number inputs: the common difference $d$ plays the role of the slope, and $a_1-d$ plays the role of the $y$-intercept.

📐 Figures

Slope as rise over run, with both intercepts.
The four kinds of slope.

🔑 Key formulas

$$m=\frac{y_2-y_1}{x_2-x_1}$$
Slope (rate of change)
$$y=kx$$
Direct variation
$$a_n=a_1+(n-1)d$$
Arithmetic sequence
$$y=kx\;\Longleftrightarrow\;\frac yx=k$$
Constant of variation
$$a_n=dn+(a_1-d)$$
A sequence is a linear function of $n$

✏️ Worked examples

Find the slope through $(-1,4)$ and $(3,-4)$, and the intercepts of $2x+5y=10$.

  1. $\displaystyle m=\frac{-4-4}{3-(-1)}=\frac{-8}{4}=-2$
  2. $\displaystyle y=0:\;2x=10\Rightarrow x=5$
  3. $\displaystyle x=0:\;5y=10\Rightarrow y=2$

✔ $m=-2$; intercepts $(5,0)$ and $(0,2)$.

Example 2

A taxi meter shows $5.5$ AED at $1$ km and $10$ AED at $4$ km. Find the rate of change and the starting fee.

  1. $\displaystyle m=\frac{10-5.5}{4-1}=1.5\text{ AED per km}$
  2. $\displaystyle b=5.5-1.5(1)=4$
  3. $\displaystyle C=1.5d+4$

✔ $1.5$ AED/km and a starting fee of $4$ AED.

🧮 More worked examples

Each step says what we do and why.

Example 3$y$ varies directly with $x$ and $y=21$ when $x=7$. Find $y$ when $x=12$.

  1. Find $k$.$$k=\frac{21}{7}=3$$
  2. Use $y=kx$.$$y=3(12)=36$$
✔ $y=36$.

Example 4For $7,11,15,\dots$ write $a_n$ and find which term equals $99$.

  1. Common difference and formula.$$d=4,\quad a_n=7+4(n-1)=4n+3$$
  2. Solve $a_n=99$.$$4n+3=99\;\Rightarrow\;n=24$$
✔ $a_n=4n+3$; the $24$th term.

Example 5A table has $x=2,5,8$ and $y=13,22,31$. Find the rate of change and the equation.

  1. Rate of change.$$m=\frac{22-13}{5-2}=3$$
  2. Intercept from $(2,13)$.$$13=3(2)+b\;\Rightarrow\;b=7$$
✔ $y=3x+7$.

🎬 Figure in motion

Two figures in motion: they play automatically; ⏸ pauses and ↺ restarts.

🖐️ Interactive demo & illustration

Move the sliders or press the buttons: the figure and the numbers update immediately. Try to predict the result before you look.

🧭 Is it a direct variation?

Choose $k$ and $b$ in $y=kx+b$. The table shows the ratio $\frac yx$ for $x=1,\dots,5$. Only when $b=0$ is the ratio constant and the line passes through the origin: that is a direct variation $y=kx$.

⚠️ Common mistakes

  • Swapping the order: $\frac{y_2-y_1}{x_1-x_2}$ gives the wrong sign.
  • Writing $\frac{\text{run}}{\text{rise}}$ instead of $\frac{\text{rise}}{\text{run}}$.
  • Saying a horizontal line has no slope: its slope is $0$; a vertical line has an undefined slope.
  • Direct variation must pass through the origin: $y=3x+2$ is linear but not a direct variation.
  • The $n$th term is $a_1+(n-1)d$, not $a_1+nd$: the first term has had no step added yet.
  • Put the dependent quantity on top: a speed is km per hour, not hours per km.

🌍 Modelling problems

Real-life situations: translate the words into mathematics, solve, then interpret the answer.

⛽ Fuel use

A car uses $9$ L of fuel for $120$ km (direct variation). How much for $400$ km?

Show the solution
  1. Constant of variation.$$k=\frac{9}{120}=0.075\text{ L/km}$$
  2. Multiply.$$0.075\times400=30$$

✔ $30$ L.

🎭 Theatre rows

Row $1$ has $20$ seats and each row has $3$ more than the previous one. How many seats in row $15$?

Show the solution
  1. Arithmetic sequence.$$a_{15}=20+14\cdot3=62$$

✔ $62$ seats.

🛗 Elevator

An elevator at $120$ m descends at $4$ m/s. Write its height $h(t)$ and find when it reaches the ground.

Show the solution
  1. Negative rate of change.$$h(t)=120-4t$$
  2. Set $h=0$.$$4t=120\;\Rightarrow\;t=30$$

✔ After $30$ s.

✅ Multiple-choice quiz

📝 Short essay

Explain why the slope of a line is the same no matter which two points of the line you use. Use similar triangles.