School › Grade 12

Functions from a Calculus Perspective

Grade 12 · Unit 1

📖 Short lecture

Functions are described by their domain and range, intercepts, symmetry (even: $f(-x)=f(x)$; odd: $f(-x)=-f(x)$), continuity, end behaviour and the intervals on which they increase or decrease. Relative and absolute extrema are the peaks and valleys of the graph. The average rate of change on $[a,b]$ is $\frac{f(b)-f(a)}{b-a}$.

Parent functions such as $x^2$, $x^3$, $\sqrt x$, $|x|$ and $\frac1x$ are transformed by $g(x)=a\,f\big(b(x-h)\big)+k$: $h$ and $k$ translate, $a$ stretches vertically (and reflects when $a<0$) and $b$ stretches horizontally. Functions are also combined by operations and composition, and one-to-one functions have inverses.

⚠️ Common mistakes

  • To test symmetry compute $f(-x)$ for all $x$; one matching value is not enough.
  • $f(x-2)$ shifts the graph right by $2$, not left.
  • The average rate of change on $[a,b]$ is $\frac{f(b)-f(a)}{b-a}$; do not divide by $f(b)-f(a)$.

🔑 Key formulas

$$f(-x)=f(x)\;(\text{even}),\quad f(-x)=-f(x)\;(\text{odd})$$
Symmetry
$$\frac{f(b)-f(a)}{b-a}$$
Average rate of change
$$g(x)=a\,f\big(b(x-h)\big)+k$$
Transformations
$$y=a\,f\big(b(x-h)\big)+k$$
General transformation
$$f\ \text{increasing on }I\iff x_1\lt x_2\Rightarrow f(x_1)\lt f(x_2)$$
Increasing function

✏️ Worked example

Is $f(x)=x^3-3x$ even, odd or neither? Find its average rate of change on $[0,2]$.

  1. $\displaystyle f(-x)=-x^3+3x=-f(x)\;\Rightarrow\;\text{odd}$
  2. $\displaystyle \frac{f(2)-f(0)}{2-0}=\frac{2-0}{2}=1$

✔ Odd; $1$.

🧮 More worked examples

Each step says what we do and why.

Example 2Find the domain of $f(x)=\dfrac{\sqrt{x+2}}{x-3}$.

  1. The root needs a non-negative radicand.$$x\ge-2$$
  2. The denominator cannot be $0$.$$x\neq3$$
✔ $[-2,3)\cup(3,\infty)$.

Example 3Describe how $g(x)=-2|x+1|+4$ is obtained from $y=|x|$.

  1. Inside: $x+1$.$$\text{left }1$$
  2. Outside: factor $-2$ and $+4$.$$\text{reflect in }x\text{-axis, stretch }\times2,\ \text{up }4$$
✔ Left $1$, reflect, stretch by $2$, up $4$; vertex $(-1,4)$.

Example 4$f(x)=x^2+1$, $g(x)=\sqrt{x-1}$. Find $(f\circ g)(x)$ and its domain.

  1. Substitute.$$f(g(x))=(\sqrt{x-1})^2+1=x$$
  2. Domain comes from $g$.$$x\ge1$$
✔ $(f\circ g)(x)=x$ for $x\ge1$.

Example 5Find the inverse of $f(x)=\dfrac{2x+1}{x-3}$ and its domain.

  1. Swap $x$ and $y$.$$x=\frac{2y+1}{y-3}$$
  2. Clear the fraction and collect $y$.$$xy-3x=2y+1\Rightarrow y(x-2)=3x+1$$
  3. Solve.$$f^{-1}(x)=\frac{3x+1}{x-2},\quad x\neq2$$
✔ $f^{-1}(x)=\frac{3x+1}{x-2}$, $x\neq2$.

Example 6Is $f(x)=\begin{cases}x^2,&x\lt1\\2x-1,&x\ge1\end{cases}$ continuous at $x=1$? Describe its end behaviour.

  1. Left and right values at $1$.$$1^2=1,\qquad2(1)-1=1=f(1)$$
  2. End behaviour.$$x\to-\infty:\ f\to\infty,\qquad x\to\infty:\ f\to\infty$$
✔ Continuous at $1$; both ends rise.

Example 7Compare the average rate of change of $f(x)=\sqrt x$ on $[4,9]$ and on $[9,16]$.

  1. First interval.$$\frac{3-2}{9-4}=0.2$$
  2. Second interval.$$\frac{4-3}{16-9}=\frac17\approx0.143$$
✔ The rate decreases: the graph bends down (concave down).

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

🎬 Even, odd or neither? Test the symmetry

An even function is unchanged when reflected in the $y$-axis: $f(-x)=f(x)$. An odd function is unchanged by a half-turn about the origin: $f(-x)=-f(x)$. Choose a function and press a reflection button: if the dashed copy lands exactly on the graph, the symmetry holds.

🎞️ Build y = a·f(b(x − h)) + k step by step

Every transformed graph comes from a parent graph. $h$ shifts it right, $k$ shifts it up, $a$ stretches it vertically (and reflects it if $a\lt0$), and $b$ compresses it horizontally. Choose the parameters and press play: the grey parent graph morphs into the blue one, one transformation at a time.

🌍 Modelling problems

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

🚗 Average speed

A car's distance is $s(t)=4t^2$ m. Find the average velocity between $t=1$ and $t=3$ s.

Show the solution
  1. Average rate of change.$$\frac{s(3)-s(1)}{3-1}=\frac{36-4}{2}$$

✔ $16$ m/s.

🌡️ Temperature conversion

$F=\frac95C+32$. Write $C$ as a function of $F$ and convert $104\,^\circ$F.

Show the solution
  1. Inverse.$$C=\tfrac59(F-32)$$
  2. Evaluate.$$\tfrac59(72)=40$$

✔ $40\,^\circ$C.

📦 Shipping cost

Shipping is $15$ AED up to $2$ kg and $15+6(w-2)$ AED above. Find the cost of $5$ kg and say whether the function is continuous at $w=2$.

Show the solution
  1. Evaluate.$$15+6\cdot3=33$$
  2. Both pieces give $15$ at $w=2$.$$15+6\cdot0=15$$

✔ $33$ AED; continuous.

🏘️ Town growth

A town's population is $P(t)=1200+80t-2t^2$ ($t$ in years). Find the average rate of change over the first $10$ years.

Show the solution
  1. Evaluate.$$P(0)=1200,\quad P(10)=1800$$
  2. Rate.$$\frac{1800-1200}{10}=60$$

✔ $60$ people per year.

🛢️ Oil spill

The radius of a circular oil spill is $r(t)=3t$ m after $t$ min. Write the area as a function of time and find it at $t=4$.

Show the solution
  1. Compose $A(r)=\pi r^2$ with $r(t)$.$$A(r(t))=\pi(3t)^2=9\pi t^2$$
  2. Evaluate.$$9\pi(16)=144\pi\approx452.4$$

✔ About $452$ m².

🚖 Holiday fare

A normal fare is $f(d)=2d+5$ AED. On holidays the fare is $g(d)=1.2f(d)$. Describe the transformation and find the holiday fare for $10$ km.

Show the solution
  1. Vertical stretch by $1.2$.$$g(d)=2.4d+6$$
  2. Evaluate.$$g(10)=30$$

✔ $30$ AED.

🏆 Challenge problems

Harder problems for students aiming higher. Try first, then open the solution.

🏆 Even + odd

Show that any function on a symmetric domain is the sum of an even and an odd function, and apply it to $e^x$.

Show the solution
  1. Split.$$f(x)=\underbrace{\tfrac{f(x)+f(-x)}{2}}_{E(x)}+\underbrace{\tfrac{f(x)-f(-x)}{2}}_{O(x)}$$
  2. Check symmetry.$$E(-x)=E(x),\qquad O(-x)=-O(x)$$
  3. For $e^x$.$$e^x=\tfrac{e^x+e^{-x}}{2}+\tfrac{e^x-e^{-x}}{2}=\cosh x+\sinh x$$

✔ $e^x=\cosh x+\sinh x$.

🏆 Symmetry with a parameter

For which $a$ is $g(x)=x^2+ax$ even? For which $a$ is $f(x)=x^3+ax$ odd?

Show the solution
  1. Even test.$$g(-x)=x^2-ax=g(x)\iff a=0$$
  2. Odd test.$$f(-x)=-x^3-ax=-f(x)\ \text{for all }a$$

✔ $g$ even only for $a=0$; $f$ odd for every $a$.

✅ Multiple-choice quiz

📝 Short essay

Explain the difference between a relative maximum and an absolute maximum, with an example.