📖 Short lecture
A linear function has the form $y=mx+b$. Its graph is a straight line; $b$ is the $y$-intercept (where the line crosses the $y$-axis) and $m$ is the slope, the change in $y$ for each increase of $1$ in $x$.
The slope between two points is $m=\frac{y_2-y_1}{x_2-x_1}$ ("rise over run"). A positive slope rises, a negative slope falls, $m=0$ gives a horizontal line. Parallel lines have equal slopes.
⚠️ Common mistakes
- Slope is $\frac{\text{rise}}{\text{run}}=\frac{\Delta y}{\Delta x}$, not $\frac{\Delta x}{\Delta y}$.
- Subtract in the same order on top and bottom: $\frac{y_2-y_1}{x_2-x_1}$, never $\frac{y_2-y_1}{x_1-x_2}$.
- A horizontal line $y=3$ has slope $0$; a vertical line $x=3$ has an undefined slope.
🔑 Key formulas
✏️ Worked example
Find the equation of the line through $(1,3)$ and $(4,9)$.
- $\displaystyle m=\frac{9-3}{4-1}=2$
- $\displaystyle y-3=2(x-1)$
- $\displaystyle y=2x+1$
✔ $y=2x+1$.
🧮 More worked examples
Each step says what we do and why.
Example 2Find the equation of the line through $(-2,7)$ and $(3,-3)$.
- Slope from the two points.$$m=\frac{-3-7}{3-(-2)}=\frac{-10}{5}=-2$$
- Point–slope form with $(-2,7)$.$$y-7=-2(x+2)$$
- Simplify.$$y=-2x+3$$
Example 3Find the slope and $y$-intercept of $3x-2y=8$.
- Isolate the $y$ term.$$-2y=-3x+8$$
- Divide every term by $-2$.$$y=\tfrac32x-4$$
Example 4Find the line parallel to $y=4x-1$ through $(2,3)$.
- Parallel lines have equal slopes.$$m=4$$
- Substitute the point to find $b$.$$3=4(2)+b\;\Rightarrow\;b=-5$$
🖐️ 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.
🎬 Slope and intercept in motion
Move the sliders for $m$ and $b$ in $y=mx+b$. The orange step is the run $1$, the pink step is the rise $m$; the green point is the $y$-intercept $(0,b)$. Press Animate to watch the slope change.
🌍 Modelling problems
Real-life situations: translate the words into mathematics, solve, then interpret the answer.
🚕 Taxi fare
A taxi charges $5$ AED to start plus $2$ AED per km. Write the cost $C$ for $d$ km, find the cost of $12$ km, and how far you can go with $45$ AED.
Show the solution
- Start value is the intercept, rate per km is the slope.$$C=2d+5$$
- For $12$ km:$$C=2(12)+5=29$$
- With $45$ AED:$$2d+5=45\;\Rightarrow\;d=20$$
✔ $C=2d+5$; $29$ AED; $20$ km.
🕯️ A burning candle
A $24$ cm candle burns $1.5$ cm per hour. Write its height $h$ after $t$ hours. When does it burn out?
Show the solution
- The height decreases, so the slope is negative.$$h=24-1.5t$$
- Burns out when $h=0$.$$1.5t=24\;\Rightarrow\;t=16$$
✔ $h=24-1.5t$; after $16$ hours.
🚰 Filling a tank
A tank holds $50$ L after $2$ min and $130$ L after $6$ min of steady filling. Find the rate, the starting volume and when it reaches $250$ L.
Show the solution
- Rate = slope between the two data points.$$m=\frac{130-50}{6-2}=20\text{ L/min}$$
- Starting volume from $50=20(2)+b$.$$b=10\;\Rightarrow\;V=20t+10$$
- Set $V=250$.$$20t+10=250\;\Rightarrow\;t=12$$
✔ $20$ L/min, started with $10$ L, full ($250$ L) after $12$ min.
✅ Multiple-choice quiz
📝 Short essay
A taxi charges $12$ AED plus $2$ AED per km. Write the cost as a linear function and explain the meaning of slope and intercept.
$C=2d+12$. The slope $2$ is the price per kilometre, the rate of change of the cost; the intercept $12$ is the fixed starting fee paid even for $0$ km.