Given \(y=e^{\,\large{\text{sin}\,x}}\,\text{sec}\,x\small,\) find \(\displaystyle\small\frac{dy}{dx}\,\small.\)
Express your answer in its simplest form.
This harder example requires both the product rule and the chain rule for the first factor.
Note 1: The \(\text{cos}\,x\,\text{sec}\,x\) disappeared because \(\text{sec}\,x\) is the reciprocal of \(\text{cos}\,x\small,\) so \(\text{cos}\,x\,\text{sec}\,x=1\small.\) When working with the reciprocal trig functions, keep your eyes open for this kind of thing.
Note 2: The factorisation in the last line is just a matter of style preference. The second last line is also a perfectly acceptable final answer.
Note 1: We should not expand the denominator. Expansion is not simplification. Often, it's the reverse!
Note 2: If you prefer, you could write the numerator as \(2(x^2-x+1)\small.\) That's just a style preference.
Example 5 (non-calculator)
Subtopics: Quotient rule, Chain rule
Differentiate \(f(x)={\displaystyle\small\style{font-size:115%}{\frac{e^{\large{1+x^2}}}{1+x^2}}}\,\small.\)
Express the derivative in its simplest form.
This is a slightly harder example of the quotient rule. The numerator requires the chain rule.
For \(y\,\text{cot}\,x-y^3=2x\small,\) use implicit differentiation to obtain an expression for \(\displaystyle\small\frac{dy}{dx}\) in terms of \(x\) and \(y\small.\)
Advanced Higher exam papers don't always say "use implicit differentiation" or tell you that a function "is defined implicitly". If the function has an inseparable combination of \(x\) and \(y\small,\) you should know to differentiate implicitly.
The question won't always remind you that \(\large\frac{dy}{dx}\normalsize\) involves both \(x\) and \(y,\) but that is always the case.
Recall that \(x\) and \(y\) are variables, not constants, so they behave as such in the product, quotient and chain rules.
Note 1: This isn't the only reasonable form for the final answer. For example, we could substitute \(\displaystyle\small\frac{x}{y}\) for \(e^y\) and simplify to \(\displaystyle\small\frac{y}{x(y+1)}\) if we think that looks 'prettier'. Such decisions are often just a matter of personal preference.
Note 2: Although the wording of this question notes that the function is defined implicitly, it does not instruct us to use implicit differentiation. We need implicit differentiation when the \(x\) and \(y\) variables are inseparable, as in example 8 above, but that isn't the case here, because the equation can be rearranged to \(x=y\,e^y\small.\) So we could use the product rule to find \(\displaystyle\small\frac{dx}{dy}\) and then take the reciprocal, giving \(\displaystyle\small\frac{dy}{dx}=\displaystyle\small\frac{1}{e^{y}(y+1)}\small.\) Why not try this for yourself?
Example 10 (non-calculator)
Subtopic: Implicit differentiation
Use implicit differentiation to find \(\displaystyle\small\frac{dy}{dx}\) and \(\displaystyle\small\frac{d^{2}y}{dx^2}\) for the function defined by \(\displaystyle\small\frac{x}{y}\normalsize=y+1\small.\)
So that we can move quickly to finding the second derivative, we have given this function the same left hand side as example 9 above.
Note: As the original equation \(\displaystyle\small\frac{x}{y}\normalsize=y+1\) can, in fact, be expressed as \(x=y^2+y\small,\) implicit differentiation isn't actually needed to find the first and second derivatives. If the question hadn't demanded implicit differentiation, we could have found \(\displaystyle\small\frac{dx}{dy}\) and then used the reciprocal rule for \(\displaystyle\small\frac{dy}{dx}\small,\) yielding \(\displaystyle\small\frac{dy}{dx\normalsize}=\displaystyle\small\frac{1}{2y+1}\small.\) However, a similar approach wouldn't work for the second derivative. You would have to use the quotient rule and chain rule, giving \(\displaystyle\small\frac{d^{2}y}{dx^2}\normalsize=-\displaystyle\small\frac{2}{(2y+1)^3}\small.\) These expressions, in terms of only \(y\small,\) are equivalent to the derivatives obtained in the working above. Why not try it this way for yourself?
Example 11 (non-calculator)
Subtopic: Parametric differentiation
A curve is defined parametrically by \(x=(\text{ln}\,t)^2\small,\) \(y=2\,\text{ln}\,t\small,\) where \(t\!\gt\!0\small.\)
Find and simplify \(\displaystyle\small\frac{dy}{dx}\) and \(\displaystyle\small\frac{d^{2}y}{dx^2}\small.\)
First we differentiate each of the component functions with respect to \(t\):
The position \((x,\,y)\) of a particle moving in two-dimensional space at time \(t\) seconds is given in metres by the parametric equations \(x=2t\small,\,\) \(y=\text{sin}\,t,\,\) where \(t\!\geqslant\!0\small.\)
Find the speed of the particle at time \(2\) seconds, correct to \(3\) significant figures.
This is an example of instantaneous speed.
First we find the component derivatives, with respect to \(t\):
We do not need to find \(\displaystyle\small\frac{dy}{dx}\normalsize\) in this example. We can apply the formula for instantaneous speed, which is just the magnitude of the velocity, hence the obvious resemblance of the formula to Pythagoras' Theorem.
When \(t=2\small,\) the speed is \(\sqrt{4+\text{cos}^{2}\,2\ }\) \(\approx 2.04\) m/s.
Note: If you got \(2.24\) instead of \(2.04,\) set your calculator to radians, not degrees. Calculus always uses radians. For example, the derivative of \(\text{sin}\,t\) is only \(\text{cos}\,t\) when \(t\) is in radians.
Example 13 (non-calculator)
Subtopic: Logarithmic differentiation
A curve is defined by \(y=x^{\large{x^{2}-2}}\,\small.\)
Use logarithmic differentiation to find \(\displaystyle\small\frac{dy}{dx}\small.\)
Express your answer in terms of \(x\small.\)
Advanced Higher exam papers sometimes say "use logarithmic differentiation" or ask you to "differentiate logarithmically." However, the specification says that you should be able to recognise when logarithmic differentiation is required. Usually it is signalled by having \(x\) in an exponent.
The usual method is to take natural logs of both sides, use the Higher log laws to express powers as products, and then to differentiate implicitly.
Let \(e^{\large{y}}=\displaystyle\small\style{font-size:115%}{\frac{(2x-1)\,e^{3x}}{(4x+1)^{2}}}\,\small,\,\) \(x\in\mathbb R\small,\,\) \(x\gt\!\frac{1}{2}\small.\)
Use logarithmic differentiation to find \(\displaystyle\small\frac{dy}{dx}\small.\)
This question may look a lot harder than the previous example, but it isn't really. After taking natural logarithms of both sides, the log laws will simplify it hugely, making the differentiation easier than you might expect.
A spherical balloon of radius \(r\) cm is being inflated by a pump at a constant rate of \(20\) cm3 s–1.
Calculate the rate of change of the radius with respect to time when \(r\!=\!5\small.\)
[Note: a sphere has volume \(V=\frac{4}{3}\pi r^{3}\).]
This question involves related rates of change. We have been told the rate at which the volume is changing with respect to time: \(\large\frac{\textsf{dV}}{\textsf{dt}}\normalsize =20\) cm3 s–1. We are being asked to find the value of \(\large\frac{\textsf{dr}}{\textsf{dt}}\normalsize\) at a specific time.
The key to these types of questions is to use the chain rule:
\(\large\frac{\textsf{dr}}{\textsf{dV}}\normalsize\) is the reciprocal of \(\large\frac{\textsf{dV}}{\textsf{dr}}\normalsize\) so we differentiate the volume formula:
When \(r\!=\!5\small,\) this is \(\large\frac{5}{\pi(5^2)}\normalsize=\large\frac{1}{5\pi}\normalsize\) cm s–1.
Note that units of measurement are required in your final answer. The rate of change of a length in centimetres with respect to a time in seconds will of course be cm s–1.
Example 16 (calculator)
SQA Advanced Higher Maths 2012 Q12 Subtopic: Related rates of change
The radius of a cylindrical column of liquid is decreasing at the rate of \(0.02\) m s–1 while the height is increasing at the rate of \(0.01\) m s–1.
Find the rate of change of the volume when the radius is \(0.6\) metres and the height is \(2\) metres.
[Recall that the volume of a cylinder is given by \(V=\pi r^{2}h\).]
This is another related rates of change question, but unlike the previous example, this question involves two variables. Both the radius and height of the cylinder are changing.
So \(\large\frac{\textsf{dr}}{\textsf{dt}}\normalsize =-0.02\) (negative as it's decreasing) and \(\large\frac{\textsf{dh}}{\textsf{dt}}\normalsize =0.01\) (positive as it's increasing).
We are being asked to find \(\large\frac{\textsf{dV}}{\textsf{dt}}\normalsize\) with given values of \(r\) and \(h\) substituted into it.
It is important to understand that differentiating \(V\) requires the product rule, because both \(r\) and \(h\) are variables.
Differentating \(V\) with respect to \(t\) also requires implicit differentiation, as follows:
$$
\begin{matrix}
u=\pi r^{2} \:&\: v=h \\[6pt]
u'=2\pi r \large\frac{\textsf{dr}}{\textsf{dt}}\normalsize \:&\: v'=1\,.\,\large\frac{\textsf{dh}}{\textsf{dt}}\normalsize \\[6pt]
=2\pi r (-0.02) \:&\: =1(0.01) \\[6pt]
=-0.04\pi r \:&\: =0.01 \\[6pt]
\end{matrix}
$$
A curve is defined by the parametric equations \(x=t^2+t-1\small,\) \(y=2t^2-t+2\) for all \(t\small.\)
Show that the point A\(\,(-1,\,5)\) lies on the curve and obtain an equation of the tangent to the curve at the point A.
To show that the point \((-1,\,5)\) lies on the curve, we need to find a single value of the parameter \(t\) that will give us both \(x\!=\!-1\) and \(y\!=\!5\small.\)
The equation for \(x\) is simpler than the equation for \(y\small,\) so let's start as follows: