📖 Short lecture
The derivative $f'(a)$ is the slope of the tangent line to the graph at $x=a$, the instantaneous rate of change. It is defined as a limit of slopes of secant lines: $f'(x)=\lim_{h\to0}\frac{f(x+h)-f(x)}{h}$.
Rules make differentiation fast: the power rule $(x^n)'=nx^{n-1}$, the sum rule, the product rule $(uv)'=u'v+uv'$ and the chain rule $(f(g(x)))'=f'(g(x))\,g'(x)$. Also $(\sin x)'=\cos x$ and $(e^x)'=e^x$.
⚠️ Common mistakes
- $(fg)'\neq f'g'$: use the product rule $f'g+fg'$.
- In the chain rule multiply by the derivative of the inside: $\frac{d}{dx}(3x+1)^5=15(3x+1)^4$.
- The derivative of a constant is $0$, including $\pi^2$ or $e^3$.
🔑 Key formulas
✏️ Worked example
Differentiate $f(x)=3x^4-5x^2+7$ and find the tangent line at $x=1$.
- $\displaystyle f'(x)=12x^3-10x$
- $\displaystyle f(1)=5,\quad f'(1)=2$
- $\displaystyle y-5=2(x-1)\Rightarrow y=2x+3$
✔ $y=2x+3$.
🧮 More worked examples
Each step says what we do and why.
Example 2Use the definition to find $f'(x)$ for $f(x)=x^2+3x$.
- Difference quotient.$$\frac{(x+h)^2+3(x+h)-x^2-3x}{h}=\frac{2xh+h^2+3h}{h}$$
- Simplify and let $h\to0$.$$2x+h+3\to2x+3$$
Example 3Differentiate $y=x^2e^x$.
- Product rule.$$2x\cdot e^x+x^2\cdot e^x$$
- Factor.$$xe^x(x+2)$$
Example 4Differentiate $y=\dfrac{x}{x^2+1}$.
- Quotient rule.$$\frac{1\cdot(x^2+1)-x\cdot2x}{(x^2+1)^2}$$
- Simplify.$$\frac{1-x^2}{(x^2+1)^2}$$
Example 5Differentiate $y=(3x^2+1)^5$.
- Chain rule: outer then inner.$$5(3x^2+1)^4\cdot6x$$
Example 6Differentiate $y=x\sin x$.
- Product rule.$$1\cdot\sin x+x\cdot\cos x$$
Example 7Find the normal line to $y=x^2$ at $(1,1)$.
- Tangent slope.$$y'(1)=2$$
- Normal slope is the negative reciprocal.$$-\tfrac12$$
- Equation.$$y-1=-\tfrac12(x-1)$$
🖐️ 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.
🎬 From secant to tangent
The secant through $(a,f(a))$ and $(a+h,f(a+h))$ has slope $\frac{f(a+h)-f(a)}{h}$, the average rate of change. Press play to shrink $h$: the secant turns into the tangent and its slope approaches $f'(a)$, the instantaneous rate of change.
🎞️ Sketch f′ from f: the slope becomes a graph
At every point the slope of the tangent to $f$ is a number, $f'(x)$. Press play: the tangent slides along $f$ (top) and its slope is plotted below, drawing the graph of $f'$. Where $f$ has a peak or valley, $f'$ crosses zero; where $f$ rises, $f'$ is above the axis.
🌍 Modelling problems
Real-life situations: translate the words into mathematics, solve, then interpret the answer.
🏃 Velocity
A particle moves with $s(t)=t^3-6t^2+9t$ m. Find its velocity and acceleration at $t=2$ s.
Show the solution
- Velocity.$$v=3t^2-12t+9,\quad v(2)=-3$$
- Acceleration.$$a=6t-12,\quad a(2)=0$$
✔ $v=-3$ m/s, $a=0$ m/s².
💰 Marginal cost
$C(x)=0.02x^2+5x+300$ AED for $x$ items. Find $C'(100)$ and interpret it.
Show the solution
- Derivative.$$C'(x)=0.04x+5$$
- Evaluate.$$C'(100)=9$$
✔ About $9$ AED for the 101st item.
🎈 Balloon
A balloon's volume is $V=\frac43\pi r^3$. How fast does $V$ change with $r$ when $r=3$ cm?
Show the solution
- Derivative.$$\frac{dV}{dr}=4\pi r^2$$
- Evaluate.$$36\pi\approx113.1$$
✔ About $113$ cm³ per cm.
👥 Population rate
$P(t)=500e^{0.03t}$. How fast is the population growing at $t=10$?
Show the solution
- Derivative.$$P'(t)=15e^{0.03t}$$
- Evaluate.$$15e^{0.3}\approx20.2$$
✔ About $20$ per year.
🍵 Cooling tea
$T(t)=20+60e^{-0.1t}$ °C. How fast is the tea cooling at $t=5$ min?
Show the solution
- Derivative.$$T'(t)=-6e^{-0.1t}$$
- Evaluate.$$-6e^{-0.5}\approx-3.64$$
✔ About $3.6$ °C per minute.
⚽ Kicked ball
A ball's height is $h(t)=-4.9t^2+20t+2$ m. Find its velocity at $t=1$ s and when it is highest.
Show the solution
- Velocity.$$h'(t)=-9.8t+20,\quad h'(1)=10.2$$
- Highest when $h'=0$.$$t=\frac{20}{9.8}\approx2.04$$
✔ $10.2$ m/s; highest at about $2.04$ s.
🏆 Challenge problems
Harder problems for students aiming higher. Try first, then open the solution.
🏆 Smooth join
Find $a,b$ so that $f(x)=\begin{cases}x^2,&x\le1\\ax+b,&x\gt1\end{cases}$ is differentiable at $1$.
Show the solution
- Continuity.$$a+b=1$$
- Equal slopes.$$a=2\Rightarrow b=-1$$
✔ $a=2$, $b=-1$.
🏆 $x$ to the $x$
Differentiate $y=x^x$ ($x\gt0$).
Show the solution
- Take $\ln$.$$\ln y=x\ln x$$
- Differentiate both sides.$$\frac{y'}{y}=\ln x+1$$
✔ $y'=x^x(\ln x+1)$.
✅ Multiple-choice quiz
📝 Short essay
A car's position is $s(t)=t^3$ metres. Explain the difference between its average speed on $[1,3]$ and its speed at $t=3$.
The average speed is the secant slope: $\frac{27-1}{3-1}=13$ m/s. The speed at $t=3$ is the tangent slope $s'(3)=3\cdot3^2=27$ m/s. The derivative is the limit of average speeds over shorter and shorter intervals.