MATH 4.3: Further differentiation 
PPLATO @  
PPLATO / FLAP (Flexible Learning Approach To Physics) 


Applications of differentiation are widespread throughout physics. For example, given the displacement from the origin of a moving object as a function of time, the corresponding velocity can be found by differentiating that function. Or, given a simple electrical circuit consisting of a resistor and an inductor connected in series with a charged capacitor and a switch (i.e. an LCR circuit), the potential differences across the inductor and resistor are, respectively, $L\dfrac{dI}{dt}$ and RI_{ }(t) where I_{ }(t) is the current in the circuit at time t after the switch is closed and L and R are constants. It is also the case that in such a circuit $I(t) = \dfrac{dq}{dt}(t)$ where q_{ }(t) is the charge on the capacitor at time t. Because the need to differentiate arises so often in physics it is essential that you should be able to differentiate readily a wide variety of functions. The techniques of basic differentiation should enable you to differentiate certain standard functions such as powers, trigonometric functions, exponentials and logarithms, or certain combinations of those standard functions such as sums, constant multiples, products and quotients. This module goes further in that it introduces techniques that, when combined with those of basic differentiation, will allow you to differentiate almost all the functions of a single variable that you are likely to meet.
It is often the case that a physical quantity can be represented by a function of a variable that is itself a function of another variable. For example, the displacement from equilibrium of a one–dimensional simple harmonic oscillator may be represented by x = Acos(ωt + ϕ), but (ωt + ϕ) is itself a function of t, so we might write θ_{ }(t) = (ωt + ϕ), in which case we can write x = Acos(θ_{ }(t)). Such an expression makes it clear that x is a function of a function of t, and that to find the velocity of such an oscillator we need to be able to differentiate a function of a function of t. Section 2 of this module describes functions of a function in more detail and introduces (in Subsection 2.2) the chain rule for their differentiation. The chain rule is one of the most useful techniques of calculus; among other things it enables us to differentiate implicit functions, inverse functions and parametric functions, all of which are discussed in Subsection 2.3Subsections 2.3, Subsection 2.42.4 and Subsection 2.52.5.
If we want to find the acceleration of an object given its position then we must proceed via its velocity; the acceleration is the rate of change of the velocity, which is itself the rate of change of the position. Hence the process requires two successive differentiations. We say that the acceleration is the second derivative of the position of the object. Similarly, the potential difference across the inductor in the series LCR circuit mentioned earlier is proportional to dI/dt but I = dq/dt, so the potential difference is proportional to the second derivative of the charge. Clearly, second (and higher) derivatives are also of interest to physicists, so they form the second major theme of this module, discussed in Section 3.
Study comment Having read the introduction you may feel that you are already familiar with the material covered by this module and that you do not need to study it. If so, try the following Fast track questions. If not, proceed directly to the Subsection 1.3Ready to study? Subsection.
Study comment Can you answer the following Fast track questions? If you answer the questions successfully you need only glance through the module before looking at the Subsection 5.1Module summary and the Subsection 5.2Achievements. If you are sure that you can meet each of these achievements, try the Subsection 5.3Exit test. If you have difficulty with only one or two of the questions you should follow the guidance given in the answers and read the relevant parts of the module. However, if you have difficulty with more than two of the Exit questions you are strongly advised to study the whole module.
Question F1
Find the first four derivatives of the following functions:
(a) F_{ }(x) = 3_{ }sin_{ }x + 4_{ }cos_{ }x
(b) y = log_{e}_{ }x x > 0 i
Answer F1
(a) f ′_{ }(x) = 3_{ }cosx − 4_{ }sin_{ }x
f ′′_{ }(x) = −3_{ }sin_{ }x − 4_{ }cosx
f ′′′_{ }(x) = −3_{ }cos_{ }x + 4_{ }sin_{ }x
F^{(iv)}(x) = 3_{ }sin_{ }x + 4_{ }cos_{ }x
(b) $\dfrac{dy}{dx} = \dfrac1x,~~~\dfrac{d^2y}{dx^2} = \dfrac{1}{x^2},~~~\dfrac{d^3y}{dx^3} = \dfrac{2}{x^3},~~~\dfrac{d^4y}{dx^4} = \dfrac{6}{x^4}$
Comment The two notations used in parts (a) and (b) are equivalent, i.e. f ′_{ }(x) is equivalent to dy/dx.
Question F2
If x = a_{ }(θ − sin_{ }θ) and y = a_{ }(1 − cos_{ }θ), where a is a constant, find $\dfrac{dy}{dx}~\text{and}~\dfrac{d^2y}{dx^2}$.
Answer F2
$\dfrac{dx}{d\theta} = a(1\cos\theta)\quad\text{and}\quad\dfrac{dy}{d\theta} = a\sin\theta$
so$\dfrac{dy}{dx} = \dfrac{dy}{d\theta} \times \dfrac{d\theta}{dx} = \dfrac{dy}{d\theta}\left/\dfrac{dx}{d\theta}\right. = \dfrac{a\sin\theta}{a(1 \cos\theta)} = \dfrac{\sin\theta}{(1 \cos\theta)}\quad\text{i.e.}\quad\dfrac{dy}{dx} = \dfrac{\sin\theta}{(1 \cos\theta)}$
Also$\dfrac{d^2y}{dx^2} = \dfrac{d}{dx}\left(\dfrac{\sin\theta}{1\cos\theta}\right) = \dfrac{d}{d\theta} \left(\dfrac{\sin\theta}{1\cos\theta}\right)\times\dfrac{d\theta}{dx}$
so$\dfrac{d^2y}{dx^2} = \left[\dfrac{(1\cos\theta)\cos\theta \sin\theta(+\sin\theta)}{(1\cos\theta)^2}\right]\times\dfrac{d\theta}{dx} d\theta$
i.e.$\dfrac{d^2y}{dx^2} = \left.\left[\dfrac{\cos\theta\cos^2\theta\sin^2\theta}{(1\cos\theta)^2}\right]\right/\dfrac{dx}{d\theta}$
$\phantom{\dfrac{d^2y}{dx^2}} = \left[\dfrac{\cos\theta1}{(1\cos\theta)^2}\right]\times\dfrac{1}{a(1\cos\theta)} = \dfrac{1}{a(1\cos\theta)^2}$
Question F3
Find the first and second derivatives of the following functions:
(a) F_{ }(t) = exp[αt + sin(ωt)] with respect to t, where α and ω are constants
(b) F_{ }(x) = 5_{ }log_{e}(sin^{2}x + 1) with respect to x
(c) F_{ }(x) = arcsin(5x) with respect to x i
Answer F3
Put u = αt + sin(ωt) and F_{ }(u) = e^{u}
then$\dfrac{du}{dt} = \alpha + \omega\cos(\omega t)$ and f ′_{ }(u) = e^{u}
Hence, by the chain rule
$\dfrac{dF}{dt} = \dfrac{dF}{du}\times\dfrac{du}{dt} = {\rm e}^u \times[\alpha+\omega\cos(\omega t)] = [\alpha+\omega\cos(\omega t)]{\rm e}^u = [\alpha+\omega\cos(\omega t)]\times{\rm {exp}}[\alpha t+\omega\sin(\omega t)]$
i.e.$\dfrac{dF}{dt} = [\alpha+\omega\cos(\omega t)]\times{\rm {exp}}[\alpha t+\omega\sin(\omega t)]$
By the product rule
$\dfrac{d^2F}{dt^2} = [\alpha + \omega\cos(\omega t)]\times\dfrac{d}{dt}\{{\rm exp}[\alpha t + \omega\sin(\omega t)]\} + [\omega^2\sin(\omega t)]\times{\rm exp}[\alpha t + \omega\sin(\omega t)]$
i.e.$\dfrac{d^2F}{dt^2} = [\alpha + \omega\cos(\omega t)]\times[\alpha + \omega^2\cos(\omega t)]\times\{{\rm exp}[\alpha t + \omega\sin(\omega t)]\}  \omega^2\sin(\omega t)\times{\rm exp}[\alpha t + \omega\sin(\omega t)]$
so$\dfrac{d^2F}{dt^2} = \{[\alpha + \omega\cos(\omega t)]\times[\alpha + \omega^2\cos(\omega t)]  \omega^2\sin(\omega t)]\}\times{\rm exp}[\alpha + \omega\sin(\omega t)]\}$
Put u = sin^{2}x + 1 and F_{ }(u) = 5_{ }log_{e}_{ }u
then, using either the product rule (sin^{2}x = sin_{ }x × sin_{ }x) or the chain rule, we find
$\dfrac{du}{dx} = 2\sin x\cos x$ and $F'(u) = \dfrac5u$
$\dfrac{dF}{dx} = \dfrac{dF}{du} \times\dfrac{du}{dx} = \dfrac5u \times (2\sin x\cos x) = \dfrac{5 \times2\sin x\cos x}{\sin^2x+1} = \dfrac{10\times\sin x\cos x}{\sin^2x+1}$
Applying the quotient rule we find
$\dfrac{d^2F}{dx^2} = [(\sin^2x+1)\times\dfrac{d}{dx}(10\sin x\cos x)10\sin x\cos x(2\sin x\cos x)]/(\sin^2 x+1)^2$
$\phantom{\dfrac{d^2F}{dx^2} }= \{(\sin^2 x+1)[10\cos x\times\cos x+10\sin x\times(\sin x)]10\sin x\cos x(2\sin x\cos x)\}\left/(\sin^2 x+1)^2\right.$
$\phantom{\dfrac{d^2F}{dx^2} }= \dfrac{10(\sin^2 x+1)(\cos^2 x\sin^2x)2\sin^2 x\cos^2 x}{(\sin^2 x+1)^2}$
Let y = arcsin(5x) then sin_{ }y = 5x.
Hence, differentiating implicitly with respect to x, we find
$\cos y\dfrac{dy}{dx} = 5$
so$\dfrac{dy}{dx} = \dfrac{5}{\cos y} = \dfrac{5}{\sqrt{125x^2}}$
Now put
$\dfrac{dy}{dx} = dfrac{5}{\sqrt{125x^2}} = 5(125x^2)^{1/2} = G(x)$
letu = 1 − 25x^{2} and g_{ }(u) = 5u^{−1/2}
so$\dfrac{du}{dx} = 50x$ and $\dfrac{dg}{du} = \dfrac12\times5u^{3/2} = \dfrac{5}{2u^{3/2}}$
Hence, by the chain rule
$\dfrac{d^2F}{dx^2} = \dfrac{dG}{dx} = \dfrac{dg}{du}\times\dfrac{du}{dx} = \dfrac{5}{2u^{3/2}}\times(50x) = \dfrac{125x}{(125x^2)^{3/2}}$
Study comment In order to study this module you should be familiar with the following terms: derivative, differentiate, domain, function and inverse function. You will need to be familiar with the following specific types of function: exponential functions, logarithmic functions, power_mathematicalpower functions, trigonometric functions (cosine, sine, tangent, cosec, sec, cot) and inverse trigonometric functions (arccos, arcsin, arctan). You should also know the meaning of the term radian and be aware of the need to express angles in radians when using them in the arguments of trigonometric functions. You should be able to differentiate power_mathematicalpowers, exponential functions, logarithmic functions and trigonometric functions, and to use the sum_rule_of_differentiationsum rule, constant_multiple_rule_of_differentiationconstant multiple rule, product_rule_of_differentiationproduct rule and quotient_rule_of_differentiationquotient rule of differentiation. If you are unsure of any of these terms then you can review them by referring to the Glossary, which will also indicate where in FLAP they are developed. The following questions will let you establish whether you need to review some of these topics before working through this module.
Question R1
Which of the following formulae can be used to define a function of x? What restrictions are there on the admissible values of x?
(a) f_{ }(x) = x^{5}, (b) y = arcsin_{ }x (i.e. sin_{ }y = x), (c) y^{2} = 4x^{2}.
Answer R1
f_{ }(x) is an acceptable function of x and there are no restrictions on the value of x. Each value of x corresponds to a single value of y.
y is an acceptable function of x, provided x is in the range −1 ≤ x ≤ 1 (this defines the domain of the function). There are many different values of y that could correspond to a given value of x, so to ensure that each admissible value of x corresponds to only a single value of y it is also necessary to impose restrictions on y in this case. Conventionally, y is required to be in the range −π/2 ≤ y ≤ +π/2, i.e. −90° ≤ y ≤ +90° (this defines the codomain of the function).
y is not a function of x since the given formula implies that y = ±2x, so it is not the case that a single value of y corresponds to each value of x.
Question R2
For each of the following, express x as a function of y:
(a) y = 9x^{3}, (b) y = tan_{ }x, (c) y = e^{2x}, (d) y = log_{e}(3x).
Answer R2
(a) x = (y/9)^{1/3} (b) x = arctan_{ }y (c) 2x = log_{e}_{ }y so, x = (log_{e}_{ }y)/2 (d) 3x = e^{y}, so x = e^{y}/3
(If you are unsure of the answers to Questions R1 or R2, consult the entries on functions, trigonometric functions, exponential functions, logarithmic functions and inverse functions in the Glossary.)
Question R3
Define the derivative of a function f_{ }(x) at x = a.
Answer R3
If the expression $\dfrac{f(a + h)  f(a)}{h}$ approaches a unique limiting value as h approaches zero, then that limiting h value is called the derivative of f_{ }(x) at x = a and is written f ′_{ }(a).
Question R4
For each of the functions f_{ }(x) below find the derivative f ′_{ }(x):
(a) 8x^{6} + 6x^{3} − 5x^{2} − 2, (b) 3_{ }sin_{ }x + 4_{ }cos_{ }x.
Answer R4
(a) f ′_{ }(x) = 48x^{5} + 18x^{2} − 10x (differentiation of power_mathematicalpowers).
(b) f ′_{ }(x) = 3_{ }cos_{ }x − 4_{ }sin_{ }x (differentiation of trigonometric functions)
Question R5
Find dy/dx for each of the following:
(a) y = 6e^{x}, (b) y = x^{2} −5_{ }log_{e}_{ }x.
Answer R5
(a) $\dfrac{dy}{dx} = 6\,{\rm e}^x$ (differentiation of exponential functions)
(b) $\dfrac{dy}{dx} = 2x  \dfrac5x$ (differentiation of logarithmic functions)
Question R6
Differentiate the following functions of x:
(a) x^{2}e^{x}, (b) x^{3}sin_{ }x, (c) e^{x}cos_{ }x, (d) $\dfrac{\log_{\rm e}x}{3x^2+x}$ x > 0, (e) $\dfrac{3\cos x}{2+\sin x}$, (f) $\dfrac{x}{2+\cos x}$.
Answer R6
(a) x^{2} × e^{x} + 2x_{ }e^{x} = (x^{2} + 2x)_{ }e^{x} (product_rule_of_differentiationproduct rule)
(b) x^{3}_{ }cos_{ }x + 3x^{2}_{ }sin_{ }x (product_rule_of_differentiationproduct rule)
(c) e^{x} × (−sin_{ }x) + (e^{x}) × cos_{ }x = e^{x}_{ }(−sin_{ }x + cos_{ }x) (product_rule_of_differentiationproduct rule)
(d) $\dfrac{(3x^2+x)\left(\dfrac1x\right)  \log_{\rm e}x\times(6x+1)}{(3x^2+x)^2} = \dfrac{(3x+1)  \log_{\rm e}x\times(6x+1)}{(3x^2+x)^2}$ (quotient_rule_of_differentiationquotient rule)
(e) $\dfrac{(2 + \sin x) \times (3\sin x)  3\cos x \times (\cos x)}{(2 + \sin x)^2} = \dfrac{6\sin x  3\sin^2 x  3\cos^2 x}{(2 + \sin x)^2} = \dfrac{3(2\sin x+1)}{(2 + \sin x)^2}$ (quotient_rule_of_differentiationquotient rule)
(f) $\dfrac{(2+\cos x)\times(1)x\times(\sin x)}{(2+\cos x)^2} = \dfrac{\cos x+2+x\sin x}{(2+\cos x)^2}$ (quotient_rule_of_differentiationquotient rule)
(If you are unsure of the answers to Questions R3 or R6, consult the relevant entries in the Glossary.)
A special note about $\boldsymbol{\sqrt{x\os}}$ Generally in FLAP we follow the convention that $\sqrt{x\os}$ may be positive or negative. Thus $\sqrt{4\os}$ = ±2. A consequence of this convention is that $f(x) = \sqrt{x\os}$ does not define a function since it does not associate a unique value of f_{ }(x) with each value of x. This would be an exceptionally inconvenient convention to follow in this module so instead we adopt the convention that $\sqrt{x\os}$ is positive. Of course, it remains true that the square roots of $\sqrt{x\os}$ may be positive or negative, $\sqrt{x\os}$ or −$\sqrt{x\os}$, so within this convention we will call $\sqrt{x\os}$ the positive square root of x, and not simply the square root. In a similar spirit x^{1/2} = $\sqrt{x\os}$ will also be a positive quantity.
In this subsection, we introduce the concept and notation of a function of a function i by considering the example of a simple harmonic oscillator, i such as a (frictionless) simple pendulum or a weight on an (ideal) spring. At time t the displacement x of such a simple harmonic oscillator from its equilibrium position (x = 0) is given by
x = A_{ }cos(ωt + ϕ)(1)
where A is the amplitude of the oscillation, ω the angular frequency and ϕ the phase constant. The expression inside the brackets, ωt + ϕ, is called the phase; it is a function of time, and its value determines the stage the oscillator has reached in its cycle of motion. The oscillator returns to the same position each time the phase increases by 2π. i Now, suppose that A = 5.00 cm, ω = 0.60 s^{−1} and ϕ = π, and that you are asked to calculate the displacement of the oscillator at t = 10 s. To answer this question you would first need to evaluate the phase when t = 10 s. This is given by
ωt + ϕ = 0.60 s^{−1} × 10 s + π = 9.144 (to two decimal places)
and then substitute this value into Equation 1 to find
x = 5.00 cm × cos(9.14) = − 4.94 cm i
Figure 1 Box representation of a function.
In this example, x is a function of the expression (ωt + ϕ), which is itself a function of t. For this reason x is said to be a function of a function of t, or a composite function of t.
In Subsection 2.2 we will see how to differentiate such expressions, but for the moment we concentrate on reviewing the concept of and notation for a function of a function.
The use of boxes to represent the action of functions is helpful here. Figure 1 shows, in this form, the three functions f_{ }(t) = 5t + 1, f_{ }(t) = t^{6}, f_{ }(t) = sin_{ }t.
In each case the function converts an input value (the argument of the function) into an output value of the function. It is an inherent property of functions that a single output value corresponds to each valid input.
Figure 2 Composite functions.
For the function of a function we use two boxes in series. Figure 2 shows the action of the two composite functions sin(5t + 1) and cos(ωt + ϕ).
In each case the output from the first box is used as the input for the second box.
Figure 3 General composite function.
In general, we can consider a composite function f_{ }(g_{ }(t)) as depicted in Figure 3. f_{ }(g_{ }(t)) is read as ‘f of g of t’. The composite function can be made more user–friendly by writing u = g_{ }(t) so that the output is f_{ }(u). Hence, if we consider the composite function sin(5t + 1), we can write g_{ }(t) = 5t + 1 so that f_{ }(g_{ }(t)) = sin(g_{ }(t)) and we can denote g_{ }(t) by u so that f_{ }(u) = sin_{ }u where, in this case, u = 5t + 1. i
Question T1
Draw a box representation of the following functions:
(a) cos(3t − 4), (b) (t^{4} + 2)^{3}.
Figure 8 See Answer T1.
Answer T1
The box representations of the functions are shown in Figure 8.
There are two observations that you may find useful when trying to determine whether or not a function is a composite. First, decide if the function definition can be read naturally by using the word ‘of’. For example, in
h_{ }(x) = log_{e}(x^{2}) (x ≠ 0) i
the right–hand side can be read as ‘log to base e of (x squared)’, which helps to identify h_{ }(x) as a composite f_{ }(g_{ }(x)), i where
f_{ }(x) = log_{e}_{ }x
andg_{ }(x) = x^{2}
Second, think about how you would calculate function values on a calculator. For h_{ }(x) = log_{e}(x^{2}), you would proceed as follows:
first enter the value of x and square it, then find the natural logarithm log_{e} of the result.
Composite function  Read as ...  First ...  then ... 

tan(3x)  ‘tan of 3x’  find 3x  take tan (of the result) 
log_{e}(1/x)  ‘log_{e} of 1/x’  find 1/x  take log_{e} (of the result) 
e^{sin x}  ‘exp of sin_{ }x’  find sin_{ }x  take exp (of the result) 
A function of a function always involves applying first one process, then another to the result of the first. Table 1 shows some examples of composite functions.
The following is a very important question. Make sure that you understand it before continuing.
Question T2
For each of the following functions, decide whether F_{ }(x) is a composite function. If F_{ }(x) is composite, express F in the form f_{ }(g_{ }(x)), by writing down explicit expressions for u = g_{ }(x) and f_{ }(u).
(a) F_{ }(x) = e^{2x}
(b) F_{ }(x) = e^{x}sin_{ }x
(c) F_{ }(x) = log_{e}(x^{3})
(d) F_{ }(x) = sin(x^{2} + 2x + 1)
(e) F_{ }(x) = sin^{2}x (Remember that sin^{2}x means (sin_{ }x)^{2})
(f) F_{ }(x) = sin^{3}x
(g) F_{ }(x) = (cos_{ }x)^{0.5}
Answer T2
(a) Composite; g_{ }(x) = u = 2x, f_{ }(u) = e^{x}
(b) Not composite; F is a product
(c) Composite; the log of x cubed
u = g_{ }(x) = x^{3}, f_{ }(u) = log_{e}_{ }u
(d) Composite; u = g_{ }(x) = x^{2} + 2x + 1, f_{ }(u) = sin_{ }u
(e) Composite; the square of sin_{ }x
u = g_{ }(x) = sin_{ }x, f_{ }(u) = u^{2}. (It is also a product.)
(f) Composite; u = g_{ }(x) = sin_{ }x, f_{ }(u) = u^{3} (It is also a product)
(g) Composite; u = g_{ }(x) = cos_{ }x, f_{ }(u) = u^{0.5}
Comment Two points are worthy of comment to save you from possible errors. In general f_{ }(g_{ }(x)) ≠ g_{ }(f_{ }(x)). The order in which the functions are applied is important. i
This is easily illustrated by the following example. When f is the function ‘add 3’ and g is the function ‘square’ then g_{ }(f_{ }(x)) = (x + 3)^{2} but f_{ }(g_{ }(x)) = x^{2} + 3. The only value of x for which (x + 3)^{2} = x^{2} + 3 is x = −1, as you can verify, so it is generally true that f_{ }(g_{ }(x)) ≠ g_{ }(f_{ }(x)). There are some pairs of functions for which f_{ }(g_{ }(x)) = g_{ }(f_{ }(x)); for example if g is ‘cube’ and f is ‘square’ then f_{ }(g_{ }(x)) = (x^{3})^{2} = x^{6} and g_{ }(f_{ }(x)) = (x^{2})^{3} = x^{6}, also. These are exceptions, however.
✦ Does f_{ }(g_{ }(x)) = g_{ }(f_{ }(x)) for the functions g_{ }(x) = 2x + 1, f_{ }(x) = 3x + 2?
✧ f_{ }(g_{ }(x)) = f_{ }(u) = 3u + 2 = 3_{ }(2x + 1) + 2 = 6x + 3 + 2 = 6x + 5
g_{ }(f_{ }(x)) = g_{ }(u) = 2u + 1 = 2_{ }(3x + 2) + 1 = 6x + 4 + 1 = 6x + 5
Hence f_{ }(g_{ }(x)) = g_{ }(f_{ }(x)) in this case.
Comment When dealing with a composite function f_{ }(g_{ }(x)), care must be taken to ensure that the function is only applied to admissible values of x, i.e. to values of x that are within the domain of the composite function.
Consider the following three examples.
g_{ }(x) = x^{2} + 1, f_{ }(x) = log_{e}(x)
Here f_{ }(g_{ }(x)) = log_{e}(x^{2} + 1). The logarithmic function log_{e}(x) is defined only if x > 0, that is, only if the input to the function is positive.
However, in this case x^{2} + 1 > 0 for all x, so the composite function is well defined for all (real) values of x.
g_{ }(x) = x^{2} −1, f_{ }(x) = x^{1/2}
Here f_{ }(g_{ }(x)) = (x^{2} −1)^{1/2}.
Any input value x will lead to a value of g_{ }(x), but the input to the function f must be nonnegative. Hence values of x that satisfy x ≥ 1 or x ≤ −1 are admissible, but values such that −1 < x < 1 are excluded from the domain of f_{ }(g_{ }(x)).
g_{ }(x) = sin(x), f_{ }(x) = log_{e}(x)
Here f_{ }(g_{ }(x)) = log_{e}(sin(x)).
The values of x for which sin(x) ≤ 0 are not admissible since they provide an unacceptable input for the log_{e} function. i
Figure 4 The function log_{e}(sin(x)).
The box diagram presents a useful check. In Figure 4 we show the function log_{e}(sin(x)).
✦ What are the entry requirements for each box in Figure 4?
✧ The input to the first box can be any real number but the input to the second box must be positive. Therefore, only those values of x which lead to a positive value of sin_{ }x are acceptable and will allow a successful evaluation of log_{e}(sin(x)).
Question T3
If f_{ }(x) = (x + 1)^{1/2} and g_{ }(x) = log_{e}_{ }x what are the restrictions on x in order that we may define f_{ }(g_{ }(x)) and g_{ }(f_{ }(x))?
Answer T3
f_{ }(x) is defined only for x ≥ −1; g_{ }(x) is defined only for x > 0
f_{ }(g_{ }(x)) defined only for those x for which log_{e}_{ }x > −1, i.e. x > 1/e
g_{ }(f_{ }(x)) always defined if x > −1, for then f_{ }(x) > 0
It is often necessary to differentiate a function of a function. This can sometimes be achieved by using basic differentiation techniques. Here, we will consider two special cases where this is possible, and then we will generalize the results to provide a powerful general rule (the chain rule) that can be used to differentiate any function of a function.
Consider the function sin^{2}x.
This can be regarded as a function of a function, for if we write g_{ }(x) = sin(x) and f_{ }(x) = x^{2}
thenf_{ }(g_{ }(x)) = (sin_{ }x)^{2} = sin^{2}x
However, it can also be regarded as a product since sin^{2}x = sin_{ }x × sin_{ }x, so it can be differentiated by means of the product rule to give
$\dfrac{d}{dx}(\sin^2 x) = \dfrac{d}{dx}(\sin x\times\sin x) = (\cos x\times\sin x) + (\sin x\times\cos x)$
i.e.$\dfrac{d}{dx}(\sin^2 x) = 2\sin x\cos x$
Now, the derivative of a function does not depend on how we choose to ‘regard’ the function. So, in this particular case, we have been able to use the product rule to find the derivative of a function of a function.
Similarly, the function cos^{2}x can be considered as a product, so
$\dfrac{d}{dx}(\cos^2 x) = \dfrac{d}{dx}(\cos x\times\cos x) = (\sin x\times\cos x) + [(\cos x\times(\sin x)] = 2\cos x\sin x$
and$\dfrac{d}{dx}(x^3+ 4)^2 = \dfrac{d}{dx}[(x^3+4)\times(x^3+4)] = 3x^2(x^3+ 4) + (x^3+ 4)\times 3x^2 = 2(x^2+4)\times 3x^2$
In each of these three cases the pattern is the same; we start with an expression of the form:
q_{ }(x) = (function of x)^{2}
and we find that:
$\dfrac{dq}{dx}$ = 2_{ }(function of x) × (derivative of function)
So, ifq_{ }(x) = [p_{ }(x)]^{2}
thenq_{ }′_{ }(x) = 2p_{ }(x) × p_{ }′_{ }(x)
Question T4
Find the derivatives of the following composite functions:
(a) q_{ }(x) = (2x − 3)^{2}, (b) q_{ }(x) = (3x^{4} + 1)^{2}, (c) q_{ }(x) = (x + sin_{ }x)^{2}.
Answer T4
(a) dq/dx = 2_{ }(2x − 3) × 2 = 4_{ }(2x − 3) (b) dq/dx = 2_{ }(3x^{4} + 1) × 12x^{3} = 24x^{3}(3x^{4} + 1) (c) dq/dx = 2_{ }(x + sin_{ }x) × (1 + cos_{ }x)
The function log_{e}(x^{3}) can be regarded as a function of a function, but thanks to the special properties of logarithmic functions it can also be written as 3_{ }log_{e}_{ }x, and it then follows from the constant multiple rule that
$\dfrac{d}{dx}[\log_{\rm e}(x^3)] = 3 \times \dfrac{d}{dx}[\log_{\rm e}(x)] = 3 \times \dfrac1x = \dfrac3x$
So, once again, we have been able to use a technique of basic differentiation to find the derivative of a function of a function. In this case it would have been tempting to have taken the result that the derivative of log_{e}(x) is 1/x and to have concluded that the derivative of log_{e}_{ }x^{3} is 1/x^{3}. But this is clearly wrong. In fact, the correct answer, $\dfrac3x = \dfrac{1}{x^3} \times 3x^2$ and the ‘correction factor’ of 3x^{2} is the derivative of the function x^{3}.
✦ What is the derivative of log_{e}(x^{5})?
✧ log_{e}_{ }(x^{5}) = 5_{ }log_{e}_{ }x and the derivative is 5/x. (Once again it is worth noticing that this answer may be written as 1 ×(5x^{4})x^{5} where the final factor (5x^{4}) is the derivative of the ‘inner’ function x^{5}).
We can summarize this result as follows:
ifq_{ }(x) = log_{e}_{ }[p_{ }(x)]
then$q'(x) = \dfrac{1}{p(x)}\times p'(x)$
The two boxed results given above are special cases of a general rule for differentiating functions of functions.
That general rule is known as the chain rule.
The chain rule
Ifq_{ }(x) = f_{ }(g_{ }(x))
thenq_{ }′_{ }(x) = f ′_{ }(g_{ }(x)) × g_{ }′_{ }(x)(2a)
Alternatively, if we write
u = g_{ }(x) and q = f_{ }(u)
then we can express the chain rule in the form
$\dfrac{dq}{dx} = \dfrac{dq}{du}\times\dfrac{du}{dx}$(2b)
The chain rule, expressed in either of these equivalent forms is also known as the function of a function rule.
You will also see the rule written in various ‘mixed’ notations such as $\dfrac{dq}{dx} = f'(u)\times\dfrac{du}{dx}$.
When we use the chain rule in the form of Equation 2b it is almost as if we are multiplying together two fractions, dq/du and du/dx, and cancelling the du terms to leave dq/dx. We most definitely are not doing this, but it must be admitted that the idea makes the rule easier to remember!
All of the results obtained earlier in this subsection using the product rule, or the special properties of logarithmic functions, can also be obtained from the chain rule. For example, if we look again at the function q_{ }(x) = sin^{2}x but we now identify g_{ }(x) = u = sin_{ }x and q = u^{2}, the chain rule tells us that
$q'(x) = \dfrac{dq}{du} \times \dfrac{du}{dx} = 2u\times\cos x = 2\sin x\cos x$
Similarly, in the second example, if q_{ }(x) = (x^{3} + 4)^{2} and we identify u = x^{3} + 4 and q = u^{2} then
$q'(x) = \dfrac{dq}{du} \times \dfrac{du}{dx} = 2u \times (3x^2) = 2(x^3+ 4) \times 3x^2= 6x^2(x^3+ 4)$
Also, if q_{ }(x) = log_{e}(x^{3}) and we identify u = x^{3} and q = log_{e} u then
$q'(x) = \dfrac{dq}{du} \times \dfrac{du}{dx} = \dfrac1u \times (3x^2) = \dfrac{3x^2}{x^3} = \dfrac3x$
Moreover, the chain rule can be applied to many other composite functions that could not be differentiated using more elementary techniques. We can summarize the steps involved in applying the chain rule as follows:
To differentiate a function of a function q(x) = f_{ }(g_{ }(x)) using the chain rule:
1 Identify u = g_{ }(x) and q = f_{ }(u)
2 Differentiate to find $\dfrac{du}{dx}\quad\text{and}\quad\dfrac{dq}{du}$.
3 Multiply the last two expressions to find $\dfrac{dq}{dx}$
4 Rewrite u in terms of x and simplify. i
Here are some worked examples to show how this procedure works in practice.
Find the derivative of e^{sin x}.
Letu = sin_{ }x and q = e^{u}
then$\dfrac{du}{dx} = \cos x,~~~\dfrac{dq}{du} = {\rm e}^u$
so$\dfrac{dq}{dx} = \dfrac{dq}{du}\times\dfrac{du}{dx} = {\rm e}^u\times\cos x$
thus$\dfrac{dq}{dx} = {\rm e}^{\sin x} \times \cos x = {\rm e}^{\sin x}\,\cos x$
Find the derivative of sin(x^{2} + 1).
Letu = x^{2} + 1 and q = sin_{ }u
then$\dfrac{du}{dx} = 2x,~~~\dfrac{dq}{du} = \cos u$
so$\dfrac{dq}{dx} = \cos u \times 2x$
thus$\dfrac{dq}{dx} = \cos(x^2+1)\times 2x = 2x\cos(x^2+1)$
Question T5
Using the chain rule, find the derivatives of the following functions:
(a) e^{2x}, (b) exp(x^{2}), (c) (x^{2} + 1)^{5}, (d) sin(6x), (e) cos(3x), (f) log_{e}(e^{x}), (g) log_{e}(1 + x^{2}), (h) cos(ωt + ϕ).
Answer T5
(a) 2e^{2x}
(b) 2x_{ }exp(x^{2})
(c) 5_{ }(x^{2} + 1)^{4} × 2x = 10x_{ }(x^{2} + 1)^{4}
(d) 6_{ }cos(6x)
(e) −3_{ }sin(3x)
(f) $\dfrac{1}{{\rm e}^x}\times{\rm e}^x= 1$
(g) 2x/(1 + x^{2})
(h) −ω_{ }sin(ωt + ϕ)
In practice you may have to deal with much nastier functions, and they may include functions of functions of functions or worse! This is where the chain rule really justifies its name since we can go on applying it as though adding links to a chain. For example, if q = f_{ }(g_{ }(h_{ }(x))) then we can let v = h_{ }(x), u = g_{ }(v) and q = f_{ }(u) and use the chain rule to obtain
$\dfrac{dq}{dx} = \dfrac{dq}{du} \times \dfrac{du}{dv} \times {dv}{dx} = f'(u)\times g'(v)\times h'(x)$
In practice, when faced with this kind of problem, it is often easier to just repeatedly apply the usual two–step form of the chain rule. Part (c) of the next question will give you the chance to try this for yourself.
✦ Differentiate the following composite functions, which all arise in physical problems, with respect to the indicated variable.
(a) The gaussian_integralGaussian function, $y = \dfrac{1}{\sigma\sqrt{2\pi\os}}{\rm exp}[(xm)^2/(\sigma^2)]$ with respect to x, where σ, m and π are constants.
(b) The Boltzmann factor, y = e^{−E/kT} with respect to T, where E and k are constants.
(c) The plancks_functionPlanck function $y = \dfrac{2hc^2}{\lambda^5} \dfrac{1}{(e^{hc/\lambda kT}  1)}$ with respect to λ, where h, c, k and T are all constants.
✧ (a) $\dfrac{dy}{dx} = \dfrac{1}{\sigma\sqrt{2\pi\os}}{\rm{exp}}[(xm)^2/(2\sigma^2)]\times \dfrac{d}{dx}\left[\dfrac{(xm)^2}{2\sigma^2}\right]$
(a) $\phantom{\dfrac{dy}{dx} }= \dfrac{1}{\sigma\sqrt{2\pi\os}}{\rm{exp}}[(xm)/(2\sigma^2)]\times\left[\dfrac{2(xm)}{2\sigma^2}\right]$
(a) $\phantom{\dfrac{dy}{dx} }= \dfrac{(xm)}{\sigma^3\sqrt{2\pi\os}}{\rm{exp}}[(xm)/(2\sigma^2)]$
(b) $\dfrac{dy}{dT} = {\rm e}^{E/kT}\times\dfrac{d}{dT}\left(\dfrac{E}{kT}\right) = \dfrac{E}{kT^2}{\rm e}^{E/kT}$
(c) Using the product rule, we obtain:
$\dfrac{dy}{d\lambda} = \dfrac{d}{d\lambda}\left(\dfrac{2hc^2}{\lambda^5}\right)\times\dfrac{1}{({\rm e}^{hc/\lambda kT}1)} + \dfrac{2hc^2}{\lambda^5}\times\dfrac{d}{d\lambda}\left[\dfrac{1}{({\rm e}^{hc/\lambda kT}1)}\right]$
$\phantom{\dfrac{dy}{d\lambda} }= \dfrac{10hc^2}{\lambda^6}\times\dfrac{1}{({\rm e}^{hc/\lambda kT}1)} + \dfrac{2hc^2}{\lambda^5}\times\dfrac{d}{d\lambda}\left[({\rm e}^{hc/\lambda kT}1)^{1}\right]$
Now, applying the chain rule to the final term, we find:
$\dfrac{dy}{d\lambda} = \dfrac{10hc^2}{\lambda^6}\times\dfrac{1}{({\rm e}^{hc/\lambda kT}1)} + \dfrac{2hc^2}{\lambda^5}\times\left[({\rm e}^{hc/\lambda kT}1)^{2}\right]\times\dfrac{d}{d\lambda}({\rm e}^{hc/\lambda kT}1)$
Applying the chain rule again, to the new final term:
$\dfrac{dy}{d\lambda} = \dfrac{10hc^2}{\lambda^6}\times\dfrac{1}{({\rm e}^{hc/\lambda kT}1)} + \dfrac{2hc^2}{\lambda^5}\times\left[\dfrac{1}{({\rm e}^{hc/\lambda kT}1)^{2}}\right] \times{\rm e}^{hc/\lambda kT}\dfrac{d}{d\lambda}\left(\dfrac{hc}{\lambda kT}\right)$
$\phantom{\dfrac{dy}{d\lambda} }= \dfrac{10hc^2}{\lambda^6}\times\dfrac{1}{({\rm e}^{hc/\lambda kT}1)} + \dfrac{2hc^2}{\lambda^5}\times\left[\dfrac{1}{({\rm e}^{hc/\lambda kT}1)^{2}}\right] \times{\rm e}^{hc/\lambda kT}\left(\dfrac{hc}{\lambda^2 kT}\right)$
$\phantom{\dfrac{dy}{d\lambda} }= \dfrac{2hc^2}{\lambda^6({\rm e}^{hc/\lambda kT}1)}\left[\dfrac{hc}{\lambda kT}\dfrac{{\rm e}^{hc/\lambda kT}}{({\rm e}^{hc/\lambda kT}1)}5\right]$
Functions are often specified explicitly in terms of equations or formulae such as f_{ }(x) = ax^{2} or θ_{ }(t) = ωt + ϕ, where the dependent variable is isolated on the left–hand side as the subject of the equation. However, it is also possible to specify a function implicitly by means of a formula that relates the dependent and independent variables, but does not isolate the dependent variable as the subject. For instance, the formula
$\sqrt{\dfrac ya}x = 0$(3)
implicitly defines y as a function of x, even though it does not do so explicitly. In this particular case a little
algebraic manipulation soon leads to the explicit relationship y = ax^{2}, but there are also cases where an implicitly defined function has no explicit representation at all. i In general, a dependent variable y will be defined implicitly as a function of an independent variable x if x and y are related by an equation of the form
F_{ }(x, y) = 0
where F_{ }(x, y) is a function of both x and y. A function y_{ }(x) defined in this way is called an implicit function.
The chain rule makes it possible to differentiate implicit functions by means of a technique known as implicit differentiation. As a simple example, suppose that y is defined as an implicit function of x by the equation
y^{3} = x^{5}
Differentiating both sides of this equation (with respect to x) gives us
$\dfrac{d}{dx}(y^3) = 5x^4$
But, if we put u = y^{3} and use the chain rule $\dfrac{du}{dx} = \dfrac{du}{dy}\times \dfrac{dy}{dx}$ we find
$\dfrac{d}{dx}(y^3) = 3y^2\dfrac{dy}{dx}$
thus$3y^2\dfrac{dy}{dx} = 5x^4$ and hence $\dfrac{dy}{dx} = \dfrac{5x^4}{3y^2}$
We can now use the original relationship between x and y to express the right–hand side entirely in terms of x. In this case, y^{2} = x^{10/3}
so$\dfrac{dy}{dx} = \dfrac53x^{2/3}$
In physics, implicit differentiation often arises in proofs and derivations, and frequently involves functions that have no exact explicit representation.
Question T6
Use the technique of implicit differentiation to find dy/dx if y^{5} = sin_{ }x. Leave your answer as an expression in both x and y.
Answer T6
$5y^4\dfrac{dy}{dx} = \cos x$, so $\dfrac{dy}{dx} = (\cos x)/5y^4$
This subsection shows how the chain rule can be used to differentiate inverse functions such as the inverse trigonometric function arcsin_{ }x. However, before introducing the general method for differentiating such functions we consider a simple problem that illustrates a useful ancillary rule.
✦ If y = x^{1/2}, write down dy/dx. i Then write down an expression for x in terms of y, and hence find dx/dy as a function of y. Finally, express dx/dy in terms of x.
✧ Using the rule for differentiating powers:
$\dfrac{dy}{dx} = \dfrac12x^{1/2} = \dfrac{1}{2\sqrt{2}}$
$x = y^2$, so $\dfrac{dy}{dx} = 2y$.
In terms of x, $\dfrac{dx}{dy} = 2\sqrt{x}$
Notice that the expression for $\dfrac{dy}{dx}$ in the last question is the reciprocal of that for $\dfrac{dx}{dy}$. This is illustrative of a very useful general rule, the inversion rule:
the inversion rule: $\dfrac{dy}{dy} = 1\left/\left(\dfrac{dy}{dx}\right)\right.$(4) i
This looks as if we are finding the reciprocal of a fraction dy/dx. That is definitely not what we are doing, but it does make the rule easy to remember.
In a few cases the inversion rule is sufficiently powerful on its own to enable us to differentiate some inverse functions. For instance, using the inversion rule we can differentiate log_{e} x, the inverse function of e^{x}. If y = log_{e} x, then x = e^{y} and dx/dy = e^{y}. Now, using this result together with the inversion rule,
$\dfrac{d\log_{\rm e}x}{dx} = \dfrac{dy}{dx} = 1\left/\left(\dfrac{dx}{dy}\right)\right. = \dfrac{1}{{\rm e}^y} = \dfrac1x$
Figure 5 The graph of y = arcsin_{ }x.
Often, though, the inversion rule is not enough and we have to use the chain rule to differentiate inverse functions. As an example, consider the problem of finding the derivative dy/dx when
y = arcsin_{ }x i
The graph of this function is shown in Figure 5. Taking the sine of both sides gives us
sin_{ }y = sin(arcsin_{ }x) = x
Now differentiate both the right and left–hand sides of this equation with respect to x. The right–hand side is simply 1, but to differentiate the left–hand side we have to apply the chain rule.
If we let z = sin_{ }y, $\dfrac{dz}{dx} = \dfrac{dz}{dy}\times\dfrac{dy}{dx} = \cos y\times\dfrac{dy}{dx}$
Hence, the result of differentiating both sides of the equation sin_{ }y = x is
f_{ }(x)  f ′_{ }(x) 

arcsin_{ }x  $\dfrac{1}{\sqrt{1x^2}}$ 
arccos_{ }x  $\dfrac{1}{\sqrt{1x^2}}$ 
arctan_{ }x  $\dfrac{1}{1+x^2}$ 
arcsec_{ }x  $\dfrac{1}{x\sqrt{x^21}}$ 
arccosec_{ }x  $\dfrac{1}{x\sqrt{x^21}}$ 
arccot_{ }x  $\dfrac{1}{1+x^2}$ 
$\cos y\times\dfrac{dy}{dx} = 1$
so that$\dfrac{dy}{dx} = \dfrac{1}{\cos y}$
All that remains is to express the right–hand side in terms of x. To do this note that cos^{2}y = 1 − sin^{2}y = 1 − x^{2}, so $\cos y = \pm\sqrt{1x^2}$.
Now, an examination of Figure 5 shows that the graph of y = arcsin_{ }x has a positive gradient throughout its domain of definition, so only positive values of cos_{ }y are admissible and hence we must use the positive square root when writing the final answer.
Thus$\dfrac{dy}{dx} = \dfrac{1}{\sqrt{1x^2}}$
Table 2 records this result together with the derivatives of some other inverse functions.
Finally, let us look at a more complicated example that uses both the chain rule and the inversion rule.
Figure 6 Motion of an object released from an aircraft.
Figure 6 shows the trajectory of a falling object released at point O from an aircraft moving horizontally with a constant speed u. The tangent at any point on the trajectory is inclined at an angle θ to the horizontal as shown, and this angle increases throughout the fall. What is the rate of change of θ with time?
Assuming that air resistance may be neglected, and using the coordinate system shown in Figure 6, in which x increases to the right and y increases downwards, the components of velocity in the horizontal and vertical direction will be
$\dfrac{dx}{dt} = u\quad\text{and}\quad\dfrac{dy}{dt} = gt$
where g is the magnitude of the acceleration due to gravity.
Now, you should be able to see from Figure 6 that tan_{ }θ = dy/dx. Bur using the chain rule and the inversion rule we find
$\dfrac{dy}{dx} = \dfrac{dy}{dt}\times\dfrac{dt}{dx} = \dfrac{dy}{dt}\left/\dfrac{dx}{dt}\right. = \dfrac{gt}{u}$
Thus,$\tan\theta = \dfrac{gt}{u}$
and from this we obtain $\theta = \arctan\left(\dfrac{gt}{u}\right)$
So, to find the rate of change of θ with t, i.e. $\dfrac{d\theta}{dt}$, we need to differentiate the inverse function $\arctan\left(\dfrac{gt}{u}\right)$.
To do this we first take the tangent of both sides:
$\tan\theta = \tan\left[\arctan\left(\dfrac{gt}{u}\right)\right] = \dfrac{gt}{u}$
and then differentiate with respect to t. The right–hand side gives g/u, so applying the chain rule to the lefthand
side we obtain
$\sec^2\theta \times \dfrac{d\theta}{dt} = \dfrac gu$
so$\dfrac{d\theta}{dt} = \dfrac{g}{u\sec^2\theta}$
Now we only need to express sec^{2}θ in terms of t, and we can do this using a standard trigonometric identity i and the expression for tan_{ }θ we obtained earlier: $\sec^2\theta = 1 + \tan^2\theta = 1 + \dfrac{g^2t^2}{u^2}$
Thus$\dfrac{d\theta}{dt} = \dfrac gu\times \dfrac{1}{\left(1+\cfrac{g^2t^2}{u^2}\right)} = \dfrac{gu}{u^2+g^2t^2}$
A word of caution If you differentiate the function θ = arctan(t) then, as Table 2 indicates, you should find that $\dfrac{d\theta}{dt} = \dfrac{1}{1+t^2}$. It would be quite wrong to conclude from this that the process of differentiating $\theta = \arctan\left(\dfrac{gt}{u}\right)$ can be accomplished by simply replacing t on the right–hand side by gt/u. You can obtain the right answer by replacing t by gt/u on both sides, but the safest way is to go through the full method as we have just done.
Question T7
Find the derivative of each of the following functions:
(a) arcsin(x^{2}), (b) arccos(x^{2} + 4), i (c) arctan(3 − x).
Answer T7
y = arcsin(x^{2}), so sin_{ }y = x^{2}
so, differentiating both sides gives us
$\cos y\dfrac{dy}{dx} = 2x$
$\dfrac{dy}{dx} = \dfrac{2x}{\cos y} =\dfrac{2x}{\sqrt{1\sin^2 y}} = \dfrac{2x}{\sqrt{1x^4}}$
Note that we have taken the positive square root expression for cos_{ }y, as in the text, to ensure that dy/dx has the required sign.
There are no (real) values of x for which arccos(x^{2} + 4) is meaningful. The function arccos_{ }u is only defined when its argument u is in the range −1 ≤ u ≤ 1. No x will produce an argument in this range. Moral: don’t just differentiate without thinking first!
y = arctan(3 − x), tan_{ }y = 3 − x
therefore $\sec^2 y \dfrac{dy}{dx} = −1$
therefore$\dfrac{dy}{dx} = \dfrac{1}{\sec^2 y} = \dfrac{1}{1+\tan^2 y} = \dfrac{1}{1+(3x)^2} = \dfrac{1}{106x+x^2}$
It is sometimes useful to express two variables x and y each in terms of a third variable called a parameter. For example, in coordinate geometry i the equation that represents a circle of radius a, centred on the origin, is usually written in the form
x^{2} + y^{2} = a^{2}
However, thanks to the trigonometric identity cos^{2}θ + sin^{2}θ = 1, the same circle can also be represented in terms of the parameter θ by the pair of equations
x = a_{ }cos_{ }θ(5a)
y = a_{ }sin_{ }θ(5b)
where θ may take any value in the range 0 to 2π.
Eliminating θ from Equations 5a and 5b (by squaring and adding the two equations) immediately yields the usual equation of the circle. Equations 5a and 5b are called the parametric equations of the circle. Functions defined in terms of parametric equations are called parametric functions. Whenever we describe the motion of a moving object by specifying its position coordinates x, y and z as functions of time, we are really writing down the parametric equations of the object’s pathway, with time t as the parameter.
Returning to the case of the circle x^{2} + y^{2} = a^{2}, if we want to find dy/dx, the gradient of the tangent at a point on the circle, we can use the parametric equations and employ a variation of the chain rule, namely
$\dfrac{dy}{dx} = \dfrac{dy}{d\theta}\times\dfrac{d\theta}{dx} = \dfrac{dy}{d\theta}\left/\dfrac{dx}{d\theta}\right.$(6)
Now, $\dfrac{dy}{dx} = a\cos\theta$ and $\dfrac{dx}{d\theta} = a\sin\theta$
so we obtain $\dfrac{dy}{dx} = \dfrac{a\cos\theta}{a\sin\theta} = \cot\theta$
This is an example of parametric differentiation. i
Figure 7 Trajectory of a projectile.
As illustrated in Figure 7, a projectile is fired into the air at an angle of 60° to the horizontal with a speed of u = 6 m s^{−1}, so its initial horizontal velocity is u_{x} = u_{ }cos(60°) = 3 m s^{−1}, and its initial vertical velocity is u_{y} = u_{ }sin(60°) = $3\sqrt{3\os}$ m s^{−1}. What is the flight time for the projectile to reach the top of its trajectory (i.e. how long does it take to reach the O point at which the tangent to the trajectory is horizontal)?
If we neglect air resistance, and take upwards as the positive y–direction, the equations describing its trajectory are i
x = u_{x}t and y = u_{y}t − ½ gt^{2}
where x and y are, respectively, the horizontal and vertical displacements from the point of projection at time t, and g is the magnitude of the acceleration due to gravity. The horizontal and vertical components of the velocity are given by
$\dfrac{dx}{dt} = u_x\quad\text{and}\quad\dfrac{dy}{dt} = u_ygt$
At the top of the trajectory the tangent to the trajectory is horizontal, therefore $\dfrac{dy}{dt} = 0$ but, using the chain rule and the inversion rule
$\dfrac{dy}{dx} = \dfrac{dy}{dt}\times\dfrac{dt}{dx} = \dfrac{dy}{dt}\left/\dfrac{dx}{dt}\right. = \dfrac{u_ygt}{u_x}$
so at the top of the trajectory $\dfrac{u_ygt}{u_x}= 0$, i.e. $t = \dfrac{u_y}{g}$
Question T8
Find the derivative dy/dx for each of the following pairs of parametric equations:
(a) x = a_{ }cos_{ }θ, y = b_{ }sin_{ }θ, (b) x = at^{2}; y = 2at, (c) x = ct, y = c/t.
Answer T8
(a) $\dfrac{dx}{d\theta} = a\sin\theta, \dfrac{dy}{d\theta} = b\cos\theta$
so, $\dfrac{dy}{d\theta} = \dfrac{dy}{d\theta}\times\dfrac{d\theta}{dx} = \dfrac{dy}{d\theta}\left/\dfrac{dx}{d\theta}\right. = \dfrac{b\cos\theta}{a\sin\theta} = \dfrac{b}{a}\cot\theta$
(b) $\dfrac{dx}{dt} = 2at, \dfrac{dy}{dt} = 2a, \dfrac{dy}{dx} = \dfrac{2a}{2at} = \dfrac1t$
(c) $\dfrac{dx}{dt} = c, \dfrac{dy}{dt} = \dfrac{c}{t^2}, \dfrac{dy}{dx} = \dfrac{1}{t^2}$
In the same way that we can differentiate a function f_{ }(x) to obtain its derivative (or derived function) f ′_{ }(x), so we can differentiate the function f ′_{ }(x) to obtain its derivative which is denoted f ′′_{ }(x). This is called the second derivative of f_{ }(x).
Hence iff_{ }(x) = 4x^{3} + 7x^{2} + 6x − 8 it follows that
f ′_{ }(x) = 12x^{2} + 14x + 6
andf ′′_{ }(x) = 24x + 14 i
If we write y = f_{ }(x) and denote its derivative (sometimes called its first derivative in this context) by dy/dx, then an alternative notation for the second derivative is $\dfrac{d^2y}{dx^2}$.i For example, if y = 4_{ }sin(2x) + e^{3x}, then the first derivative is
$\dfrac{dy}{dx} = 8\cos(2x) + 3{\rm e}^{3x}$
and the second derivative is
$\dfrac{dy}{dx}\left(\dfrac{dy}{dx}\right) = \dfrac{d^2y}{dx^2} = 8\times\left[2\sin(2x)\right] + 3\times(3{\rm e}^{3x})$
i.e.$\dfrac{d^2y}{dx^2} = 16\sin(2x) + 9{\rm e}^{3x}$
Notice that the notation $\dfrac{d^2y}{dx^2}$ is a rather natural one since it suggests that the operation of differentiation has been repeated twice. Indeed, the symbol $\dfrac{d}{dx}$ is sometimes referred to as a differential operator since it conveys the instruction to differentiate whatever appears immediately to its right. Also notice the precise position of the superscript 2s in the second derivative symbol; it is the differential operator that is ‘squared’, not the independent variable y.
Some important physical quantities are often thought of as second derivatives. For instance, in kinematics – the study of motion – velocity is defined as the rate of change of position, so $v_x = \dfrac{dx}{dt}$ for example, but acceleration is defined as the rate of change of velocity, so $a_x = \dfrac{dv_x}{dt}$ and consequently we can regard acceleration as a second derivative, with $ax = \dfrac{d^2x}{dt^2}$. Indeed, derivatives with respect to time arise so often in physics that you will often see them denoted by a special notation that uses a dot to indicate differentiation; thus $v_x =\overset{.}{x}(t)\text{ and }a_x= \overset{..}{x}(t)$.
Question T9
Find f ′′_{ }(x) for each of the following functions:
(a) f_{ }(x) = x^{6} − 2x^{2} + 7
(b) f_{ }(x) = ax + b, where a and b are constants
(c) f_{ }(x) = a_{ }sin_{ }x + b_{ }cos_{ }x
(d) f_{ }(x) = e^{3x}
(e) f_{ }(x) = log_{e}(x^{2} + 1)
(f) Rewrite your answers to parts (a) to (e) using $\dfrac{d^2y}{dx^2}$ notation.
Answer T9
(a) f ′_{ }(x) = 6x^{5} − 4x, f ′′_{ }(x) = 30x^{2} − 4
(b) f ′_{ }(x) = a, f ′′_{ }(x) = 0
(c) f ′_{ }(x) = a_{ }cos_{ }x − b_{ }sin_{ }x, f ′′_{ }(x) = −a_{ }sin_{ }x − b_{ }cos_{ }x (Note that f ′′_{ }(x) = −f_{ }(x), in this example)
(d) f ′_{ }(x) = 3_{ }e^{3x} f ′′_{ }(x) = 9_{ }e^{3x}
(e) $f'(x) = \dfrac{2x}{x^2+1}, f''(x) = \dfrac{(x^2+1)\times 22x\times(2x)}{(x^2+1)^2} = \dfrac{22x^2}{(x^2+1)^2}$
(f) This is exactly the same as parts (a) to (e) except that f ′_{ }(x) is replaced by dy/dx and f ′′_{ }(x) is replaced by $\dfrac{dy}{dx}$ in each case.
Question T10
(a) If the x–coordinate of a moving object is given as a function of time by x_{ }(t) = pt + qt^{2}, find expressions for the components of velocity and acceleration in the x–direction.
(b) Find $\overset{..}x(t)$ when x_{ }(t) = A_{ }sin(ωt) and when x_{ }(t) = B_{ }cos(ωt).
Answer T10
v_{ }(t) = dx/dt = p + 2qt, i.e. $\overset{.}{x}(t)$ = p + 2qt; a_{ }(t) = d^{2}x/dt^{2} = 2q, i.e. $\overset{..}{x}(t)$ = 2q
When x_{ }(t) = Asin(ωt), $\overset{.}{x}(t)$ = Aω_{ }cos(ωt) and $\overset{..}{x}(t)$ = −Aω^{2} _{ }sin(ωt).
When x_{ }(t) = B_{ }cos(ωt), $\overset{.}{x}(t)$ = −Bω_{ }sin(ωt) and $\overset{..}{x}(t)$ = −Bω _{ }cos(ωt)
Note that both these expressions for x satisfy the equation $\overset{.}{x}(t)$ = −ω^{2}x.
Assuming that the necessary derivatives exist, we can differentiate a function y = f_{ }(x) as many times as we want. The third derivative is the derivative of the second derivative, the fourth derivative is the derivative of the third derivative and so on. All these are known collectively as higher derivatives, and we define them by
$\dfrac{d^3y}{dx^3} = \dfrac{d}{dx}\left(\dfrac{d^2y}{dx^2}\right), \dfrac{d^4y}{dx^4} = \dfrac{d}{dx}\left(\dfrac{d^3y}{dx^3}\right)$, and so on.
In general, the n^{th} derivative is defined by $\dfrac{d^ny}{dx^n} = \dfrac{d}{dx}\left(\dfrac{d^{n1}y}{dx^{n1}}\right)$(7) i
To be consistent with this notation we should write $\dfrac{dy}{dx}$ as $\dfrac{d^1y}{dx^1}$ but this is never done in practice.
In the alternative functional notation, derivatives higher than the third are usually denoted by lower case Roman numerals: f ′_{ }(x), f ′′_{ }(x), f ′′′_{ }(x), f^{ (iv)}(x) ..., but the n^{th} derivative is usually denoted f^{ (n)}(x). i
Find the first three derivatives of $y=\dfrac{1}{x^3}$.
$\dfrac{dy}{dx} = \dfrac{3}{x^4}$, $\dfrac{d^2y}{dx^2} = \dfrac{+12}{x^5}$, $\dfrac{d^3y}{dx^3} = \dfrac{60}{x^6}$
✦ Find the first three derivatives of x^{ n}, where n ≥ 3. What happens if n = 2?
✧ $\dfrac{dy}{dx} = nx^{n1}$
$\dfrac{d^2y}{dx^2} = n(n1)x^{n2}$
$\dfrac{d^3y}{dx^3} = n(n1)(n2)x^{n3}$
If n = 2 the derivatives are 2x, 2, and 0.
Find the first four derivatives of f_{ }(x) = 3x^{4} − 8x^{3} + 5x^{2} − 6.
f ′_{ }(x) = 12x^{3} − 24x^{2} + 10x
f ′′_{ }(x) = 36x^{2} − 48x + 10
f ′′′_{ }(x) = 72x − 48
f^{ (iv)}(x) = 72 i
Find the n^{th} derivative of f_{ }(x) = e^{3x}.
The first, second and third derivatives are:
f ′_{ }(x) = 3e^{3x}, f ′′_{ }(x) = 3 × 3e^{3x} = 3^{2}e^{3x}, and f ′′′_{ }(x) = 3^{2} × 3e^{3x} = 3^{3}e^{3x}.
It is clear from these that in general, the n^{th} derivative is given by
f^{ (n)}(x) = 3^{n}e^{3x}
Question T11
Find the first four derivatives and the n^{th} derivative of the following functions:
(a) y = f_{ }(x) = 4_{ }e^{5x}
(b) y = 3x^{3}
(c) y = A_{ }cos(2x) + B_{ }sin(2x) where A and B are constants.
(d) y = log_{e}_{ }x where x ≠ 0
Answer T11
(a) $\dfrac{dy}{dx} = f'(x) = 20{\rm e}^{5x}, \dfrac{d^2y}{dx^2} = f''(x) = 100{\rm e}^{5x}$
(a) $\dfrac{d^3y}{dx^3} = f'''(x) = 500{\rm e}^{5x}, \dfrac{d^4y}{dx^4} = f^{({\rm iv})}(x) = 2500{\rm e}^{5x}$
(a) $\dfrac{d^ny}{dx^n} = f^{(n)}(x) = 4\times5^n\times{\rm e}^{5x}$
(b) $\dfrac{dy}{dx} = 9x^2, \dfrac{d^2y}{dx^2} = 18x, \dfrac{d^3y}{dx^3} = 18$
(b) $\dfrac{d^4y}{dx^4} = 0, \dfrac{d^ny}{dx^n} = 0$ for n ≥ 4
(c) $\dfrac{dy}{dx} = 2A\sin(2x) + 2B\cos(2x), \dfrac{d^2y}{dx^2} = 4A\cos(2x)4B\sin(2x)$
(c) $\dfrac{d^3y}{dx^3} = 8A\sin(2x)  8B\cos(2x), \dfrac{d^4y}{dx^4} = 16A\cos(2x)+16B\sin(2x)$
(c) Note that $\dfrac{d^2y}{dx^2} = 2^2y\quad\text{and that}\quad\dfrac{d^4y}{dx^4} = 2^4y$
(c) If n is even $\dfrac{d^ny}{dx^n} = (1)^{n/2}(2)^ny$, if n is odd $\dfrac{d^ny}{dx^n} = (1)^{(n1)/2}(2)^{n1}\dfrac{dy}{dx}$
(d) $\dfrac{dy}{dx} = \dfrac1x, \dfrac{d^2y}{dx^2} = \dfrac{1}{x^2}, \dfrac{d^3y}{dx^3} = \dfrac{2}{x^3}$
(d) $\dfrac{d^4y}{dx^4} = \dfrac{6}{x^2}, \dfrac{d^ny}{dx^n} = \dfrac{(1)^{n1}(n1)(n2)\dots 2}{x^n}$
The techniques we have accumulated so far to obtain f ′_{ }(x) from f_{ }(x) can, in most cases, be applied to f ′_{ }(x) to obtain f ′′_{ }(x) with no major difficulties. There are, however, two points which need great care. First is the fact that
$\dfrac{dx}{dy} = 1\left/\left(\dfrac{dy}{dx}\right)\right.$ is an exception
$\dfrac{d^2x}{dy^2}$ and $1\left/\left(\dfrac{d^2y}{dx^2}\right)\right.$ are not generally equal.
Consider, for example the relationship
$y = \dfrac1x$
Differentiating this expression twice we obtain
$\dfrac{dy}{dx} = \dfrac{1}{x^2}$ and $\dfrac{d^2y}{dx^2} = +\dfrac{2}{x^3}$
Now, if $x = \dfrac1y$, $\dfrac{dx}{dy} = \dfrac{1}{y^2}$ and $\dfrac{d^2x}{dy^2} = +\dfrac{2}{y^3}$
So, while it is true that $\dfrac{dx}{dy} = \dfrac{1}{y^2} = x^2 = 1\left/\left(\dfrac{dy}{dx}\right)\right.$
it is also the case that $\dfrac{d^2x}{dy^2} \ne 1\left/\left(\dfrac{d^2y}{dx^2}\right)\right.$ i
since$\dfrac{d^2x}{dy^2} = \dfrac{2}{y^3} = 2x^3$, whereas $1\left/\left(\dfrac{d^2y}{dx^2}\right)\right. = 1\left/\left(\dfrac{2}{x^3}\right)\right. = \dfrac{x^3}{2}$
We also need to take great care over parametric differentiation. We have seen that for the pair of equations
x = a_{ }cos_{ }θ and y = a_{ }sin_{ }θ
$\dfrac{dy}{dx} = \dfrac{dy}{d\theta}\times\dfrac{d\theta}{dx} = \dfrac{dy}{d\theta}\left/\dfrac{dx}{d\theta}\right. = \dfrac{a\cos\theta}{a\sin\theta} = \cot\theta$
But to obtain $\dfrac{d^2y}{dx^2}$ we need to determine $\dfrac{d^2y}{dx^2} = \dfrac{d}{dx}(\cot\theta)$.
This can be done with the aid of the chain rule, either by writing z = −cot_{ }θ and using
$\dfrac{dz}{dx} = \dfrac{dz}{d\theta}\times\dfrac{d\theta}{dx}$
or more directly, by writing
$\dfrac{d}{dx}(\cot\theta) = \dfrac{d}{d\theta}(\cot\theta)\times\dfrac{d\theta}{dx}$
In either case we use the inversion rule to replace dθ/dx by the reciprocal of dx/dθ and hence obtain
$\dfrac{d^2y}{dx^2} = \dfrac{d}{d\theta}(\cot\theta)\left/\dfrac{dx}{d\theta}\right. = \dfrac{+\cosec^2\theta}{a\sin\theta} = \dfrac1a\cosec^3\theta$
If x = at^{2} and y = 2at, determine $\dfrac{d^2y}{dx^2}$
$\dfrac{dx}{dt} = 2at\quad\text{and}\quad\dfrac{dy}{dt} = 2a$
so$\dfrac{dy}{dx} = \dfrac{dy}{dt}\times\dfrac{dt}{dx} = \dfrac{dy}{dt}\left/\dfrac{dx}{dt}\right. = \dfrac{2a}{2at} = \dfrac1t$
hence$\dfrac{d^2y}{dx^2} = \dfrac{d}{dx}\left(\dfrac{dy}{dx}\right) = \dfrac{d}{dx}\left(\dfrac1t\right)$
using the chain rule, we find
$\dfrac{d^2y}{dx^2} = \dfrac{d}{dt}\left(\dfrac1t\right)\times\dfrac{dt}{dx} = \dfrac{1}{t^2}\times\dfrac{dt}{dx}$
and using the inversion rule, we find
$\dfrac{d^2y}{dx^2} = \dfrac{1}{t^2}\left/\dfrac{dx}{dt}\right. = \dfrac{1}{t^2}\dfrac{1}{2at} = \dfrac{1}{2at^3}$
It is worth observing that implicit differentiation provides an alternative way of dealing with this example. To adopt this approach start by noting that y^{2} = 4a^{2}t^{2} = 4a × at^{2} = 4ax.
So implicit differentiation of this with respect to x gives us
$2y\dfrac{dy}{dx} = 4a$
A second implicit differentiation, in which $y\dfrac{dy}{dx}$ is treated as a product, gives
$2y\dfrac{d^2y}{dx^2} + 2y\dfrac{dy}{dx}\times\dfrac{dy}{dx} = 0$
so$2\times2at\times\dfrac{d^2y}{dx^2} + 2\dfrac1t\times\dfrac1t = 0$
i.e.$4at\dfrac{d^2y}{dx^2}+\dfrac{2}{t^2} = 0$
hence, as before $\dfrac{d^2y}{dx^2} = \dfrac{2}{t^2}\times\dfrac{1}{4at} = \dfrac{1}{2at^3}$
Question T12
Find $\dfrac{d^2y}{dx^2}$ for each of the following pairs of parametric equations:
(a) x = cos_{ }θ; y = sin_{ }θ, (b) x = a_{ }cos_{ }θ; y = b_{ }sin_{ }θ, _{ }(c) x = ct, y = c/t.
Answer T12
(You may wish to look back at Answer T8 for some of the results used in this answer.)
(a) $\dfrac{dx}{d\theta} = \sin\theta, \dfrac{dy}{d\theta} = \cos\theta$, therefore
(a) $\dfrac{dy}{dx} = \dfrac{\cos\theta}{\sin\theta} = \cot\theta$
(a) $\dfrac{d^2y}{dx^2} = \dfrac{d}{d\theta}(\cot\theta)/(\sin\theta) = \cosec\theta/(\sin\theta) = \dfrac{1}{\sin^2\theta}\times\left(\dfrac{1}{\sin\theta}\right) = \dfrac{1}{\sin^3\theta} = \cosec^3\theta$
(b) $\dfrac{dx}{d\theta} = a\sin\theta, \dfrac{dy}{d\theta} = b\cos\theta$, therefore
(b) $\dfrac{dy}{dx} = \dfrac{b\cos\theta}{a\sin\theta} = \dfrac{b}{a}\cot\theta$
(b) $\dfrac{d^2y}{dx^2} = \left.\dfrac{d}{d\theta}\left(\dfrac ba\cot\theta\right)\right/(a\sin\theta) = \dfrac ba\cosec\theta\left/(a\sin\theta)\right. = \dfrac ba\dfrac{1}{\sin^2\theta}\times\left(\dfrac{1}{a\sin\theta}\right) = \dfrac{b}{a^2\sin^3\theta} = \dfrac{b}{a^2}\cosec^3\theta$
(c) $\dfrac{dx}{dt} = c, \dfrac{dy}{dt} = \dfrac{c}{t^2}$ therefore $\dfrac{dy}{dx} = \dfrac{1}{t^2}$
(c) $\dfrac{d^2y}{dx^2} = \left.\dfrac{d}{dt}\left(\dfrac{1}{t^2}\right)\right/c = +\dfrac{2}{ct^3}$
We will end by tackling a set of related electrical problems – all of which involve a circuit containing an inductor and capacitor (an LC circuit). Working through each of the steps in these problems for yourself will help you to review what you have learned in this module.
In a series LCR circuit the charge q_{ }(t) on the capacitor at time t > 0 satisfies the equation
$L\dfrac{d^2q}{dt^2} + \dfrac1Cq = 0$(8) i
where L and C are constants, known as the inductance and capacitance, respectively.
The first problem we consider is that of showing that
$q(t) = A\cos\left(\dfrac{t}{\sqrt{LC\os}}\right) + B\sin\left(\dfrac{t}{\sqrt{LC\os}}\right)$(9)
satisfies Equation 8 for arbitrary values of the constants A and B.
To do this we need to deduce an expression for d^{2}q/dt^{2} from Equation 9 and substitute it into Equation 8. The first step is to find dq/dt from Equation 9. Now, q_{ }(t) is the sum of two terms, each of which is a function of a function. Taking just the second term and calling it y we have $y = B\sin\left(\dfrac{t}{\sqrt{LC\os}}\right)$ and if we put $u = \dfrac{t}{\sqrt{LC\os}}$
we find y = B_{ }sin_{ }u. From this, we see
$\dfrac{du}{dt} = \dfrac{1}{\sqrt{LC\os}}\quad\text{and}\quad\dfrac{dy}{du} = \cos u$
if we then use the chain rule, we find
$\dfrac{dy}{dt} = \dfrac{dy}{du}\times\dfrac{du}{dy} = B\cos u\times\dfrac{1}{\sqrt{LC\os}} = \dfrac{B}{\sqrt{LC\os}}\cos u = \dfrac{B}{\sqrt{LC\os}}\cos\left(\dfrac{1}{\sqrt{LC\os}}\right)$
✦ If we now repeat the process for the first term in Equation 9, what is its derivative?
✧ If we put $y = A\cos u$, where $u=\dfrac{t}{\sqrt{LC\os}}$, it follows from the chain rule that:
$\dfrac{dy}{dt}=\dfrac{dy}{du}\times\dfrac{du}{dt} = A\sin \times\dfrac{1}{\sqrt{LC\os}} = \dfrac{A}{\sqrt{LC\os}}\sin\left(\dfrac{t}{\sqrt{LC\os}}\right)$
✦ From the above discussion, what is dq/dt from Equation 9?
✧ $\dfrac{dq}{dt} = \dfrac{A}{\sqrt{LC\os}}\sin\left(\dfrac{t}{\sqrt{LC\os}}\right) + \dfrac{B}{\sqrt{LC\os}}\cos\left(\dfrac{t}{\sqrt{LC\os}}\right)$
So we now know dq/dt. We now need to find $\dfrac{d^2q}{dt}$.
✦ What is the derivative of $y = \dfrac{A}{\sqrt{LC\os}}\sin\left(\dfrac{t}{\sqrt{LC\os}}\right)$?
✧ Putting $y = \dfrac{A}{\sqrt{LC\os}}\sin u$, where $u=\dfrac{t}{\sqrt{LC\os}}$, we find using the chain rule:
$\dfrac{dy}{dt}=\dfrac{dy}{du}\times\dfrac{du}{dt} = \dfrac{A}{\sqrt{LC\os}}\cos u\times\dfrac{1}{\sqrt{LC\os}} = \dfrac{A}{LC}\cos\left(\dfrac{t}{\sqrt{LC\os}}\right)$
✦What is the derivative of $y = \dfrac{B}{\sqrt{LC\os}}\cos\left(\dfrac{t}{\sqrt{LC\os}}\right)$?
✧ Using the same method we find:
$\dfrac{dy}{dt} = \dfrac{B}{LC}\sin\left(\dfrac{t}{\sqrt{LC\os}}\right)$
✦ What is $\dfrac{d^2q}{dt}$?
✧ $\dfrac{d^2q}{dt^2} = \dfrac{A}{LC}\cos\left(\dfrac{t}{\sqrt{LC\os}}\right)\dfrac{B}{LC}\sin\left(\dfrac{t}{\sqrt{LC\os}}\right)$
Therefore, if we substitute this result (and Equation 9) into Equation 8,
$q(t) = A\cos\left(\dfrac{t}{\sqrt{LC\os}}\right) + B\sin\left(\dfrac{t}{\sqrt{LC\os}}\right)$(Eqn 9)
$L\dfrac{d^2q}{dt^2} + \dfrac1Cq = 0$(Eqn 8)
we find
$L\dfrac{d^2q}{dt^2} + \dfrac1Cq = L\left[\dfrac{A}{LC}\cos\left(\dfrac{t}{\sqrt{LC\os}}\right)  \dfrac{B}{LC}\sin\left(\dfrac{t}{\sqrt{LC\os}}\right)\right] + \dfrac1C\left[A\cos\left(\dfrac{t}{\sqrt{LC\os}}\right) + B\sin\left(\dfrac{t}{\sqrt{LC\os}}\right)\right]$
$\phantom{L\dfrac{d^2q}{dt^2} + \dfrac1Cq }= \dfrac{A}{C}\cos\left(\dfrac{t}{\sqrt{LC\os}}\right)  \dfrac BC\sin\left(\dfrac{t}{\sqrt{LC\os}}\right) + \dfrac AC\cos\left(\dfrac{t}{\sqrt{LC\os}}\right) + \dfrac BC\sin\left(\dfrac{t}{\sqrt{LC\os}}\right) = 0$
Thus the given expression (Equation 9) does satisfy the equation $L\dfrac{d^2q}{dt^2} + \dfrac1Cq = 0$, irrespective of the values of A and B.
Now we can consider a related problem. Given that Equation 9 provides a solution to Equation 8 for any values of A and B, what are the specific choices of A and B needed to ensure that at time t = 0 the charge on the capacitor has the value q_{0} and the rate of flow of charge in the circuit is zero? In other words, what choices of A and B ensure that
q_{ }(0) = q_{0} and $\dfrac{dq}{dt}(0) = 0$
To satisfy the second of these conditions we require
$\dfrac{A}{\sqrt{LC\os}}\sin(0) + \dfrac{B}{\sqrt{LC\os}}\cos(0) = 0$
i.e.$\dfrac{B}{\sqrt{LC\os}} = 0$
We must therefore choose B = 0, so $q = A\cos\left(\dfrac{t}{\sqrt{LC\os}}\right)$
To satisfy the additional condition that q_{ }(0) = q_{0} we require
A_{ }cos(0) = q_{0} i.e. A = q_{0}
so the solution satisfying both the given initial conditions is $q(t) = q_0\cos\left(\dfrac{t}{\sqrt{LC\os}}\right)$
A function of a function produces an output by applying first one process, then another to an input. In general f_{ }(g_{ }(x)) ≠ g_{ }(f_{ }(x)). The order in which the functions are applied is important.
When dealing with a composite function f_{ }(g_{ }(x)), care must be taken to ensure that the function is only applied to admissible values of x, i.e. to values of x that are within the domain of the composite function.
A function of a function can be differentiated using the Subsection 2.2chain rule, which states that if u = g_{ }(x) and q = f_{ }(u), then
$\dfrac{dq}{dx} = \dfrac{dq}{du} \times \dfrac{du}{dx} = f'(u) \times g'(x)$(Eqn 2)
An implicit function is a function that is defined by means of a relation such as F_{ }(x, y) = 0.
The chain rule makes it possible to differentiate implicit functions by the technique of implicit differentiation.
e.g. ify^{3} = x^{5} then $3y^2\dfrac{dy}{dx} = 5x^4$, so $\dfrac{dy}{dx} = \dfrac{5x^4}{3y^2} = \dfrac53x^{2/3}$
According to the Subsection 2.4inversion rule
$\dfrac{dy}{dx} = 1\left/\left(\dfrac{dx}{dy}\right)\right.$(Eqn 4)
Subsection 2.4Inverse functions can be differentiated by applying the inversion rule and the chain rule.
If x and y are both defined in terms of a parameter θ, then the derivative $\dfrac{dy}{dx}$ may be determined by the technique of parametric differentiation
$\dfrac{dy}{dx} = \dfrac{dy}{d\theta}\times\dfrac{d\theta}{dx} = \dfrac{dy}{d\theta}\left/\dfrac{dx}{d\theta}\right.$(Eqn 6)
If y = f_{ }(x), then the Subsection 3.2nth derivative of y is defined by
$\dfrac{d^ny}{dx^n} = \dfrac{d}{dx}\left(\dfrac{d^{n1}y}{dx^{n1}}\right)$(Eqn 7)
The first four derivatives of f_{ }(x) may also be represented by f ′_{ }(x), f ′′_{ }(x), f ′′′_{ }(x), f^{ (iv)}(x), and the n^{th} derivative by f^{ (n)}(x).
Having completed this module, you should be able to:
Define the terms that are emboldened and flagged in the margins of the module.
Identify a function of a function.
Use the chain rule to find the derivative of a function of a function.
Find the derivative of an inverse function.
Find the derivative of a function defined parametrically or implicitly.
Find the second derivative of a function of a function.
Find the second derivative of an inverse function.
Find the second derivative of a function defined parametrically or implicitly.
Find the n^{th} derivative of a function.
Recognize and use the different notations for higher derivatives.
Study comment You may now wish to take the following Exit test for this module which tests these Achievements. If you prefer to study the module further before taking this test then return to the topModule contents to review some of the topics.
Study comment Having completed this module, you should be able to answer the following questions, each of which tests one or more of the Achievements.
Question E1 (A2)
Which of the following is a function of a function? If it is necessary to restrict the values of x, then say so.
(a) F_{ }(x) = sin(3x) (b) F_{ }(x) = log_{e}(1 − x^{2}) (c) y^{3} = x
Answer E1
(a) Function of a function; read as ‘sin of 3x’.
(b) Function of a function; read as ‘log of (1 − x^{2})’. We require that
1 − x^{2} > 0 so that x^{2} < 1, i.e. −1 < x < 1.
(c) If it is rewritten as y = x^{1/3}; it is a function, read as cube root of x so not a function of a function.
(Reread Subsection 2.1 if you had difficulty with this question.)
Question E2 (A2 and A3)
Find the derivative of:
(i) each of the functions in Question E1
(ii) f_{ }(g_{ }(x)) and g_{ }(f_{ }(x)), where u = g_{ }(x) = x^{3} + 2 and f_{ }(x) = 5x + 4.
Answer E2
(i) (a) 3_{ }cos(3x) (b) $\dfrac{2x}{1x^2}$ (c) $\dfrac{1}{3x^{2/3}}$
(ii) f_{ }(g_{ }(x)) = 5_{ }(x^{3} + 2) + 4 = 5u + 4
$\dfrac{du}{dx} = 3x^2$, f ′_{ }(u) = 5, therefore using the chain rule, the derivative $\dfrac{df}{du}$ is
5 × 3x^{2} = 15x^{2}
g_{ }(f_{ }(x)) = (5x + 4)^{3} + 2, therefore the derivative is
$\dfrac{dg}{dx} = 3(5x + 4)^2 × 5 = 15(5x + 4)^2$
(Reread Subsection 2.2 if you had difficulty with this question.)
Question E3 (A2, A3 and A4)
Find the derivative dy/dx of y = arccos(3x − 2).
Answer E3
cos_{ }y = 3x − 2, $\sin y\dfrac{dy}{dx} = 3$
so$\dfrac{dy}{dx} = \dfrac{3}{\sin y} = \dfrac{3}{\sqrt{1\cos^2 y}} = \dfrac{3}{\sqrt{\smash[b]{1(3x2)^2}}} = \dfrac{3}{\sqrt{9x^2+12x3}}$
Note that we have expressed sin_{ }y in terms of a positive square root to ensure that dy/dx is negative, as is required of the arccos_{ }function.
(Reread Subsection 2.3 if you had difficulty with this question.)
Question E4 (A2, A3 and A5)
Find the derivative dy/dx when $x = 2 + 3\sqrt{2\os}t$ and $y = 1 + 3\sqrt{2\os}t4.9t^2$
Answer E4
$\dfrac{dx}{dt} = 3\sqrt{2\os}$, $\dfrac{dy}{dt} = 3\sqrt{2\os}  9.8t$
therefore$\dfrac{dy}{dx} = \dfrac{3\sqrt{2\os}  9.8t}{3\sqrt{2\os}}$
(Reread Subsection 2.4 if you had difficulty with this question.)
Question E5 (A2 to A8)
Find the second derivatives of the functions in Questions E1, E3 and E4. If it is necessary to restrict the values of x, then say so.
Answer E5
y = sin(3x), $\dfrac{dy}{dx} = 3\cos(3x)$
therefore$\dfrac{d^2y}{dx^2} = −9\sin(3x)$ and 1 ≥ 3x ≥ −1
y = log_{e}(1 − x^{2}), $\dfrac{dy}{dx} = \dfrac{2x}{1x^2}$
therefore$\dfrac{d^2y}{dx^2} = \dfrac{(1x^2)(2)  (2x)(2x)}{(1x^2)^2} = \dfrac{2(1x^2+ 2x^2)}{(1x^2)^2} = \dfrac{2(1+ x^2)}{(1x^2)^2}$ and (1 − x^{2}) ≥ 0 so _{ }x_{ } ≤ 1
$y = x^{1/3}$, $\dfrac{dy}{dx} = \dfrac13x^{2/3}$
therefore$\dfrac{d^2y}{dx^2} = \dfrac{2}{9x^{5/3}}$
cos_{ }y = 3x − 2, $\dfrac{dy}{dx} = \dfrac{3}{(9x^2+12x3)^{1/2}} = f(g(x))$ and 1 ≥ 3x + 2 ≥ −1
where g_{ }(x) = u = −9x^{2} + 12x − 3, $f(u) = \dfrac{3}{u^{1/2}}$
$\dfrac{du}{dx} = 18x+12$, $f'(u) = \dfrac{3}{2u^{3/2}}$
$\dfrac{d^2y}{dx^2} = \dfrac{3}{2(9x^2+12x3)^{3/2}}\times(18x+12) = \dfrac{27x+18}{(9x^2+12x3)^{3/2}}$
$x = 2 + 3\sqrt{2\os}t$, $y = 1 + 3\sqrt{2\os}t  4.9t^2$
$\dfrac{dy}{dx} = \dfrac{3\sqrt{2\os}  9.8t}{3\sqrt{2\os}}$, $\dfrac{d^2y}{dx^2} = \left.\dfrac{d}{dt}\left(\dfrac{3\sqrt{2\os}  9.8t}{3\sqrt{2\os}}\right)\right/3\sqrt{2\os} = \dfrac{9.8}{3\sqrt{2\os}}\times\dfrac{1}{3\sqrt{2\os}} = \dfrac{9.8}{18}$
(Reread Subsections 3.1 and 3.3 if you had difficulty with this question.)
Question E6 (A6 and A9)
Find the first five derivatives and the n^{th} derivative of the following functions:
(a) f_{ }(x) = x^{6} − 2x^{4} − x3 + 6x (b) f_{ }(x) = x_{ }e^{x}
Answer E6
(a) f ′_{ }(x) = 6x^{5} − 8x^{3} − 3x^{2} + 6
f ′′_{ }(x) = 30x^{4} − 24x^{2} − 6x
f ′′′_{ }(x) = 120x^{3} − 48x − 6
f^{ (iv)}(x) = 360x^{2} − 48
f^{ (v)}(x) = 720 x
f^{ (n)}(x) = 0, 3n > 6
(b) f ′_{ }(x) = x e^{x} + 1e^{x} = (x + 1) e^{x}
f ′′_{ }(x) = (x + 1) e^{x} + 1e^{x} = (x + 2) e^{x}
f ′′′_{ }(x) = (x + 2) e^{x} + 1e^{x} = (x + 3) e^{x}
f^{ (iv)}(x) = (x + 4) e^{x}
f^{ (v)}(x) = (x + 5) e^{x}
f^{ (n)}(x) = (x + n) e^{x}, for all n.
(Reread Subsection 3.2 if you had difficulty with this question.)
Study comment This is the final Exit test question. When you have completed the Exit test go back and try the Subsection 1.2Fast track questions if you have not already done so. If you have completed both the Fast track questions and the Exit test, then you have finished the module and may leave it here.
Study comment Having seen the Fast track questions you may feel that it would be wiser to follow the normal route through the module and to proceed directly to the following Ready to study? Subsection.
Alternatively, you may still be sufficiently comfortable with the material covered by the module to proceed directly to the Section 5Closing items.