The Derivative Function
You're riding a bus along the Periférico and the speedometer reads $60$ km/h. But the bus only "knows" which kilometer it is at in each instant, not its speed. How do you get the speed from the position? The answer is the derivative function: a new function that gives the instantaneous rate of change at each point. On this page you learn how to obtain it, how to read it, and how to use it.
The derivative function and the four-step rule
In the previous section you computed the derivative at one point $a$ as a limit. If instead of a fixed number $a$ you leave $x$ free, the limit gives you a new function: the derivative function $f'(x)$.
Computing it with the definition always follows the four-step rule:
-
Compute $f(x+h)$.
-
Compute the difference $f(x+h)-f(x)$.
-
Divide by $h$ and simplify (here the $h$ in the denominator disappears).
-
Let $h\to 0$.
When there is a square root, the trick for the limit is to multiply by the conjugate, just as in limits with $0/0$:
A skater moves along a track following a trajectory whose position (in meters) is given by the function $s(t) = t^2 + 3t$, where $t$ is the time in seconds. Calculate,…
A skater moves along a track following a trajectory whose position (in meters) is given by the function $s(t) = t^2 + 3t$, where $t$ is the time in seconds. Calculate, using the definition of derivative as a limit, the instantaneous velocity of the skater at $t = 2$ seconds.
Using only the definition of the derivative as a limit (difference quotient), calculate the derivative function of $f(x) = \sqrt{2x^2 + 1}$. Then, use the result to find…
Using only the definition of the derivative as a limit (difference quotient), calculate the derivative function of $f(x) = \sqrt{2x^2 + 1}$. Then, use the result to find the equation of the tangent line to the curve at the point $P$ with abscissa $x = 2$.
The figure shows the graph of $f$ and the position of the point $P$.
Basic differentiation rules
Taking the limit every time is slow. The rules come from applying the definition just once to each type of function.
| Function | Derivative |
|---|---|
| $k$ (constant) | $0$ |
| $x^n$ | $n\,x^{n-1}$ |
| $\sqrt{x}=x^{1/2}$ | $\dfrac{1}{2\sqrt{x}}$ |
| $\dfrac{1}{x^n}=x^{-n}$ | $-n\,x^{-n-1}$ |
| $e^x$ | $e^x$ |
| $\ln x$ | $\dfrac{1}{x}$ |
| $\sin x$ | $\cos x$ |
| $\cos x$ | $-\sin x$ |
| $k\,f(x)\pm g(x)$ | $k\,f'(x)\pm g'(x)$ |
Calculate the derivative function of the following elementary functions using differentiation rules: a) $f(x) = 5x^4 - 3x^2 + 7x - 1$ b)…
Calculate the derivative function of the following elementary functions using differentiation rules:
- a) $f(x) = 5x^4 - 3x^2 + 7x - 1$
- b) $g(x) = \frac{1}{x^3} + \sqrt{x}$
- c) $h(x) = 3e^x - 2\cos(x)$
Product and quotient
Given the function $f(x) = x \times \ln(x)$, calculate its derivative $f'(x)$ applying the product rule and determine the gradient of the curve at the point where…
Given the function $f(x) = x \times \ln(x)$, calculate its derivative $f'(x)$ applying the product rule and determine the gradient of the curve at the point where $x = e$.
An access ramp for a skatepark is being designed. The side profile of the first section follows the function $f(x) = \frac{x^2+4}{x+1}$. Calculate the derivative…
An access ramp for a skatepark is being designed. The side profile of the first section follows the function $f(x) = \frac{x^2+4}{x+1}$. Calculate the derivative function $f'(x)$ to find how the incline of the ramp varies at any point along that section.
The chain rule
Apply the chain rule to find the derivative of the following composite functions: a) $f(x) = (3x^2 - 5)^4$ b) $g(x) = \sin(5x + 2)$ c) $h(x) = e^{x^2}$
Apply the chain rule to find the derivative of the following composite functions:
- a) $f(x) = (3x^2 - 5)^4$
- b) $g(x) = \sin(5x + 2)$
- c) $h(x) = e^{x^2}$
Calculate the derivative function of the following composite function, simplifying the result as much as possible:…
Calculate the derivative function of the following composite function, simplifying the result as much as possible:
$f(x) = \ln\left(\frac{1 + \sin(x)}{1 - \sin(x)}\right)$
Tangent line and normal line
The value $f'(a)$ is the slope of the tangent at $x=a$.
Find the equation of the tangent line to the graph of the function $f(x) = x^2 - 4x + 1$ at the point with abscissa $x = 3$.
Find the equation of the tangent line to the graph of the function $f(x) = x^2 - 4x + 1$ at the point with abscissa $x = 3$.
Find the equation of the tangent line to the curve $f(x) = \frac{x^2 - 1}{x + 2}$ at the point where the function crosses the y-axis ($OY$).
Find the equation of the tangent line to the curve $f(x) = \frac{x^2 - 1}{x + 2}$ at the point where the function crosses the y-axis ($OY$).
Consider the function $f(x) = x^4 + ax^3 + bx^2 + cx + d$. Determine the coefficients $a, b, c$ and $d$ knowing that the following conditions are simultaneously…
Consider the function $f(x) = x^4 + ax^3 + bx^2 + cx + d$. Determine the coefficients $a, b, c$ and $d$ knowing that the following conditions are simultaneously satisfied:
-
The graph of $f(x)$ passes through the origin.
-
The function has a point of inflection at $x = 1$.
-
The tangent line to the curve at the point with x-coordinate $x = 0$ is parallel to the line $y = -2x + 5$.
-
The value of the second derivative at $x = 0$ is $f''(0) = 6$.
Velocity and acceleration
Here we close the loop on the opening hook. If $s(t)$ is the position, the velocity is its instantaneous rate of change and the acceleration is the rate of change of the velocity:
$$v(t)=s'(t)\qquad a(t)=v'(t)=s''(t)$$The bus speedometer does exactly this: it measures how much the position changes over a very small interval.
A surveillance drone follows a path whose height in meters is given by the function $h(t) = \frac{1}{3}t^3 - 4t^2 + 11t + 5$, where $t$ is the time in seconds (…
A surveillance drone follows a path whose height in meters is given by the function $h(t) = \frac{1}{3}t^3 - 4t^2 + 11t + 5$, where $t$ is the time in seconds ($0 \leq t \leq 10$).
-
a) Calculate the velocity function $v(t)$ and the acceleration function $a(t)$.
-
b) At what times is the drone instantaneously at rest (velocity equal to zero)?
A surveillance drone follows a flight path along a straight line. Its position (in decameters) relative to the control center is given by the function…
A surveillance drone follows a flight path along a straight line. Its position (in decameters) relative to the control center is given by the function $s(t) = t^2 \times e^{-t/4}$, where $t$ is the time in minutes since takeoff ($t \ge 0$).
- a) Determine the velocity function $v(t)$ and the acceleration function $a(t)$ of the drone.
- b) At what time does the drone change direction of motion?
- c) Calculate the exact moment when the acceleration is zero. What physical interpretation does this point have regarding the drone's velocity?
Differentiability and piecewise functions
A function is differentiable at $a$ if $f'(a)$ exists, that is, if the two one-sided limits of the difference quotient exist and are equal:
$$f'_-(a)=\lim_{h\to 0^-}\frac{f(a+h)-f(a)}{h}\qquad f'_+(a)=\lim_{h\to 0^+}\frac{f(a+h)-f(a)}{h}$$Study the differentiability of the following function at the point $x = 2$, first checking whether it is continuous at that point: $$f(x) = \begin{cases} x^2 & \text{if…
Study the differentiability of the following function at the point $x = 2$, first checking whether it is continuous at that point:
$$f(x) = \begin{cases} x^2 & \text{if } x \leq 2 \\ 4x - 4 & \text{if } x > 2 \end{cases}$$Study the differentiability of the function $f(x) = |x^2 - 4x + 3|$ at the points $x = 1$ and $x = 3$. a) Study whether $f$ is continuous at $x = 1$ and at $x = 3$. b)…
Study the differentiability of the function $f(x) = |x^2 - 4x + 3|$ at the points $x = 1$ and $x = 3$.
- a) Study whether $f$ is continuous at $x = 1$ and at $x = 3$.
- b) Calculate, if they exist, the one-sided derivatives of $f$ at $x = 1$ and at $x = 3$.
- c) State whether $f$ is differentiable at those points.
Parameters that make a function differentiable
For a piecewise function to be differentiable at the junction, two equations are imposed: continuity (the values agree) and differentiability (the derivatives agree).
Determine the values of the parameters $a$ and $b$ so that the following function is differentiable throughout its domain, paying special attention to the joining point…
Determine the values of the parameters $a$ and $b$ so that the following function is differentiable throughout its domain, paying special attention to the joining point $x = 0$:
$f(x) = \begin{cases} e^{ax} & \text{if } x \leq 0 \\ x^2 + bx + 1 & \text{if } x > 0 \end{cases}$
Consider the piecewise function $f: \mathbb{R} \to \mathbb{R}$ defined by the following expression: $$f(x) = \begin{cases} a \times e^{x-2} + b \times x & \text{if } x…
Consider the piecewise function $f: \mathbb{R} \to \mathbb{R}$ defined by the following expression:
$$f(x) = \begin{cases} a \times e^{x-2} + b \times x & \text{if } x \le 2 \\ \ln(x^2 - 3) + x^2 & \text{if } x > 2 \end{cases}$$Determine the values of the parameters $a, b \in \mathbb{R}$ so that the function is differentiable throughout its domain. Once found, discuss whether the derivative function $f'(x)$ is, in turn, continuous at $x = 2$.
The sign of $f'$ and the second derivative
Calculate the second-order derivative (second derivative) of the function $f(x) = x^3 - 6x^2 + 9x - 2$. For which value of $x$ does this second derivative equal zero?…
Calculate the second-order derivative (second derivative) of the function $f(x) = x^3 - 6x^2 + 9x - 2$. For which value of $x$ does this second derivative equal zero? (This point is important for studying curvature, which you will see later).
The following graph corresponds to the derivative function, $f'(x)$, of a function $f(x)$ that is continuous on its entire domain $\mathbb{R}$. The graph of $f'(x)$ is a…
The following graph corresponds to the derivative function, $f'(x)$, of a function $f(x)$ that is continuous on its entire domain $\mathbb{R}$. The graph of $f'(x)$ is a parabola that crosses the $X$-axis at $x=-2$ and $x=2$, and whose vertex is the point $(0,2)$.
Using the graph of $f'(x)$, answer the following questions about the original function $f(x)$, justifying your reasoning:
- a) State the intervals of increase and decrease of $f(x)$.
- b) Determine the $x$-coordinates of the relative extrema of $f(x)$ and classify them as maxima or minima.
- c) At which value of $x$ does $f(x)$ have an inflection point? Justify your answer based on the relationship between $f''(x)$ and the slope of $f'(x)$.
Successive derivatives
Differentiating $f'$ gives $f''$, then $f'''$, and so on: $f^{(n)}(x)$ is the derivative of order $n$. For certain functions a pattern forms and you can write $f^{(n)}$ without differentiating $n$ times.
Partial fractions
To differentiate $n$ times a fraction such as $\dfrac{1}{(x-a)(x-b)}$ with $a\neq b$, first decompose it into partial fractions: look for $\dfrac{A}{x-a}+\dfrac{B}{x-b}$. Add the two fractions, set the numerator equal to the original one, and find $A$ and $B$ by substituting convenient values of $x$ (the roots of the denominator).
Given the function $f(x) = \ln(2x - 3)$, find the general expression for its nth derivative $f^{(n)}(x)$ and use it to calculate the value of the fourth derivative at…
Given the function $f(x) = \ln(2x - 3)$, find the general expression for its nth derivative $f^{(n)}(x)$ and use it to calculate the value of the fourth derivative at the point $x = 2$.
Given the function $f(x) = \frac{1}{x^2 - 3x + 2}$: a) Decompose the function into partial fractions. b) Using the above decomposition, find a general formula for the…
Given the function $f(x) = \frac{1}{x^2 - 3x + 2}$:
- a) Decompose the function into partial fractions.
- b) Using the above decomposition, find a general formula for the $n$th derivative, $f^{(n)}(x)$, for any $n \in \mathbb{N}$.
- c) Prove the validity of your formula for every $n \in \mathbb{N}$ by mathematical induction, explicitly checking the first three orders of differentiation.
Logarithmic differentiation
If the base and the exponent depend on $x$, as in $x^x$ or $(x^2+1)^{\cos x}$, none of the rules in the table works.
A note about the domain: since $\ln u$ is used, the function $u^v$ treated this way requires $u>0$. Always check where $f$ is defined before differentiating it.
Use the technique of logarithmic differentiation to find the derivative of the following non-algebraic power function: $f(x) = (x^2 + 1)^{\cos(x)}$
Use the technique of logarithmic differentiation to find the derivative of the following non-algebraic power function:
$f(x) = (x^2 + 1)^{\cos(x)}$
Use the technique of logarithmic differentiation to calculate the derivative function of: $$f(x) = \left( \cos(x) \right)^{\ln(x)}$$ State with reasoning the domain of…
Use the technique of logarithmic differentiation to calculate the derivative function of:
$$f(x) = \left( \cos(x) \right)^{\ln(x)}$$State with reasoning the domain of definition of the function $f(x)$ and that of its derivative function $f'(x)$. Is there any point in the interval $(0, \pi/2)$ where the gradient of the tangent line is zero?
Implicit differentiation
A curve such as $x^2+y^2=25$ (a circle) is not a function of $x$, but at each point it has a slope. To obtain it you differentiate the whole equation with respect to $x$, treating $y$ as $y(x)$: every term with $y$ brings a factor $y'$ from the chain rule.
Given the equation of the curve implicitly defined by $x^3 + y^3 - 3xy = 0$ (known as the Folium of Descartes), calculate the value of the gradient of the tangent line…
Given the equation of the curve implicitly defined by $x^3 + y^3 - 3xy = 0$ (known as the Folium of Descartes), calculate the value of the gradient of the tangent line to the curve at the point $( \frac{3}{2}, \frac{3}{2} )$.
Given the curve defined by the implicit equation $x^3 + y^3 - 3xy = 0$ (known as the Folium of Descartes), answer the following: a) Obtain the expression for the…
Given the curve defined by the implicit equation $x^3 + y^3 - 3xy = 0$ (known as the Folium of Descartes), answer the following:
- a) Obtain the expression for the derivative $y'$ in terms of $x$ and $y$ using implicit differentiation.
- b) Find the points on the curve where the tangent line is horizontal.
- c) Determine the equation of the normal line to the curve at the point $( \frac{3}{2}, \frac{3}{2} )$.