School › Grade 11

Relations & Linear Functions

Grade 11 · Unit 2

📖 Short lecture

A relation is any set of ordered pairs; it is a function if each element of the domain is paired with exactly one element of the range. Linear functions $f(x)=mx+b$ can be written in slope–intercept, point–slope or standard form, and linear models describe data with a constant rate of change.

Special functions include piecewise functions, defined by different rules on different parts of the domain; the greatest integer (step) function $f(x)=\lfloor x\rfloor$; and the absolute value function $f(x)=a|x-h|+k$, whose graph is a V with vertex $(h,k)$ that opens up if $a>0$ and down if $a<0$. Parent graphs can be translated, reflected and stretched.

⚠️ Common mistakes

  • In a piecewise function use the rule whose condition contains $x$, and watch whether the endpoint uses $\lt$ or $\le$.
  • $\lfloor-2.3\rfloor=-3$, not $-2$: the greatest integer not greater than the number.
  • In $a|x-h|+k$ the sign flips: $|x+4|$ has its vertex at $x=-4$.

🔑 Key formulas

$$f(x)=a|x-h|+k\;\Rightarrow\;\text{vertex }(h,k)$$
Absolute value function
$$f(x)=\begin{cases}x+1,&x<0\\2x,&x\ge0\end{cases}$$
Piecewise function
$$\lfloor2.7\rfloor=2,\quad\lfloor-1.2\rfloor=-2$$
Greatest integer function
$$\lceil x\rceil=\text{smallest integer}\ge x$$
Ceiling function
$$y=a|x-h|+k:\ \text{slopes }\pm a$$
Slopes of the V

✏️ Worked example

Describe the graph of $g(x)=-2|x+3|+4$ and find $g(-1)$.

  1. $\displaystyle \text{vertex }(-3,4)$
  2. $\displaystyle a=-2<0:\;\text{opens down, vertical stretch by }2$
  3. $\displaystyle g(-1)=-2|2|+4=0$

✔ A V opening down with vertex $(-3,4)$; $g(-1)=0$.

🧮 More worked examples

Each step says what we do and why.

Example 2$f(x)=\begin{cases}x^2,&x\lt1\\3x-1,&x\ge1\end{cases}$. Find $f(-2)$, $f(1)$, $f(3)$.

  1. $-2\lt1$: first rule.$$f(-2)=4$$
  2. $1\ge1$ and $3\ge1$: second rule.$$f(1)=2,\quad f(3)=8$$
✔ $4$, $2$, $8$.

Example 3Describe $y=-|x-2|+3$ and find its $x$-intercepts.

  1. Vertex and direction.$$(2,3),\ \text{opens down}$$
  2. Set $y=0$.$$|x-2|=3\Rightarrow x=-1\text{ or }x=5$$
✔ Vertex $(2,3)$; intercepts $-1$ and $5$.

Example 4Find the line through $(-2,5)$ and $(4,-1)$ in standard form.

  1. Slope.$$m=\frac{-6}{6}=-1$$
  2. Equation.$$y-5=-(x+2)\Rightarrow y=-x+3\Rightarrow x+y=3$$
✔ $x+y=3$.

🖐️ 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.

🎬 A step function: paying for parking

Parking costs a fixed price for every started hour, up to a daily maximum: $C(t)=\min(r\lceil t\rceil,\ M)$. Press play and watch the car stay longer. The cost jumps at each whole hour: a filled dot belongs to the step, an open dot does not.

🌍 Modelling problems

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

🅿️ Parking cost

Parking costs $5$ AED per started hour, with a daily maximum of $40$ AED. Find the cost for $3.2$ h and $10$ h.

Show the solution
  1. Step function with a cap.$$C(t)=\min\left(5\lceil t\rceil,\,40\right)$$
  2. Evaluate.$$C(3.2)=5\cdot4=20,\qquad C(10)=\min(50,40)=40$$

✔ $20$ AED and $40$ AED.

💼 Fee brackets

A fee is $0$ on the first $1000$ AED and $10\%$ of the amount above $1000$. Write $T(x)$ and find $T(3500)$.

Show the solution
  1. Piecewise rule.$$T(x)=\begin{cases}0,&x\le1000\\0.1(x-1000),&x\gt1000\end{cases}$$
  2. Evaluate.$$T(3500)=0.1(2500)=250$$

✔ $250$ AED.

🚕 Taxi model

A $12$ km ride costs $29$ AED and a $20$ km ride costs $45$ AED. Find the linear model.

Show the solution
  1. Slope.$$m=\frac{45-29}{20-12}=2$$
  2. Intercept.$$29=2(12)+b\Rightarrow b=5$$

✔ $C=2d+5$.

✅ Multiple-choice quiz

📝 Short essay

A car park charges 5 AED for each started hour. Explain why the cost is a step function and give the cost for 2.5 hours.