MAT1001 Differential Calculus: Lecture Notes
Chapter 8 Advanced Topics
This section is non examinable and is included so that you have a feel for how the material in this module can be taken further.
8.1 L’Hôpital’s rule for evaluating limits
We saw in chapter 2 that some limits lead to nonsense expressions. For example, If we were confronted with \(\lim _{x\to 0}\sin (x)/x\), this looks like it will result in \(0/0\) which is does not make sense. Remember that not all limits that look indeterminate really are. For example
\(\seteqnumber{0}{8.}{0}\)\begin{equation*} \lim _{x\to 4}\frac {x^{2}-16}{x-4} \end{equation*}
looks at first glance like it will have the form \(0/0\) since both the numerator and denominator vanish for \(x=4\). However, the numerator can be factored as \(x^{2}-16=(x-4)(x+4)\) so the limit simplifies to
\(\seteqnumber{0}{8.}{0}\)\begin{equation*} \lim _{x\to 4}\frac {x^{2}-16}{x-4}=\lim _{x\to 4}\frac {(x-4)(x+4)}{x-4}=\lim _{x\to 4}(x+4)=8. \end{equation*}
This is why we said that you should try to expand and simplify the function that you are taking the limit of as much as possible.
L’Hôpital1’s rule enable us to make sense of some of those limits which still look indeterminate after they have been simplified. To apply L’Hôpital’s rule, we have to be taking the limit of a ratio of functions \(f(x),g(x)\), where both are differentiable, the derivative of \(g(x)\) does not vanish, and in the limit \(f(x)\) and \(g(x)\) wither both go to zero or both go to infinity. Then we have that
\(\seteqnumber{0}{8.}{0}\)\begin{equation} \lim _{x\to a}\frac {f(x)}{g(x)}=\lim _{x\to a}\frac {f'(x)}{g'(x)}, \label {eq: l'hopital's rule} \end{equation}
so we can replace the ratio of the functions with the ratio of their derivatives. If both of the derivatives still vanish, or diverge, in the limit, then process can be repeated and we end up with more derivatives
\(\seteqnumber{0}{8.}{1}\)\begin{equation*} \lim _{x\to a}\frac {f(x)}{g(x)}=\lim _{x\to a}\frac {f^{(n)}(x)}{g^{(n)}(x)}, \end{equation*}
where the superscript \((n)\) means that we are differentiating the functions \(n\) times.
Note that if the limit does not lead to an indeterminate then L’Hôpital’s rule does not hold!
-
Example 8.1. As a counter example consider the limit
\(\seteqnumber{0}{8.}{1}\)\begin{equation*} \lim _{x\to 1}\frac {f(x)}{g(x)}=\lim _{x\to 1}\frac {x+1}{2x+1}. \end{equation*}
Both \(\lim _{x\to 1}f(x)=2\) and \(\lim _{x\to 1}g(x)=3\) are finite and no-zero. Evaluating the limit directly gives
\(\seteqnumber{0}{8.}{1}\)\begin{equation*} \lim _{x\to 1}\frac {x+1}{2x+1}=\frac {2}{3}. \end{equation*}
We can also calculate the limit of the ratio of derivatives,
\(\seteqnumber{0}{8.}{1}\)\begin{equation*} \lim _{x\to 1}\frac {f'(x)}{g'(x)}\lim _{x\to 1}\frac {1}{2}=\frac {1}{2}\neq \frac {2}{3}. \end{equation*}
So the limit of the ratio does not match the limit of the ratio of derivatives.
As long as our original limit looks like it is indeterminate we can use L’Hôpital’s rule.
We can also evaluate other limits that may not at first look like a ratio of functions.
-
Example 8.3. Consider the limit \(\lim _{x\to -\infty }xe^{x}\) this looks like it becomes the indeterminate \((-\infty )(0)\). If we recall that \(1/e^{x}=e^{-x}\) then we can rewrite the limit as
\(\seteqnumber{0}{8.}{1}\)\begin{equation*} \lim _{x\to -\infty }xe^{x}=\lim _{x\to -\infty }\frac {x}{e^{-x}}, \end{equation*}
which looks like the indeterminate \(-\infty /\infty \). Now we can apply L’Hôpital’s rule to get
\(\seteqnumber{0}{8.}{1}\)\begin{equation*} \lim _{x\to -\infty }\frac {x}{e^{-x}}=\lim _{x\to -\infty }\frac {1}{-e^{-x}}=0, \end{equation*}
since \(1/\infty \) is zero.
8.2 Trigonometric Derivatives in Degrees
At various points in this module I have said that you should always work with angles in radians as this makes life easier when differentiating trig functions. Here I want to discuss how to take the derivative if we are measuring the angle in degrees.
First we need some notation, we will use the subscript \(\text {rad}\) when our function has an argument in degrees and \(\text {deg}\) when our function has an argument in degrees. Then we can assume the result that we were given in chapter 3, but rewritten in this new notation, that
\(\seteqnumber{0}{8.}{1}\)\begin{equation*} \frac {\ud }{\ud x}\sin _{\text {rad}}(x)=\cos _{\text {rad}}(x). \end{equation*}
Now recall that if \(x\) is an angle in radians then the corresponding angle, \(\theta \) in degrees is
\(\seteqnumber{0}{8.}{1}\)\begin{equation*} \theta =\frac {180^{\circ }}{\uppi }x, \qquad \text {or } x=\frac {\uppi }{180^{\circ }}\theta . \end{equation*}
Now we can calculate the derivative of \(\sin _{\text {deg}}\) using the chain rule
\(\seteqnumber{0}{8.}{1}\)\begin{align*} \frac {\ud }{\ud \theta }\sin _{\text {deg}}(\theta )&=\frac {\ud }{\ud \theta }\sin _{\text {rad}}\left (\frac {\uppi }{180^{\circ }}\theta \right )\\ &=\frac {\ud x}{\ud \theta }\frac {\ud }{\ud x}\sin _{\text {rad}}(x)\\ &=\frac {\uppi }{180^{\circ }}\cos _{\text {rad}}(x)\\ &=\frac {\uppi }{180^{\circ }}\cos _{\text {rad}}\left (\frac {\uppi }{180^{\circ }}\theta \right )\\ &=\frac {\uppi }{180^{\circ }}\cos _{\text {deg}}\left (\theta \right ). \end{align*}
The derivatives of other trig functions can be calculated in similar ways. This is why we have to be careful to use radians as we do not want to have to keep track of factors of \(\uppi /180^{\circ }\) every time we differentiate.
There is an interesting discussion of this result and how to think about the difference between trig functions that take arguments in radians and degrees here