Further differentiation, integration and numerical solution
A-Level Mathematics · Pure Mathematics — Further Pure
Standard derivatives
$$\frac{d}{dx}e^{kx}=ke^{kx},\quad \frac{d}{dx}\ln x=\frac{1}{x},\quad \frac{d}{dx}\sin x=\cos x,\quad \frac{d}{dx}\tan x=\sec^{2}x$$Three rules
- Product: $(uv)'=u'v+uv'$;
- Quotient: $\left(\dfrac{u}{v}\right)'=\dfrac{u'v-uv'}{v^{2}}$ — the order in the numerator matters;
- Implicit: differentiate both sides with respect to $x$, treating $y$ as a function of $x$, so $\dfrac{d}{dx}\big(y^{2}\big)=2y\dfrac{dy}{dx}$.
Standard integrals
$$\int\frac{f'(x)}{f(x)}dx=\ln|f(x)|+c,\qquad \int u\,\frac{dv}{dx}dx=uv-\int v\,\frac{du}{dx}dx$$Numerical solution
A sign change of a continuous $f$ between $a$ and $b$ guarantees a root in $(a,b)$. An iteration $x_{n+1}=g(x_{n})$ converges to a root of $x=g(x)$ — so to identify the equation being solved, replace every $x_{n}$ and $x_{n+1}$ by $x$ and rearrange.
Worked example: integration by parts
Evaluate $\displaystyle\int_{0}^{1}xe^{2x}\,dx$, giving the result in exact form.
Solution
Choose $u$ and $\dfrac{dv}{dx}$. Take $u=x$ (its derivative is $1$, which simplifies) and $\dfrac{dv}{dx}=e^{2x}$ (easy to integrate). Then $\dfrac{du}{dx}=1$ and $v=\dfrac{1}{2}e^{2x}$.
$$\int_{0}^{1}xe^{2x}\,dx=\left[\frac{x}{2}e^{2x}\right]_{0}^{1}-\int_{0}^{1}\frac{1}{2}e^{2x}\,dx$$First part: $\dfrac{1}{2}e^{2}-0=\dfrac{e^{2}}{2}$.
Second part:
$$\int_{0}^{1}\frac{1}{2}e^{2x}\,dx=\left[\frac{1}{4}e^{2x}\right]_{0}^{1}=\frac{e^{2}}{4}-\frac{1}{4}$$Combine:
$$\frac{e^{2}}{2}-\left(\frac{e^{2}}{4}-\frac{1}{4}\right)=\frac{e^{2}}{4}+\frac{1}{4}$$With the reverse choice ($u=e^{2x}$), the remaining integral contains $x^{2}e^{2x}$ — harder than the original problem. If after one round of integration by parts the problem becomes more complicated, that is a sign you chose $u$ wrongly; go back and choose again rather than carrying on.
Worked example: implicit differentiation
The curve $x^{2}+3xy+y^{2}=5$ passes through the point $(1,1)$. Find the gradient of the tangent at that point.
Solution
Differentiate both sides with respect to $x$. The term $3xy$ needs the product rule:
$$2x+3\left(y+x\frac{dy}{dx}\right)+2y\frac{dy}{dx}=0$$Substitute the coordinates immediately; do not solve in general. At $(1,1)$:
$$2+3\left(1+\frac{dy}{dx}\right)+2\frac{dy}{dx}=0\;\Longrightarrow\;5+5\frac{dy}{dx}=0\;\Longrightarrow\;\frac{dy}{dx}=-1$$Substituting the numbers before making $\dfrac{dy}{dx}$ the subject is much faster: making it the subject in general gives $\dfrac{dy}{dx}=-\dfrac{2x+3y}{3x+2y}$ and then substituting is also correct, but longer and easier to slip a sign.
Forgetting the factor $\dfrac{dy}{dx}$ on the $y^{2}$ term — writing $2y$ instead of $2y\dfrac{dy}{dx}$ — is the most common error in this topic, and it gives a perfectly ordinary-looking number.