Tutorial Week 7
Derivative Notation
There are two types of notation used to represent derivatives: Leibniz’s notation and Lagrange’s notation.
Leibniz’s notation
In Leibniz’s notation, to take the derivative of something, you prepend it with \(\frac{d}{dx}\). For example, to take the derivative of g(x), you would write \(\frac{d}{dx}g(x)\). Often times, this gets “simplified” to \(\frac{dg(x)}{dx}\) or \(\frac{dg}{dx}\).
For higher order derivative, we write the order as an exponent of the differential operator, such as \(\frac{d^5}{dx^5}f(x)\).
Lagrange’s notation
In lagrange’s notation, we use prime marks ( ‘ ) to denote the derivative of a function, i.e. \(f'(x)\) is the derivative of \(f(x)\). Of course, it isn’t exactly practical to keep writing the prime marks for higher order derivatives, so we simply write the derivative order number directly. For example, \(f^{(12)}(x)\).
Evaluating derivative
If you want to evaluate a derivative at a point, we write a vertical bar after the derivative and write the value we’re evaluating at as a subscript after the bar.
For example, \(\frac{df(x)}{dx} |_{x = 3}\).
Derivative Rules
There are a few derivative rules that make our lives a lot easier when computing derivatives (do you know anyone who would enjoy using the limit definition of a derivative to calculate something like the derivative of \(\sqrt{sin(cos(x^5)) + ln(x) - 3x^{3x}\)?)
Constant multiple rule: \(\frac{d}{dx} cf(x) = cf'(x)\).
Sum/difference rule: \(\frac{d}{dx} f(x) + g(x) = f'(x) + g'(x)\)
Product rule: \(\frac{d}{dx}(f(x) \cdot g(x)) = f(x)g'(x) + f'(x)g(x)\)
Quotient rule: \(\frac{d}{dx} \frac{f(x)}{g(x)} = \frac{f'(x)g(x) - f(x)g'(x)}{g(x)^2}\)
Chain rule: \(\frac{d}{dx} f(g(x)) = f'(g(x))\cdot g'(x)\)
Common derivatives
Just like how we have generalised derivative rules, we also have some rules for some specific commonly encountered functions.
\(\frac{d}{dx}k = 0\)
\(\frac{d}{dx} x^n = nx^{n-1}\)
\(\frac{d}{dx} sin(x) = cos(x)\)
\(\frac{d}{dx} cos(x) = -sin(x)\)
\(\frac{d}{dx} tan(x) = sec^2(x)\)
\(\frac{d}{dx} k^x = ln(k)k^x\) (Special case: \(\frac{d}{dx} e^x = e^x\))
\(\frac{d}{dx} log_a(x) = \frac{1}{aln(x)}\) (Special case: \(\frac{d}{dx} ln(x) = \frac{1}{x}\))
Derivative Practice
Q1: Let \(f(x) = x^3\). \(h\) be some function defined in terms of \(f(x)\), and \(\frac{dh}{df} = 3 + 2x\). Find \(\frac{dh}{dx}\).
Think about what it means if f is a function of x. In this situation, h being a function defined in terms of f(x) means that h is wrriten in the form of \(h(f(x)) = something\), such as \(h(f(x)) = f(x)^3\).
We can use chain rule here. Because h is written in the form of \(h(f(x))\),
Q2: Find the derivative of \(|x + 2| - cos(x)\).
Piecewise functions have piecewise derivatives, but with some extra care taken.
We know that \(|x + 2| = \begin{cases} x + 2 \;\;\;\;\;\;\; \text{ if } x \ge -2 \\ -(x+2) \; \text { if } x \lt -2 \end{cases}\).
So let’s do the same for the derivative too. But keep in mind that for a derivative to exist, the left and right derivative have to be equal.
\(\frac{d}{dx}|x+2| - cos(x) = \begin{cases} \frac{d}{dx}x + 2 - cos(x) \;\;\;\;\;\;\;\; \text{ if } x \gt -2 \\ ? \;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\text{ if } x = -2 \\ \frac{d}{dx} -(x+2) - cos(x) \; \text { if } x \lt -2 \end{cases}\)
We can find that
\(\frac{d}{dx}x + 2 - cos(x) = 1 + sin(x)\) and \(\frac{d}{dx}-(x + 2) - cos(x) = -1 + sin(x)\).
At x = 2, we have the left and right derivatives \(1 + sin(-2) \neq -1 + sin(-2)\) so the derivative at x = -2 does not exist.
Thus the derivative is:
\(\frac{d}{dx}|x+2| - cos(x) = \begin{cases} 1 + sin(x) \;\;\;\; \text{ if } x \gt -2 \\ DNE \;\;\;\;\;\;\;\;\;\;\;\text{ if } x = -2 \\ -1 + sin(x) \; \text { if } x \lt -2 \end{cases}\)
Logarithmic Differentiation
Logarithmic differentiation is helpful when dealing with exponential functions that have variables in both the base and the exponent, as well as large composite functions joined by multiplication and division.
Q3: Find the derivative of \((\sqrt[3]{2x})^{sin(x)}\).
We start with \(f(x) = (\sqrt[3]{2x})^{sin(x)}\),
then we take the log of both sides, giving us \(\ln(f(x)) = ln((\sqrt[3]{2x})^{sin(x)})\)
We can then take the derivative on both sides and solve for \(f'(x) = \frac{df}{dx}\).
Implicit Differentiation
We can use implicit differentiation when one variable is a function of another variable in our equation, e.g. y is a function of x or y(x).
Here are some examples to get you used to implicit differentiation. When differentiating implicitly for the variables x and y, and y is a function of x, we have:
\(\frac{d}{dx} y = \frac{dy}{dx}\)
\(\frac{d}{dx} y^2 = 2y\frac{dy}{dx}\)
\(\frac{d}{dx} cos(x)y^3 = -sin(x)y^3 + cos(x)3y^2\frac{dy}{dx}\)
Q4: If y is a function of x, find \(\frac{dy}{dx}\) for \(3x^2y + 4y = 3y^4 + x\).
We take the derivative on both sides and solve for \(\frac{dy}{dx}\).
Q5: What is the equation of the tangent line of \(tan(x + y) = 4x + 1\) at \((0, \frac{\pi}{4})\)?
To get the equation of a line, we need the slope and a point on the line. We’re given the point \((0, \frac{\pi}{4})\), so all we need to do now is find the slope, which will be the deriviative \(\frac{dy}{dx}\).
Evaluating this deriviative at \((0, \frac{\pi}{4})\) gives us
The slope \(m = 1\), so for
\(y = mx + b\), we can find b by substituting \((x, y) = (0, \frac{\pi}{4})\).
So \(b = \frac{\pi}{4}\) and the equation of the line is \(y = x + \frac{\pi}{4}\).