calculus.guru

Limits

What a limit is

Limit of a function

\[\lim_{x\to a} f(x) = L\]

The limit is the value \(f(x)\) approaches as \(x\) gets closer and closer to \(a\), from both sides. It describes what happens near \(a\), never at \(a\): \(f(a)\) can be different from \(L\), or not defined at all.

For example, \(f(x) = \frac{x^2 - 1}{x - 1}\) is undefined at \(x = 1\), but for every \(x \ne 1\) it equals \(x + 1\), so the outputs close in on 2. We write \(\lim_{x\to 1} f(x) = 2\).

Where it comes from

Limits were invented to answer two old questions that both lead to "0 divided by 0": the slope of a curve at a single point, and the speed of an object at a single instant. Newton and Leibniz used them informally in the 1600s. Cauchy and Weierstrass gave the exact definition (the ε-δ definition below) in the 1800s, so that calculus no longer depended on vague "infinitely small" quantities.

One-sided limits

\[\lim_{x\to a^-} f(x) \ \text{(from the left)} \qquad \lim_{x\to a^+} f(x) \ \text{(from the right)}\]

A left-hand limit only uses \(x\)-values less than \(a\); a right-hand limit only uses values greater than \(a\). They matter for piecewise functions, absolute values, square roots and anything with a jump.

Where it comes from

They come from restricting the ε-δ definition to one side: for the right-hand limit, replace \(0 < |x - a| < \delta\) with \(a < x < a + \delta\). They are needed because many functions are defined differently, or only, on one side of a point (for example \(\sqrt{x}\) at 0).

When a limit exists

\[\lim_{x\to a} f(x) = L \iff \lim_{x\to a^-} f(x) = L \ \text{ and } \ \lim_{x\to a^+} f(x) = L\]

The two-sided limit exists only if both one-sided limits exist and agree. If they disagree (a jump), or either one is infinite or oscillates forever, the two-sided limit does not exist.

Where it comes from

This follows straight from the definition: "\(x\) close to \(a\)" includes points on both sides, so \(f(x)\) must head to the same number from both directions.

Example: \(\frac{|x|}{x}\) equals \(-1\) for \(x < 0\) and \(1\) for \(x > 0\), so the one-sided limits at 0 are \(-1\) and \(1\) and \(\lim_{x\to 0}\frac{|x|}{x}\) does not exist.

The ε-δ definition

\[\lim_{x\to a} f(x) = L \iff \forall\varepsilon > 0\ \exists\delta > 0: \ 0 < |x - a| < \delta \implies |f(x) - L| < \varepsilon\]

Read it as a challenge and response. Someone names a tolerance \(\varepsilon\) (how close to \(L\) the outputs must be). You must answer with a \(\delta\) (how close to \(a\) the inputs must be) that guarantees it. If you can always answer, however small \(\varepsilon\) is, the limit is \(L\).

The condition \(0 < |x - a|\) excludes \(x = a\) itself, which is why the value \(f(a)\) never affects the limit.

Where it comes from

To prove \(\lim_{x\to 2}(3x - 1) = 5\), work backward from the goal:

\[|f(x) - 5| = |3x - 6| = 3|x - 2| < \varepsilon \iff |x - 2| < \frac{\varepsilon}{3}\]

So choosing \(\delta = \varepsilon/3\) works for every \(\varepsilon\). For curved functions you usually first restrict \(\delta \le 1\) to bound the extra factors (see practice question on \(x^2\)).

Infinite limits

\[\lim_{x\to a} f(x) = \infty \qquad \lim_{x\to 0^+}\frac{1}{x} = \infty \qquad \lim_{x\to 0^-}\frac{1}{x} = -\infty\]

Writing \(= \infty\) means the outputs grow without bound. The limit still does not exist as a number; the notation just says how it fails. Each infinite limit at \(x = a\) gives a vertical asymptote \(x = a\).

For \(\frac{c}{g(x)}\) with \(c \ne 0\) and \(g(x) \to 0\), the result is \(\pm\infty\); the sign comes from the signs of \(c\) and of \(g(x)\) on that side.

Where it comes from

If \(0 < x < \delta\) then \(\frac{1}{x} > \frac{1}{\delta}\). Making \(\delta\) small makes \(\frac{1}{x}\) larger than any number you choose, which is exactly what "\(\to\infty\)" means.

Limit laws

Constant and identity limits

\[\lim_{x\to a} c = c \qquad \lim_{x\to a} x = a\]

These two are the building blocks. Every other polynomial limit is built from them with the laws below.

Where it comes from

For a constant, \(|f(x) - c| = 0 < \varepsilon\) always, so any \(\delta\) works. For \(f(x) = x\), \(|x - a| < \varepsilon\) whenever \(|x - a| < \delta\), so take \(\delta = \varepsilon\).

Sum and difference law

\[\lim_{x\to a}\big[f(x) \pm g(x)\big] = \lim_{x\to a} f(x) \pm \lim_{x\to a} g(x)\]

Both limits on the right must exist.

The limit of a sum is the sum of the limits.

Where it comes from

Say \(f \to L\) and \(g \to M\). Choose \(\delta\) small enough that \(|f - L| < \frac{\varepsilon}{2}\) and \(|g - M| < \frac{\varepsilon}{2}\). Then by the triangle inequality

\[|(f + g) - (L + M)| \le |f - L| + |g - M| < \tfrac{\varepsilon}{2} + \tfrac{\varepsilon}{2} = \varepsilon\]

Constant multiple law

\[\lim_{x\to a} c\,f(x) = c\lim_{x\to a} f(x)\]

Constants factor out of a limit.

Where it comes from

\(|cf - cL| = |c||f - L|\). Make \(|f - L| < \frac{\varepsilon}{|c|}\) (when \(c \ne 0\)) and the product is less than \(\varepsilon\).

Product law

\[\lim_{x\to a}\big[f(x)\,g(x)\big] = \lim_{x\to a} f(x)\cdot\lim_{x\to a} g(x)\]

Both limits must exist.

The limit of a product is the product of the limits.

Where it comes from

Split the error into two pieces you can control:

\[fg - LM = f(g - M) + M(f - L)\]

Near \(a\), \(f\) stays bounded (close to \(L\)), \(g - M\) is tiny and \(f - L\) is tiny, so both pieces go to 0.

Quotient law

\[\lim_{x\to a}\frac{f(x)}{g(x)} = \frac{\lim_{x\to a} f(x)}{\lim_{x\to a} g(x)}\]

Only when \(\lim g \ne 0\).

The limit of a quotient is the quotient of the limits, as long as the bottom does not go to 0. When the bottom does go to 0, you need algebra, special limits or L'Hôpital's rule.

Where it comes from

Write \(\frac{f}{g} = f\cdot\frac{1}{g}\). If \(g \to M \ne 0\), then \(g\) stays away from 0 near \(a\), and \(\left|\frac{1}{g} - \frac{1}{M}\right| = \frac{|M - g|}{|g||M|}\) goes to 0. The product law finishes it.

Power and root laws

\[\lim_{x\to a}\big[f(x)\big]^n = \Big[\lim_{x\to a} f(x)\Big]^n \qquad \lim_{x\to a}\sqrt[n]{f(x)} = \sqrt[n]{\lim_{x\to a} f(x)}\]

For even roots, the limit inside must be positive (or 0 approached from above).

You can raise to a power or take a root before or after taking the limit. So \(\lim_{x\to 2}(x^2 + 1)^3 = 5^3 = 125\) and \(\lim_{x\to 3}\sqrt{x + 6} = 3\).

Where it comes from

The power law is the product law applied \(n\) times. The root law follows because \(\sqrt[n]{u}\) is continuous (see composition below).

Direct substitution

\[\lim_{x\to a} f(x) = f(a)\]

For polynomials everywhere, rational functions wherever the denominator is not 0, and any function continuous at \(a\).

If plugging in gives a real number, that number is the limit. Always try this first.

Where it comes from

A polynomial is built from constants and \(x\) using sums and products, so the laws above turn \(\lim P(x)\) into \(P(a)\) term by term. For a rational function, the quotient law adds the condition that the denominator is not 0.

Functions that agree except at one point

\[f(x) = g(x) \text{ for all } x \ne a \text{ near } a \implies \lim_{x\to a} f(x) = \lim_{x\to a} g(x)\]

This is why canceling works. When substitution gives \(\frac{0}{0}\), factor and cancel, rationalize with a conjugate, or combine fractions. The new function equals the old one except at \(a\), so it has the same limit, and now you can substitute.

Where it comes from

The definition of a limit never looks at \(x = a\) (\(0 < |x - a|\)), so two functions that match everywhere else have identical limits.

\[\lim_{x\to 9}\frac{\sqrt{x} - 3}{x - 9} = \lim_{x\to 9}\frac{\sqrt{x} - 3}{(\sqrt{x} - 3)(\sqrt{x} + 3)} = \lim_{x\to 9}\frac{1}{\sqrt{x} + 3} = \frac{1}{6}\]

Limit of a composition

\[\lim_{x\to a} f\big(g(x)\big) = f\Big(\lim_{x\to a} g(x)\Big)\]

When \(f\) is continuous at \(\lim g(x)\).

You can move a limit inside a continuous function. This is what lets you take limits inside roots, exponentials, logs and trig functions, and it is the key step for limits of the form \(f^g\).

Where it comes from

If \(g(x) \to M\) and \(f\) is continuous at \(M\), then inputs near \(M\) give outputs near \(f(M)\). Since \(g(x)\) gets near \(M\), \(f(g(x))\) gets near \(f(M)\). Formally, chain the two ε-δ statements: the \(\delta\) for \(f\) at \(M\) becomes the \(\varepsilon\) for \(g\) at \(a\).

Squeeze theorem

\[g(x) \le f(x) \le h(x) \ \text{ near } a \ \text{ and } \ \lim_{x\to a} g = \lim_{x\to a} h = L \implies \lim_{x\to a} f = L\]

If a function is trapped between two functions that head to the same limit, it has that limit too. It is the standard tool for functions that oscillate, like \(\sin\frac{1}{x}\), multiplied by something that goes to 0.

Where it comes from

Near \(a\), both \(g\) and \(h\) are within \(\varepsilon\) of \(L\), so \(L - \varepsilon < g \le f \le h < L + \varepsilon\). That is \(|f - L| < \varepsilon\).

\[-x^2 \le x^2\sin\tfrac{1}{x} \le x^2 \ \text{ and } \ \pm x^2 \to 0 \implies \lim_{x\to 0} x^2\sin\tfrac{1}{x} = 0\]

Special limits

Sine over x

\[\lim_{x\to 0}\frac{\sin x}{x} = 1\]

\(x\) in radians.

For small angles, \(\sin x \approx x\). This limit is the reason the derivative of \(\sin x\) is \(\cos x\), and it only holds in radians (in degrees the limit is \(\frac{\pi}{180}\)).

Where it comes from

On the unit circle, take \(0 < x < \frac{\pi}{2}\). Compare three areas: the triangle inside the sector, the sector, and the triangle that reaches the tangent line:

\[\frac{1}{2}\sin x \le \frac{1}{2}x \le \frac{1}{2}\tan x\]

Divide by \(\frac{1}{2}\sin x\) and take reciprocals (which flips the inequalities):

\[1 \le \frac{x}{\sin x} \le \frac{1}{\cos x} \implies \cos x \le \frac{\sin x}{x} \le 1\]

As \(x \to 0^+\), \(\cos x \to 1\), so the squeeze theorem gives 1. \(\frac{\sin x}{x}\) is even, so the left side matches.

Scaled sine

\[\lim_{x\to 0}\frac{\sin(kx)}{x} = k \qquad \lim_{x\to 0}\frac{\sin(ax)}{\sin(bx)} = \frac{a}{b}\]

Make the argument and the denominator match, then use the basic limit.

Where it comes from

\[\frac{\sin(kx)}{x} = k\cdot\frac{\sin(kx)}{kx} \to k\cdot 1 \qquad \frac{\sin ax}{\sin bx} = \frac{\sin ax}{ax}\cdot\frac{bx}{\sin bx}\cdot\frac{a}{b} \to \frac{a}{b}\]

Tangent over x

\[\lim_{x\to 0}\frac{\tan x}{x} = 1\]

For small angles, \(\tan x \approx x\), just like \(\sin x\). This works in radians only.

Where it comes from

\[\frac{\tan x}{x} = \frac{\sin x}{x}\cdot\frac{1}{\cos x} \to 1\cdot 1 = 1\]

One minus cosine

\[\lim_{x\to 0}\frac{1 - \cos x}{x} = 0 \qquad \lim_{x\to 0}\frac{1 - \cos x}{x^2} = \frac{1}{2}\]

Near 0, \(1 - \cos x \approx \frac{x^2}{2}\). The first limit is used to find the derivatives of sine and cosine; the second is the one to remember for harder problems.

Where it comes from

Multiply by the conjugate \(1 + \cos x\) and use \(1 - \cos^2 x = \sin^2 x\):

\[\frac{1 - \cos x}{x^2} = \frac{\sin^2 x}{x^2(1 + \cos x)} = \left(\frac{\sin x}{x}\right)^2\frac{1}{1 + \cos x} \to 1\cdot\frac{1}{2}\]

For the first limit, \(\frac{1 - \cos x}{x} = x\cdot\frac{1 - \cos x}{x^2} \to 0\cdot\frac{1}{2} = 0\).

The number e

\[e = \lim_{n\to\infty}\left(1 + \frac{1}{n}\right)^n = \lim_{x\to 0}(1 + x)^{1/x} \approx 2.718281828\]

\(e\) is defined by this limit. It is the growth factor you get by compounding 100% interest more and more often: yearly gives 2, monthly gives about 2.613, daily about 2.7146, and continuously gives \(e\).

Where it comes from

Jacob Bernoulli found it in 1683 studying compound interest: \(\left(1 + \frac{1}{n}\right)^n\) is \$1 at 100% annual interest compounded \(n\) times. The sequence increases and stays below 3 (compare its binomial expansion with \(1 + 1 + \frac{1}{2} + \frac{1}{4} + \cdots\)), so it converges. Euler named the limit \(e\).

Substituting \(x = \frac{1}{n}\) turns the first form into the second.

General e limit

\[\lim_{x\to\infty}\left(1 + \frac{k}{x}\right)^x = e^k \qquad \lim_{x\to\infty}\left(1 + \frac{k}{x}\right)^{mx} = e^{km}\]

Compound \(k\) times as much growth (rate \(k\) instead of 1) and the result is \(e^k\). This is where continuous compounding \(A = Pe^{rt}\) comes from: \(\left(1 + \frac{r}{n}\right)^{nt} \to e^{rt}\).

Where it comes from

Let \(u = \frac{x}{k}\). Then \(\left(1 + \frac{k}{x}\right)^x = \left[\left(1 + \frac{1}{u}\right)^u\right]^k \to e^k\). The outer power \(m\) multiplies the exponent.

Exponential limit

\[\lim_{h\to 0}\frac{e^h - 1}{h} = 1\]

This says the slope of \(y = e^x\) at \(x = 0\) is exactly 1. It is the property that makes \(e\) the natural base: \(e^x\) is its own derivative because of this limit.

Where it comes from

Let \(u = e^h - 1\), so \(h = \ln(1 + u)\) and \(u \to 0\) as \(h \to 0\):

\[\frac{e^h - 1}{h} = \frac{u}{\ln(1 + u)} = \frac{1}{\ln\big[(1 + u)^{1/u}\big]} \to \frac{1}{\ln e} = 1\]

Other bases

\[\lim_{h\to 0}\frac{a^h - 1}{h} = \ln a\]

The slope of \(y = a^x\) at \(x = 0\) is \(\ln a\). For \(a = e\) it is exactly 1, which is what makes \(e\) special.

Where it comes from

Rewrite \(a^h = e^{h\ln a}\) and set \(k = h\ln a\):

\[\frac{a^h - 1}{h} = \ln a\cdot\frac{e^{k} - 1}{k} \to \ln a\cdot 1\]

Logarithm limit

\[\lim_{x\to 0}\frac{\ln(1 + x)}{x} = 1\]

Near 0, \(\ln(1 + x) \approx x\): the graph of \(y = \ln(1 + x)\) has slope 1 at the origin. This is the mirror image of \(e^x - 1 \approx x\).

Where it comes from

Use the log power rule and move the limit inside the continuous function \(\ln\):

\[\frac{\ln(1 + x)}{x} = \ln\big[(1 + x)^{1/x}\big] \to \ln e = 1\]

Limits at infinity

Reciprocal powers

\[\lim_{x\to\pm\infty}\frac{c}{x^p} = 0 \qquad (p > 0)\]

Dividing a fixed number by something that grows without bound gives something that shrinks to 0. Every limit of a rational function at infinity reduces to this.

Where it comes from

Given \(\varepsilon\), \(\left|\frac{c}{x^p}\right| < \varepsilon\) once \(|x| > \left(\frac{|c|}{\varepsilon}\right)^{1/p}\).

Rational functions at infinity

\[\lim_{x\to\pm\infty}\frac{a_nx^n + \cdots}{b_mx^m + \cdots} = \begin{cases} 0 & n < m \\ \dfrac{a_n}{b_m} & n = m \\ \pm\infty & n > m \end{cases}\]

Only the highest powers matter far out. These are also the horizontal asymptote rules.

Where it comes from

Divide the top and bottom by \(x^m\), the highest power in the denominator. Every term with a smaller power becomes \(\frac{c}{x^p} \to 0\):

\[\frac{3x^2 - 5x}{4x^2 + 7} = \frac{3 - \frac{5}{x}}{4 + \frac{7}{x^2}} \to \frac{3}{4}\]

Square roots at infinity

\[\sqrt{x^2} = |x| = \begin{cases} x & x \to \infty \\ -x & x \to -\infty \end{cases}\]

When pulling \(x^2\) out of a square root as \(x \to -\infty\), it comes out as \(-x\), not \(x\). This sign error is the most common mistake in these limits.

Where it comes from

\[\lim_{x\to -\infty}\frac{\sqrt{9x^2 + 1}}{x} = \lim_{x\to -\infty}\frac{|x|\sqrt{9 + 1/x^2}}{x} = \lim_{x\to -\infty}\frac{-x\cdot 3}{x} = -3\]

For \(\infty - \infty\) differences with roots, multiply by the conjugate first.

Exponential, log and arctangent at the ends

\[\lim_{x\to\infty} e^x = \infty \quad \lim_{x\to -\infty} e^x = 0 \quad \lim_{x\to 0^+}\ln x = -\infty \quad \lim_{x\to\infty}\ln x = \infty \quad \lim_{x\to\pm\infty}\arctan x = \pm\frac{\pi}{2}\]

These come straight from the graphs: \(e^x\) has the horizontal asymptote \(y = 0\) on the left; \(\ln x\) has the vertical asymptote \(x = 0\); \(\arctan x\) levels off at \(\pm\frac{\pi}{2}\) because \(\tan x\) has vertical asymptotes there.

Where it comes from

For \(e^x\): once \(x > \ln M\), \(e^x > M\), so it passes any bound; and \(e^{-x} = \frac{1}{e^x} \to 0\). Since \(\ln\) is the inverse of \(e^x\), reflecting across \(y = x\) turns the horizontal asymptote \(y = 0\) into the vertical asymptote \(x = 0\). Likewise, reflecting the vertical asymptotes \(x = \pm\frac{\pi}{2}\) of \(\tan x\) gives the horizontal asymptotes of \(\arctan x\).

Growth rates

\[\ln x \ll x^p \ll a^x \ll x! \ll x^x \qquad (x \to \infty;\ p > 0,\ a > 1)\]

Any power beats any power of a log, and any exponential beats any power. So \(\frac{(\ln x)^{100}}{x^{0.01}} \to 0\) and \(\frac{x^{1000}}{1.001^x} \to 0\), even though both look large for a long time.

Where it comes from

Apply L'Hôpital's rule. For logs vs. powers, one step does it:

\[\lim_{x\to\infty}\frac{\ln x}{x^p} = \lim_{x\to\infty}\frac{1/x}{px^{p-1}} = \lim_{x\to\infty}\frac{1}{px^p} = 0\]

For powers vs. exponentials, differentiate \(n\) times: the top becomes the constant \(n!\) while the bottom stays \((\ln a)^na^x \to \infty\).

Indeterminate forms & L'Hôpital's rule

Indeterminate forms

\[\frac{0}{0} \qquad \frac{\infty}{\infty} \qquad 0\cdot\infty \qquad \infty - \infty \qquad 0^0 \qquad 1^\infty \qquad \infty^0\]

These forms do not determine the answer: the same form can produce any value. \(\frac{0}{0}\) gives 3 for \(\frac{3x}{x}\), 0 for \(\frac{x^2}{x}\) and \(\infty\) for \(\frac{x}{x^2}\). A form like \(\frac{1}{0}\), \(\frac{0}{\infty}\) or \(0^\infty\) is not indeterminate: those are \(\pm\infty\), 0 and 0.

Where it comes from

Each form is a contest between two opposing effects. In \(1^\infty\), a base slightly above 1 pushes toward \(\infty\) while the base approaching 1 pushes toward 1; which wins depends on how fast each happens, as \(\left(1 + \frac{k}{x}\right)^x \to e^k\) shows.

L'Hôpital's rule

\[\lim_{x\to a}\frac{f(x)}{g(x)} = \lim_{x\to a}\frac{f'(x)}{g'(x)}\]

Only when the original limit is \(\frac{0}{0}\) or \(\frac{\pm\infty}{\pm\infty}\), and the right-hand limit exists (or is \(\pm\infty\)). Works for \(a = \pm\infty\) and one-sided limits.

Differentiate the top and bottom separately (this is not the quotient rule) and try again. Repeat as long as the form stays indeterminate.

If \(\frac{f'}{g'}\) has no limit, the rule tells you nothing: \(\lim_{x\to\infty}\frac{x + \sin x}{x} = 1\), but \(\frac{1 + \cos x}{1}\) oscillates.

Where it comes from

Simple case: \(f(a) = g(a) = 0\) and \(f'\), \(g'\) continuous with \(g'(a) \ne 0\). Near \(a\), each function is close to its tangent line:

\[\frac{f(x)}{g(x)} = \frac{f(x) - f(a)}{g(x) - g(a)} = \frac{\dfrac{f(x) - f(a)}{x - a}}{\dfrac{g(x) - g(a)}{x - a}} \to \frac{f'(a)}{g'(a)}\]

The general case uses Cauchy's mean value theorem: on \([a, x]\) there is a \(c\) with \(\frac{f(x) - f(a)}{g(x) - g(a)} = \frac{f'(c)}{g'(c)}\). As \(x \to a\), \(c\) is squeezed to \(a\). The rule was found by Johann Bernoulli and published by the Marquis de L'Hôpital in 1696 in the first calculus textbook.

Product form 0 · ∞

\[f\cdot g = \frac{f}{1/g} \ \left(\tfrac{0}{0}\right) \qquad \text{or} \qquad f\cdot g = \frac{g}{1/f} \ \left(\tfrac{\infty}{\infty}\right)\]

Move one factor to the denominator as its reciprocal to get a quotient. Choose the version whose derivatives are simpler; usually keep logs in the numerator.

Where it comes from

\[\lim_{x\to 0^+} x\ln x = \lim_{x\to 0^+}\frac{\ln x}{1/x} \overset{\text{L'H}}{=} \lim_{x\to 0^+}\frac{1/x}{-1/x^2} = \lim_{x\to 0^+}(-x) = 0\]

Difference form ∞ − ∞

\[\infty - \infty \ \to \ \text{one fraction, a factored form, or a conjugate}\]

Combine into a single fraction (common denominator), factor out the dominant term, or multiply by a conjugate. The result is usually \(\frac{0}{0}\) or \(\frac{\infty}{\infty}\).

Where it comes from

\[\lim_{x\to 0}\left(\frac{1}{x} - \frac{1}{\sin x}\right) = \lim_{x\to 0}\frac{\sin x - x}{x\sin x} \overset{\text{L'H}}{=} \lim_{x\to 0}\frac{\cos x - 1}{\sin x + x\cos x} \overset{\text{L'H}}{=} \lim_{x\to 0}\frac{-\sin x}{2\cos x - x\sin x} = 0\]

Power forms 0⁰, 1^∞, ∞⁰

\[\lim f^g = e^{\lim g\ln f}\]

Take the log to bring the exponent down, find that limit (usually a \(0\cdot\infty\) form), then exponentiate.

Where it comes from

Since \(f^g = e^{g\ln f}\) and \(e^x\) is continuous, the limit can move into the exponent:

\[\lim_{x\to 0^+} x^x = e^{\lim_{x\to 0^+} x\ln x} = e^0 = 1\]

For \(1^\infty\) forms there is a shortcut: if \(f \to 1\) and \(g \to \infty\), then \(\lim f^g = e^{\lim g(f - 1)}\), because \(\ln f \approx f - 1\) when \(f\) is near 1.

Continuity

Continuity at a point

\[f \text{ is continuous at } a \iff \lim_{x\to a} f(x) = f(a)\]

Three things must hold: \(f(a)\) is defined, \(\lim_{x\to a} f(x)\) exists, and the two are equal. Informally, you can draw the graph through \(x = a\) without lifting the pencil.

A function is continuous on an open interval if it is continuous at every point. On a closed interval \([a, b]\) you only need the one-sided limits at the endpoints.

Where it comes from

This is the precise version of "no breaks": outputs near \(f(a)\) whenever inputs are near \(a\). It is also exactly the condition that makes direct substitution valid.

Removable discontinuity

\[\lim_{x\to a} f(x) = L \text{ exists, but } f(a) \ne L \text{ or } f(a) \text{ is undefined}\]

A hole in the graph. It is called removable because redefining \(f(a) = L\) makes \(f\) continuous. Rational functions have one wherever a factor cancels from the top and bottom.

Where it comes from

Example: \(f(x) = \frac{x^2 - 4}{x - 2}\) equals \(x + 2\) for \(x \ne 2\), so \(\lim_{x\to 2} f(x) = 4\) while \(f(2)\) is undefined. Defining \(f(2) = 4\) fills the hole. The name comes from this: the discontinuity can be removed by changing one value.

Jump discontinuity

\[\lim_{x\to a^-} f(x) \ne \lim_{x\to a^+} f(x) \quad \text{(both finite)}\]

The graph breaks and restarts at a different height. Typical in piecewise functions, the floor function and \(\frac{|x|}{x}\).

Where it comes from

Example: \(f(x) = \frac{|x|}{x}\) has left limit \(-1\) and right limit \(1\) at 0. No single value of \(f(0)\) can match both sides, so unlike a hole, a jump cannot be fixed by redefining one point.

Infinite and oscillating discontinuities

\[\lim_{x\to a^\pm} f(x) = \pm\infty \qquad \text{or } f \text{ oscillates without settling, as } \sin\tfrac{1}{x} \text{ at } 0\]

An infinite discontinuity is a vertical asymptote. An oscillating discontinuity has no one-sided limits at all.

Where it comes from

For \(\frac{1}{x}\), the values pass any bound near 0, so there is no finite limit to match. For \(\sin\frac{1}{x}\), the input \(\frac{1}{x}\) runs through infinitely many full periods as \(x \to 0\), so the output hits every value in \([-1, 1]\) on every interval around 0 and never settles.

Combining continuous functions

\[f, g \text{ continuous at } a \implies f \pm g, \ cf, \ fg, \ \frac{f}{g}\ (g(a) \ne 0), \ f\circ g \text{ continuous}\]

Polynomials, rational functions (on their domains), roots, exponentials, logs, trig and inverse trig functions are all continuous wherever they are defined, and so is anything built from them.

Where it comes from

Each part is the matching limit law with \(L = f(a)\) and \(M = g(a)\). For example, the sum law gives \(\lim(f + g) = f(a) + g(a) = (f + g)(a)\).

Intermediate value theorem

\[f \text{ continuous on } [a, b], \ N \text{ between } f(a) \text{ and } f(b) \implies \exists\, c \in (a, b): \ f(c) = N\]

A continuous function cannot skip values. Its main use is proving that equations have solutions: if \(f(a) < 0 < f(b)\), then \(f\) has a root between \(a\) and \(b\). It says nothing about how many roots, or where exactly.

Where it comes from

The proof rests on the completeness of the real numbers (the number line has no gaps). Bisection makes it concrete: check the midpoint, keep the half where the sign still changes, and repeat. The nested intervals shrink to a single point \(c\), and continuity forces \(f(c) = 0\).

Extreme value theorem

\[f \text{ continuous on } [a, b] \implies f \text{ has an absolute maximum and minimum on } [a, b]\]

Both conditions are needed. \(f(x) = x\) on \((0, 1)\) has no max (open interval), and \(f(x) = \frac{1}{x}\) on \([-1, 1]\) has none either (not continuous). The extremes occur at critical points or endpoints.

Where it comes from

Also a consequence of completeness: a continuous function on a closed interval is bounded, and the least upper bound of its values is actually reached.

Differentiable implies continuous

\[f'(a) \text{ exists} \implies f \text{ is continuous at } a\]

Any function with a derivative at a point is continuous there. The converse is false: \(|x|\) is continuous at 0 but has a corner. So a discontinuity rules out a derivative, but continuity does not guarantee one.

Where it comes from

For \(x \ne a\), multiply and divide by \(x - a\):

\[f(x) - f(a) = \frac{f(x) - f(a)}{x - a}\cdot(x - a) \to f'(a)\cdot 0 = 0\]

So \(\lim_{x\to a} f(x) = f(a)\).

Derivatives

The derivative

Limit definition of the derivative

\[f'(x) = \lim_{h\to 0}\frac{f(x + h) - f(x)}{h}\]

The derivative is the instantaneous rate of change of \(f\): the slope of the tangent line at \(x\). The fraction is the slope of a secant line through \((x, f(x))\) and \((x + h, f(x + h))\); the limit slides the second point onto the first.

Where it comes from

Slope needs two points, but a tangent touches at one. The fix is to use two points, compute the slope, and let the distance \(h\) between them shrink to 0:

\[m_{\text{secant}} = \frac{\Delta y}{\Delta x} = \frac{f(x + h) - f(x)}{(x + h) - x} \ \xrightarrow{\ h\to 0\ } \ m_{\text{tangent}}\]

Plugging in \(h = 0\) directly gives \(\frac{0}{0}\), so the derivative is always an indeterminate-form limit. That is the whole reason limits are needed for calculus. Example:

\[\frac{d}{dx}x^2 = \lim_{h\to 0}\frac{(x + h)^2 - x^2}{h} = \lim_{h\to 0}\frac{2xh + h^2}{h} = \lim_{h\to 0}(2x + h) = 2x\]

Derivative at a point

\[f'(a) = \lim_{x\to a}\frac{f(x) - f(a)}{x - a}\]

The same definition with the second point called \(x\) instead of \(a + h\). It is handy for recognizing limits as derivatives: \(\lim_{x\to 2}\frac{x^5 - 32}{x - 2}\) is \(f'(2)\) for \(f(x) = x^5\), so it equals \(5\cdot 2^4 = 80\).

Where it comes from

Substitute \(x = a + h\); then \(x \to a\) is the same as \(h \to 0\).

Symmetric difference quotient

\[f'(a) \approx \frac{f(a + h) - f(a - h)}{2h}\]

Uses points on both sides of \(a\). It gives a much better numerical estimate than the one-sided quotient for the same \(h\), and calculators use it. Careful: its limit can exist even when \(f'(a)\) does not (for \(|x|\) at 0 it gives 0).

Where it comes from

Average the forward and backward quotients: \(\frac{1}{2}\left[\frac{f(a + h) - f(a)}{h} + \frac{f(a) - f(a - h)}{h}\right]\) simplifies to the formula.

Notation

\[f'(x) = y' = \frac{dy}{dx} = \frac{df}{dx} = \frac{d}{dx}f(x) = D_xf(x) \qquad f'(a) = \left.\frac{dy}{dx}\right|_{x = a}\]

Lagrange's prime notation \(f'\) is compact. Leibniz's \(\frac{dy}{dx}\) shows which variable changes and reads like a fraction, which makes the chain rule (\(\frac{dy}{du}\cdot\frac{du}{dx}\)) and related rates feel natural. Newton's dot notation \(\dot{y}\) is still used for time derivatives in physics.

Where it comes from

Leibniz pictured \(dx\) and \(dy\) as infinitely small changes, so \(\frac{dy}{dx}\) was literally "rise over run" for a tiny step. Today it is defined as the limit of \(\frac{\Delta y}{\Delta x}\), but the notation kept its fraction-like behavior.

Tangent line

\[y - f(a) = f'(a)(x - a)\]

The tangent line passes through the point \((a, f(a))\) with slope \(f'(a)\). A horizontal tangent occurs where \(f'(a) = 0\); a vertical tangent where \(|f'(x)| \to \infty\).

Where it comes from

This is point-slope form \(y - y_1 = m(x - x_1)\) with \(m = f'(a)\) and \((x_1, y_1) = (a, f(a))\).

Normal line

\[y - f(a) = -\frac{1}{f'(a)}(x - a)\]

The normal line is perpendicular to the tangent at the point. If \(f'(a) = 0\), the normal is the vertical line \(x = a\).

Where it comes from

Perpendicular slopes multiply to \(-1\), so the normal slope is the negative reciprocal of \(f'(a)\).

Linear approximation

\[f(x) \approx f(a) + f'(a)(x - a) \qquad dy = f'(x)\,dx\]

Close to \(a\), a differentiable function looks like its tangent line. That line \(L(x)\) is the linearization. The differential \(dy\) is the change along the tangent line and approximates the actual change \(\Delta y\).

If \(f'' > 0\) (concave up), the tangent line lies below the curve and underestimates; if \(f'' < 0\), it overestimates.

Where it comes from

From the definition, \(\frac{f(x) - f(a)}{x - a} \approx f'(a)\) when \(x\) is near \(a\). Multiply by \(x - a\) and add \(f(a)\). Example: \(\sqrt{4.1} \approx 2 + \frac{1}{2\sqrt{4}}(0.1) = 2.025\) (actual 2.02485).

Where derivatives fail to exist

\[\text{corner}\ (|x| \text{ at } 0) \qquad \text{cusp}\ (x^{2/3} \text{ at } 0) \qquad \text{vertical tangent}\ (\sqrt[3]{x} \text{ at } 0) \qquad \text{discontinuity}\]

At a corner the one-sided derivatives are different finite numbers. At a cusp they go to \(+\infty\) and \(-\infty\). At a vertical tangent the difference quotient goes to \(\infty\) (or \(-\infty\)) from both sides. At a discontinuity, differentiable-implies-continuous rules a derivative out.

Where it comes from

For \(|x|\) at 0, the difference quotient is \(\frac{|h|}{h}\), which is \(1\) for \(h > 0\) and \(-1\) for \(h < 0\), so the limit does not exist. For \(\sqrt[3]{x}\), it is \(\frac{h^{1/3}}{h} = h^{-2/3} \to \infty\).

One-sided derivatives

\[f'_-(a) = \lim_{h\to 0^-}\frac{f(a + h) - f(a)}{h} \qquad f'_+(a) = \lim_{h\to 0^+}\frac{f(a + h) - f(a)}{h}\]

\(f'(a)\) exists exactly when both one-sided derivatives exist and are equal. To make a piecewise function differentiable at a break point, require continuity there (the pieces meet) and equal one-sided derivatives (the pieces have the same slope).

Where it comes from

They are the one-sided limits of the difference quotient. Since a two-sided limit exists exactly when both one-sided limits exist and agree, the same is true of the derivative. Example: for \(f(x) = x^2\) (\(x \le 1\)) and \(2x - 1\) (\(x > 1\)), both sides give slope 2 at \(x = 1\), so \(f'(1) = 2\).

Higher derivatives

\[f''(x) = \frac{d^2y}{dx^2} = \frac{d}{dx}\left(\frac{dy}{dx}\right) \qquad f'''(x) = \frac{d^3y}{dx^3} \qquad f^{(n)}(x) = \frac{d^ny}{dx^n}\]

Differentiate again to get the rate of change of the rate of change. If \(s(t)\) is position, \(s'\) is velocity and \(s''\) is acceleration. On a graph, \(f''\) measures concavity: \(f'' > 0\) means the slope is increasing (cupped up).

Where it comes from

The notation \(\frac{d^2y}{dx^2}\) comes from applying the operator \(\frac{d}{dx}\) twice: \(\frac{d}{dx}\frac{d}{dx}y\), with the \(d\)'s and \(dx\)'s "multiplied" together.

Differentiation rules

Constant rule

\[\frac{d}{dx}c = 0\]

A constant function is a horizontal line, so its slope is 0 everywhere.

Where it comes from

\[\lim_{h\to 0}\frac{c - c}{h} = \lim_{h\to 0}0 = 0\]

Power rule

\[\frac{d}{dx}x^n = nx^{n-1}\]

For every real exponent \(n\) (on the domain of \(x^n\)).

Bring the exponent down in front and lower it by one. It covers roots and reciprocals too: write \(\sqrt{x} = x^{1/2}\) and \(\frac{1}{x^3} = x^{-3}\) first.

Where it comes from

For a positive integer \(n\), expand with the binomial theorem. Every term after the second contains \(h^2\) or more:

\[\frac{(x + h)^n - x^n}{h} = \frac{nx^{n-1}h + \binom{n}{2}x^{n-2}h^2 + \cdots + h^n}{h} = nx^{n-1} + \binom{n}{2}x^{n-2}h + \cdots \to nx^{n-1}\]

For any real \(n\) and \(x > 0\), write \(x^n = e^{n\ln x}\) and use the chain rule:

\[\frac{d}{dx}e^{n\ln x} = e^{n\ln x}\cdot\frac{n}{x} = x^n\cdot\frac{n}{x} = nx^{n-1}\]

Constant multiple rule

\[\frac{d}{dx}\big[c\,f(x)\big] = c\,f'(x)\]

Stretching a graph vertically by \(c\) multiplies every slope by \(c\).

Where it comes from

\[\lim_{h\to 0}\frac{cf(x + h) - cf(x)}{h} = c\lim_{h\to 0}\frac{f(x + h) - f(x)}{h} = cf'(x)\]

Sum and difference rule

\[\frac{d}{dx}\big[f(x) \pm g(x)\big] = f'(x) \pm g'(x)\]

Differentiate term by term. Together with the constant multiple rule, this means differentiation is linear, which is why polynomials are differentiated one term at a time.

Where it comes from

Regroup the difference quotient and use the sum law for limits:

\[\frac{[f(x + h) + g(x + h)] - [f(x) + g(x)]}{h} = \frac{f(x + h) - f(x)}{h} + \frac{g(x + h) - g(x)}{h}\]

Product rule

\[\frac{d}{dx}\big[f(x)\,g(x)\big] = f'(x)\,g(x) + f(x)\,g'(x)\]

"First times derivative of the second, plus second times derivative of the first." The derivative of a product is not the product of the derivatives: \((x\cdot x)' = 2x\), but \(1\cdot 1 = 1\).

Where it comes from

Add and subtract \(f(x + h)g(x)\) in the numerator so it splits into two quotients you recognize:

\[\begin{aligned} \frac{f(x + h)g(x + h) - f(x)g(x)}{h} &= \frac{f(x + h)g(x + h) - f(x + h)g(x) + f(x + h)g(x) - f(x)g(x)}{h} \\ &= f(x + h)\frac{g(x + h) - g(x)}{h} + g(x)\frac{f(x + h) - f(x)}{h} \\ &\to f(x)g'(x) + g(x)f'(x) \end{aligned}\]

\(f(x + h) \to f(x)\) because \(f\) is differentiable, hence continuous. Picture a rectangle with sides \(f\) and \(g\): growing both sides adds two strips, \(f\,\Delta g\) and \(g\,\Delta f\), plus a tiny corner \(\Delta f\,\Delta g\) that vanishes in the limit.

Product of three or more

\[(fgh)' = f'gh + fg'h + fgh'\]

Differentiate one factor at a time, leave the others alone, and add up all the results.

Where it comes from

Group as \(f\cdot(gh)\) and apply the product rule twice: \(f'(gh) + f(gh)' = f'gh + f(g'h + gh')\).

Quotient rule

\[\frac{d}{dx}\left[\frac{f(x)}{g(x)}\right] = \frac{f'(x)\,g(x) - f(x)\,g'(x)}{\big[g(x)\big]^2}\]

Where \(g(x) \ne 0\).

"Low d-high minus high d-low, over low squared." Order matters in the numerator because of the minus sign. It is often easier to rewrite \(\frac{f}{g}\) as \(f\cdot g^{-1}\) or simplify first.

Where it comes from

Let \(q = \frac{f}{g}\), so \(f = qg\). By the product rule \(f' = q'g + qg'\). Solve for \(q'\):

\[q' = \frac{f' - qg'}{g} = \frac{f' - \frac{f}{g}g'}{g} = \frac{f'g - fg'}{g^2}\]

(This assumes \(q\) is differentiable; the direct proof adds and subtracts \(f(x)g(x)\) in the numerator, just like the product rule.)

Reciprocal rule

\[\frac{d}{dx}\left[\frac{1}{g(x)}\right] = -\frac{g'(x)}{\big[g(x)\big]^2}\]

A shortcut for the special case where the numerator is a constant. Example: \(\frac{d}{dx}\frac{1}{x^2 + 1} = -\frac{2x}{(x^2 + 1)^2}\).

Where it comes from

The quotient rule with \(f = 1\), \(f' = 0\). Or the chain rule on \(g^{-1}\): \(-g^{-2}\cdot g'\).

Chain rule

\[\frac{d}{dx}f\big(g(x)\big) = f'\big(g(x)\big)\cdot g'(x) \qquad \frac{dy}{dx} = \frac{dy}{du}\cdot\frac{du}{dx}\]

Differentiate the outside function, leaving the inside alone, then multiply by the derivative of the inside. Rates multiply: if \(y\) changes 3 times as fast as \(u\), and \(u\) changes 2 times as fast as \(x\), then \(y\) changes 6 times as fast as \(x\).

Work from the outside in, one layer at a time: \(\frac{d}{dx}\sin^3(5x) = 3\sin^2(5x)\cdot\cos(5x)\cdot 5\).

Where it comes from

Let \(u = g(x)\) and \(\Delta u = g(x + h) - g(x)\). When \(\Delta u \ne 0\):

\[\frac{f(g(x + h)) - f(g(x))}{h} = \frac{f(u + \Delta u) - f(u)}{\Delta u}\cdot\frac{\Delta u}{h} \to f'(u)\cdot g'(x)\]

As \(h \to 0\), \(\Delta u \to 0\) by continuity of \(g\), so the first factor tends to \(f'(u)\). A complete proof avoids dividing by \(\Delta u\) (which can be 0 infinitely often near \(x\)) by defining \(\phi(k) = \frac{f(u + k) - f(u)}{k}\) for \(k \ne 0\) and \(\phi(0) = f'(u)\); then \(f(u + \Delta u) - f(u) = \phi(\Delta u)\Delta u\) always holds.

General power rule

\[\frac{d}{dx}\big[g(x)\big]^n = n\big[g(x)\big]^{n-1}g'(x)\]

The power rule applied to an inside function. Forgetting the factor \(g'(x)\) is the most common derivative mistake.

Where it comes from

The chain rule with outer function \(u^n\) and inner function \(u = g(x)\).

Implicit differentiation

\[\frac{d}{dx}\big[y^n\big] = ny^{n-1}\frac{dy}{dx} \qquad \frac{d}{dx}\big[F(x, y)\big] = 0 \text{ for an equation } F(x, y) = 0\]

When \(y\) is defined by an equation like \(x^2 + y^2 = 25\) instead of a formula, differentiate both sides with respect to \(x\). Treat \(y\) as an unknown function of \(x\), so every time you differentiate something containing \(y\), the chain rule attaches \(\frac{dy}{dx}\). Then solve for \(\frac{dy}{dx}\).

The answer usually involves both \(x\) and \(y\). That is expected: it gives the slope at any point on the curve.

Where it comes from

Each side of the equation is the same function of \(x\), so their derivatives are equal. The chain rule applies because \(y = y(x)\):

\[x^2 + y^2 = 25 \implies 2x + 2y\frac{dy}{dx} = 0 \implies \frac{dy}{dx} = -\frac{x}{y}\]

For a product like \(xy\), use the product rule: \(\frac{d}{dx}(xy) = y + x\frac{dy}{dx}\).

Derivative of an inverse function

\[\left(f^{-1}\right)'(x) = \frac{1}{f'\big(f^{-1}(x)\big)} \qquad \text{if } f(a) = b: \ \left(f^{-1}\right)'(b) = \frac{1}{f'(a)}\]

When \(f'(a) \ne 0\).

The graph of \(f^{-1}\) is the graph of \(f\) reflected across \(y = x\), which swaps rise and run. So slopes at matching points are reciprocals. You can find \((f^{-1})'(b)\) without a formula for \(f^{-1}\): find the \(a\) with \(f(a) = b\), then take \(\frac{1}{f'(a)}\).

Where it comes from

Differentiate both sides of \(f\big(f^{-1}(x)\big) = x\) using the chain rule:

\[f'\big(f^{-1}(x)\big)\cdot\left(f^{-1}\right)'(x) = 1 \implies \left(f^{-1}\right)'(x) = \frac{1}{f'\big(f^{-1}(x)\big)}\]

Logarithmic differentiation

\[\frac{dy}{dx} = y\cdot\frac{d}{dx}\big[\ln y\big]\]

Take \(\ln\) of both sides, use log rules to turn products into sums, quotients into differences and powers into multiples, then differentiate implicitly. Use it for messy products and quotients, and whenever the variable is in both the base and the exponent.

Where it comes from

By the chain rule, \(\frac{d}{dx}\ln y = \frac{y'}{y}\). Multiply both sides by \(y\). Example:

\[y = \frac{x^3\sqrt{x + 1}}{(2x - 1)^5} \implies \ln y = 3\ln x + \tfrac{1}{2}\ln(x + 1) - 5\ln(2x - 1)\]
\[\frac{y'}{y} = \frac{3}{x} + \frac{1}{2(x + 1)} - \frac{10}{2x - 1} \implies y' = \frac{x^3\sqrt{x + 1}}{(2x - 1)^5}\left(\frac{3}{x} + \frac{1}{2(x + 1)} - \frac{10}{2x - 1}\right)\]

Variable base and exponent

\[\frac{d}{dx}\Big[f(x)^{g(x)}\Big] = f^g\left(g'\ln f + g\frac{f'}{f}\right)\]

Neither the power rule (needs a constant exponent) nor the exponential rule (needs a constant base) applies. Rewrite with base \(e\) or use logarithmic differentiation. Example: \(\frac{d}{dx}x^x = x^x(\ln x + 1)\).

Where it comes from

Write \(f^g = e^{g\ln f}\) and use the chain and product rules:

\[\frac{d}{dx}e^{g\ln f} = e^{g\ln f}\left(g'\ln f + g\cdot\frac{f'}{f}\right)\]

Notice the two terms: the first is what the exponential rule gives (base held fixed), the second is what the power rule gives (exponent held fixed).

Derivative of absolute value

\[\frac{d}{dx}|x| = \frac{x}{|x|} = \begin{cases} 1 & x > 0 \\ -1 & x < 0 \end{cases} \qquad \frac{d}{dx}|u| = \frac{u}{|u|}u'\]

Undefined where \(x = 0\) (or \(u = 0\)).

The slope of \(|x|\) is \(-1\) to the left of 0 and \(1\) to the right, and the graph has a corner at 0 where no derivative exists. The fraction \(\frac{x}{|x|}\) is just the sign of \(x\).

Where it comes from

Write \(|x| = \sqrt{x^2}\) and use the chain rule: \(\frac{1}{2\sqrt{x^2}}\cdot 2x = \frac{x}{|x|}\).

Leibniz rule for nth derivatives

\[(fg)^{(n)} = \sum_{k=0}^{n}\binom{n}{k}f^{(k)}g^{(n-k)}\]

The \(n\)th derivative of a product follows the same pattern as the binomial expansion of \((a + b)^n\). It is fastest when one factor is a polynomial, since its derivatives eventually become 0.

Where it comes from

Apply the product rule repeatedly: \((fg)'' = f''g + 2f'g' + fg''\), and \((fg)''' = f'''g + 3f''g' + 3f'g'' + fg'''\). Each step adds neighboring coefficients exactly like Pascal's triangle, so induction on \(n\) proves the formula.

Parametric derivatives

\[\frac{dy}{dx} = \frac{dy/dt}{dx/dt} \qquad \frac{d^2y}{dx^2} = \frac{\dfrac{d}{dt}\left(\dfrac{dy}{dx}\right)}{dx/dt}\]

Where \(\frac{dx}{dt} \ne 0\).

For a curve \(x = x(t)\), \(y = y(t)\), the slope is the ratio of the two rates. Horizontal tangents occur where \(\frac{dy}{dt} = 0\) (and \(\frac{dx}{dt} \ne 0\)); vertical tangents where \(\frac{dx}{dt} = 0\) (and \(\frac{dy}{dt} \ne 0\)).

For the second derivative, do not just divide \(\frac{d^2y}{dt^2}\) by \(\frac{d^2x}{dt^2}\). Differentiate \(\frac{dy}{dx}\) (a function of \(t\)) with respect to \(t\), then divide by \(\frac{dx}{dt}\).

Where it comes from

By the chain rule, \(\frac{dy}{dt} = \frac{dy}{dx}\cdot\frac{dx}{dt}\); divide by \(\frac{dx}{dt}\). The second formula is the same rule applied to the function \(\frac{dy}{dx}\) in place of \(y\).

Polar derivatives

\[\frac{dy}{dx} = \frac{\frac{dr}{d\theta}\sin\theta + r\cos\theta}{\frac{dr}{d\theta}\cos\theta - r\sin\theta}\]

\(\frac{dr}{d\theta}\) is not the slope of a polar curve; it is how fast the distance from the origin changes. The slope needs the conversion to \(x\) and \(y\).

Where it comes from

A polar curve \(r = r(\theta)\) is a parametric curve with parameter \(\theta\): \(x = r\cos\theta\), \(y = r\sin\theta\). Differentiate each with the product rule and divide:

\[\frac{dx}{d\theta} = r'\cos\theta - r\sin\theta \qquad \frac{dy}{d\theta} = r'\sin\theta + r\cos\theta\]

Derivatives of common functions

\(f(x)\)\(f'(x)\)\(f(x)\)\(f'(x)\)
\(\displaystyle e^x\)\(\displaystyle e^x\)\(\displaystyle a^x\)\(\displaystyle a^x\ln a\)
\(\displaystyle \ln x\)\(\displaystyle \frac{1}{x}\)\(\displaystyle \log_a x\)\(\displaystyle \frac{1}{x\ln a}\)
\(\displaystyle \sin x\)\(\displaystyle \cos x\)\(\displaystyle \cos x\)\(\displaystyle -\sin x\)
\(\displaystyle \tan x\)\(\displaystyle \sec^2 x\)\(\displaystyle \cot x\)\(\displaystyle -\csc^2 x\)
\(\displaystyle \sec x\)\(\displaystyle \sec x\tan x\)\(\displaystyle \csc x\)\(\displaystyle -\csc x\cot x\)
\(\displaystyle \arcsin x\)\(\displaystyle \frac{1}{\sqrt{1 - x^2}}\)\(\displaystyle \arccos x\)\(\displaystyle -\frac{1}{\sqrt{1 - x^2}}\)
\(\displaystyle \arctan x\)\(\displaystyle \frac{1}{1 + x^2}\)\(\displaystyle \arccot x\)\(\displaystyle -\frac{1}{1 + x^2}\)
\(\displaystyle \arcsec x\)\(\displaystyle \frac{1}{|x|\sqrt{x^2 - 1}}\)\(\displaystyle \arccsc x\)\(\displaystyle -\frac{1}{|x|\sqrt{x^2 - 1}}\)
\(\displaystyle \sinh x\)\(\displaystyle \cosh x\)\(\displaystyle \cosh x\)\(\displaystyle \sinh x\)
\(\displaystyle \tanh x\)\(\displaystyle \sech^2 x\)\(\displaystyle \coth x\)\(\displaystyle -\csch^2 x\)
\(\displaystyle \sech x\)\(\displaystyle -\sech x\tanh x\)\(\displaystyle \csch x\)\(\displaystyle -\csch x\coth x\)
\(\displaystyle \arsinh x\)\(\displaystyle \frac{1}{\sqrt{x^2 + 1}}\)\(\displaystyle \arcosh x\)\(\displaystyle \frac{1}{\sqrt{x^2 - 1}}\)
\(\displaystyle \artanh x\)\(\displaystyle \frac{1}{1 - x^2}\)\(\displaystyle \arcoth x\)\(\displaystyle \frac{1}{1 - x^2}\)
\(\displaystyle \arsech x\)\(\displaystyle -\frac{1}{x\sqrt{1 - x^2}}\)\(\displaystyle \arcsch x\)\(\displaystyle -\frac{1}{|x|\sqrt{1 + x^2}}\)

Chain rule versions

\[\frac{d}{dx}f(u) = f'(u)\cdot u' \qquad \text{e.g.} \quad \frac{d}{dx}e^{u} = e^{u}u' \qquad \frac{d}{dx}\ln u = \frac{u'}{u} \qquad \frac{d}{dx}\arctan u = \frac{u'}{1 + u^2}\]

Every formula in the table becomes its chain rule version by replacing \(x\) with \(u = u(x)\) and multiplying by \(u'\).

Where it comes from

If \(\frac{d}{dx}f(x) = g(x)\), the chain rule gives \(\frac{d}{dx}f(u) = f'(u)\cdot u' = g(u)\,u'\). So each table entry turns into its chain rule version in one step.

Exponential and logarithmic functions

Natural exponential

\[\frac{d}{dx}e^x = e^x\]

\(e^x\) is its own derivative: at every point, the slope equals the height. Up to a constant multiple, it is the only function with this property, which is why it appears in every growth and decay model.

Where it comes from

Factor \(e^x\) out of the difference quotient, then use the special limit \(\frac{e^h - 1}{h} \to 1\):

\[\lim_{h\to 0}\frac{e^{x + h} - e^x}{h} = e^x\lim_{h\to 0}\frac{e^h - 1}{h} = e^x\cdot 1\]

Exponential with any base

\[\frac{d}{dx}a^x = a^x\ln a\]

Same shape as \(e^x\), scaled by the constant \(\ln a\). For \(a = e\), \(\ln e = 1\), which is why \(e\) gives the cleanest formula.

Where it comes from

\(a^x = e^{x\ln a}\), so by the chain rule \(\frac{d}{dx}e^{x\ln a} = e^{x\ln a}\cdot\ln a = a^x\ln a\).

Natural logarithm

\[\frac{d}{dx}\ln x = \frac{1}{x} \qquad \frac{d}{dx}\ln|x| = \frac{1}{x}\]

A log turns into a simple reciprocal. The absolute value version works for negative \(x\) too, so \(\int\frac{1}{x}\,dx = \ln|x| + C\).

Where it comes from

Let \(y = \ln x\), so \(e^y = x\). Differentiate implicitly:

\[e^y\frac{dy}{dx} = 1 \implies \frac{dy}{dx} = \frac{1}{e^y} = \frac{1}{x}\]

For \(x < 0\), \(\ln|x| = \ln(-x)\) and the chain rule gives \(\frac{-1}{-x} = \frac{1}{x}\).

Logarithm with any base

\[\frac{d}{dx}\log_a x = \frac{1}{x\ln a}\]

Same as \(\ln x\), divided by the constant \(\ln a\). For \(\log_{10}x\), the derivative is \(\frac{1}{x\ln 10} \approx \frac{0.434}{x}\).

Where it comes from

Change of base: \(\log_a x = \frac{\ln x}{\ln a}\), and \(\frac{1}{\ln a}\) is a constant multiple.

Trigonometric functions

Sine

\[\frac{d}{dx}\sin x = \cos x\]

\(x\) in radians.

Where the sine graph is steepest (at 0, \(\pi\), ...), cosine is \(\pm 1\); where sine peaks, cosine is 0.

Where it comes from

Use the sum formula \(\sin(x + h) = \sin x\cos h + \cos x\sin h\) and the two special trig limits:

\[\frac{\sin(x + h) - \sin x}{h} = \sin x\cdot\frac{\cos h - 1}{h} + \cos x\cdot\frac{\sin h}{h} \to \sin x\cdot 0 + \cos x\cdot 1\]

Cosine

\[\frac{d}{dx}\cos x = -\sin x\]

The "co" functions (cosine, cotangent, cosecant) all have a minus sign in their derivatives.

Where it comes from

Use \(\cos(x + h) = \cos x\cos h - \sin x\sin h\):

\[\frac{\cos(x + h) - \cos x}{h} = \cos x\cdot\frac{\cos h - 1}{h} - \sin x\cdot\frac{\sin h}{h} \to -\sin x\]

Tangent

\[\frac{d}{dx}\tan x = \sec^2 x\]

\(\tan x\) increases on every interval of its domain, and \(\sec^2 x \ge 1\) confirms the slope is always at least 1. The slope is exactly 1 at \(x = 0\), and it blows up near the asymptotes \(x = \pm\frac{\pi}{2}\).

Where it comes from

Quotient rule with \(\tan x = \frac{\sin x}{\cos x}\):

\[\frac{\cos x\cos x - \sin x(-\sin x)}{\cos^2 x} = \frac{\cos^2 x + \sin^2 x}{\cos^2 x} = \frac{1}{\cos^2 x} = \sec^2 x\]

Cotangent

\[\frac{d}{dx}\cot x = -\csc^2 x\]

\(\cot x\) decreases on every interval of its domain, so its derivative is always negative. Like all the co-functions, it picks up a minus sign.

Where it comes from

Quotient rule with \(\cot x = \frac{\cos x}{\sin x}\):

\[\frac{-\sin x\sin x - \cos x\cos x}{\sin^2 x} = -\frac{1}{\sin^2 x} = -\csc^2 x\]

Secant

\[\frac{d}{dx}\sec x = \sec x\tan x\]

The derivative of \(\sec x\) contains \(\sec x\) itself, which is why \(\sec x\) appears with \(\tan x\) in many integrals (\(\int\sec x\tan x\,dx = \sec x + C\)).

Where it comes from

Reciprocal rule with \(\sec x = \frac{1}{\cos x}\):

\[-\frac{-\sin x}{\cos^2 x} = \frac{1}{\cos x}\cdot\frac{\sin x}{\cos x} = \sec x\tan x\]

Cosecant

\[\frac{d}{dx}\csc x = -\csc x\cot x\]

The co-function partner of secant: swap each function for its co-function and add a minus sign.

Where it comes from

Reciprocal rule with \(\csc x = \frac{1}{\sin x}\):

\[-\frac{\cos x}{\sin^2 x} = -\frac{1}{\sin x}\cdot\frac{\cos x}{\sin x} = -\csc x\cot x\]

Inverse trigonometric functions

Arcsine

\[\frac{d}{dx}\arcsin x = \frac{1}{\sqrt{1 - x^2}} \qquad (-1 < x < 1)\]

The derivative of an inverse trig function is algebraic (no trig left). That is why arcsine and arctangent show up as antiderivatives of \(\frac{1}{\sqrt{1 - x^2}}\) and \(\frac{1}{1 + x^2}\).

Where it comes from

Let \(y = \arcsin x\), so \(\sin y = x\) with \(-\frac{\pi}{2} \le y \le \frac{\pi}{2}\). Differentiate implicitly:

\[\cos y\frac{dy}{dx} = 1 \implies \frac{dy}{dx} = \frac{1}{\cos y} = \frac{1}{\sqrt{1 - \sin^2 y}} = \frac{1}{\sqrt{1 - x^2}}\]

The positive root is correct because \(\cos y \ge 0\) on \(\left[-\frac{\pi}{2}, \frac{\pi}{2}\right]\). A right triangle with opposite side \(x\) and hypotenuse 1 shows the same thing: the adjacent side is \(\sqrt{1 - x^2}\).

Arccosine

\[\frac{d}{dx}\arccos x = -\frac{1}{\sqrt{1 - x^2}} \qquad (-1 < x < 1)\]

Arccosine decreases from \(\pi\) to 0 on \([-1, 1]\), so its derivative is negative: exactly the negative of arcsine's derivative. The slope becomes infinite at \(x = \pm 1\) (vertical tangents).

Where it comes from

Since \(\arccos x = \frac{\pi}{2} - \arcsin x\), its derivative is the negative of arcsine's. Directly: \(\cos y = x\) gives \(-\sin y\,y' = 1\), and \(\sin y = \sqrt{1 - x^2} \ge 0\) on \([0, \pi]\).

Arctangent

\[\frac{d}{dx}\arctan x = \frac{1}{1 + x^2}\]

The derivative is defined for every \(x\), is largest (1) at \(x = 0\), and shrinks to 0 as \(|x|\) grows because the graph levels off toward \(\pm\frac{\pi}{2}\). This is the most used inverse trig derivative, since \(\frac{1}{1 + x^2}\) shows up constantly in integration.

Where it comes from

Let \(y = \arctan x\), so \(\tan y = x\). Differentiate implicitly and use \(\sec^2 y = 1 + \tan^2 y\):

\[\sec^2 y\frac{dy}{dx} = 1 \implies \frac{dy}{dx} = \frac{1}{\sec^2 y} = \frac{1}{1 + \tan^2 y} = \frac{1}{1 + x^2}\]

Arccotangent

\[\frac{d}{dx}\operatorname{arccot} x = -\frac{1}{1 + x^2}\]

Arccotangent decreases everywhere, from \(\pi\) down to 0, so its derivative is the negative of arctangent's.

Where it comes from

\(\operatorname{arccot} x = \frac{\pi}{2} - \arctan x\), so the derivative is the negative of arctangent's. Directly: \(\cot y = x\) gives \(-\csc^2 y\,y' = 1\), and \(\csc^2 y = 1 + \cot^2 y = 1 + x^2\).

Arcsecant

\[\frac{d}{dx}\operatorname{arcsec} x = \frac{1}{|x|\sqrt{x^2 - 1}} \qquad (|x| > 1)\]

Arcsecant is increasing on both pieces of its domain, so its derivative is always positive. The absolute value makes that true for \(x < -1\) too. (Some books use a different range for arcsecant and get \(\frac{1}{x\sqrt{x^2 - 1}}\).)

Where it comes from

Let \(y = \operatorname{arcsec} x\), so \(\sec y = x\) with \(y \in [0, \pi]\), \(y \ne \frac{\pi}{2}\). Differentiate:

\[\sec y\tan y\frac{dy}{dx} = 1 \implies \frac{dy}{dx} = \frac{1}{\sec y\tan y}\]

Here \(\sec y = x\) and \(\tan y = \pm\sqrt{x^2 - 1}\). On \([0, \frac{\pi}{2})\) both are positive; on \((\frac{\pi}{2}, \pi]\) both are negative. Either way the product \(\sec y\tan y\) is positive and equals \(|x|\sqrt{x^2 - 1}\).

Arccosecant

\[\frac{d}{dx}\operatorname{arccsc} x = -\frac{1}{|x|\sqrt{x^2 - 1}} \qquad (|x| > 1)\]

Arccosecant decreases on each piece of its domain, so its derivative is always negative.

Where it comes from

\(\operatorname{arccsc} x = \frac{\pi}{2} - \operatorname{arcsec} x\), so the derivative is the negative of arcsecant's.

Hyperbolic functions

Hyperbolic definitions

\[\sinh x = \frac{e^x - e^{-x}}{2} \qquad \cosh x = \frac{e^x + e^{-x}}{2} \qquad \tanh x = \frac{\sinh x}{\cosh x}\]

Hyperbolic functions are built from exponentials but behave like trig functions: \((\cosh t, \sinh t)\) lies on the hyperbola \(x^2 - y^2 = 1\) the way \((\cos t, \sin t)\) lies on the unit circle. A hanging chain has the shape of \(\cosh\) (a catenary).

Where it comes from

The key identity follows from expanding: \(\cosh^2 x - \sinh^2 x = \frac{(e^{2x} + 2 + e^{-2x}) - (e^{2x} - 2 + e^{-2x})}{4} = 1\). Dividing by \(\cosh^2 x\) gives \(1 - \tanh^2 x = \sech^2 x\).

Hyperbolic sine and cosine

\[\frac{d}{dx}\sinh x = \cosh x \qquad \frac{d}{dx}\cosh x = \sinh x\]

Like sine and cosine, but with no minus sign.

Where it comes from

\[\frac{d}{dx}\frac{e^x - e^{-x}}{2} = \frac{e^x + e^{-x}}{2} \qquad \frac{d}{dx}\frac{e^x + e^{-x}}{2} = \frac{e^x - e^{-x}}{2}\]

Other hyperbolic functions

\[(\tanh x)' = \sech^2 x \quad (\coth x)' = -\csch^2 x \quad (\sech x)' = -\sech x\tanh x \quad (\csch x)' = -\csch x\coth x\]

These follow the trig patterns, with signs that come from the hyperbolic identities instead of the circular ones: \(\tanh\) has derivative \(+\sech^2\) (like \(\tan\)), but \(\sech\) has a minus sign where \(\sec\) does not.

Where it comes from

Same method as the trig versions. For example, the quotient rule on \(\frac{\sinh x}{\cosh x}\) gives \(\frac{\cosh^2 x - \sinh^2 x}{\cosh^2 x} = \frac{1}{\cosh^2 x}\). The reciprocal rule on \(\frac{1}{\cosh x}\) gives \(-\frac{\sinh x}{\cosh^2 x} = -\sech x\tanh x\).

Inverse hyperbolic functions

\[(\operatorname{arsinh} x)' = \frac{1}{\sqrt{x^2 + 1}} \quad (\operatorname{arcosh} x)' = \frac{1}{\sqrt{x^2 - 1}} \ (x > 1) \quad (\operatorname{artanh} x)' = \frac{1}{1 - x^2} \ (|x| < 1)\]

Inverse hyperbolic functions are logarithms in disguise: \(\operatorname{arsinh} x = \ln\left(x + \sqrt{x^2 + 1}\right)\), \(\operatorname{arcosh} x = \ln\left(x + \sqrt{x^2 - 1}\right)\), \(\operatorname{artanh} x = \frac{1}{2}\ln\frac{1 + x}{1 - x}\).

Where it comes from

Implicit differentiation, as with inverse trig. For \(y = \operatorname{arsinh} x\), \(\sinh y = x\):

\[\cosh y\frac{dy}{dx} = 1 \implies \frac{dy}{dx} = \frac{1}{\cosh y} = \frac{1}{\sqrt{1 + \sinh^2 y}} = \frac{1}{\sqrt{1 + x^2}}\]

(\(\cosh y > 0\) always, so the positive root is right.) For \(\operatorname{artanh}\): \(\sech^2 y\,y' = 1\) and \(\sech^2 y = 1 - \tanh^2 y = 1 - x^2\).

Patterns in higher derivatives

Exponentials

\[\frac{d^n}{dx^n}e^{ax} = a^ne^{ax}\]

Every derivative of \(e^{ax}\) is the same function times another factor of \(a\). For \(a = -1\) the signs alternate: \(e^{-x}, -e^{-x}, e^{-x}, \ldots\)

Where it comes from

Each derivative multiplies by another factor of \(a\) (chain rule).

Sine and cosine

\[\frac{d^n}{dx^n}\sin x = \sin\left(x + \frac{n\pi}{2}\right) \qquad \frac{d^n}{dx^n}\cos x = \cos\left(x + \frac{n\pi}{2}\right)\]

The derivatives cycle with period 4: \(\sin \to \cos \to -\sin \to -\cos \to \sin\). To find the 100th derivative, divide by 4 and look at the remainder.

Where it comes from

\(\cos x = \sin\left(x + \frac{\pi}{2}\right)\), so each derivative shifts the sine graph left by \(\frac{\pi}{2}\).

Powers and logs

\[\frac{d^n}{dx^n}x^m = \frac{m!}{(m - n)!}x^{m-n} \ (n \le m) \qquad \frac{d^n}{dx^n}x^m = 0 \ (n > m) \qquad \frac{d^n}{dx^n}\ln x = \frac{(-1)^{n-1}(n - 1)!}{x^n}\]

A polynomial of degree \(m\) dies after \(m + 1\) derivatives. \(\ln x\) never dies: after the first step it becomes a power of \(x\) with a negative exponent, which keeps going forever with growing factorial coefficients.

Where it comes from

Each power rule step multiplies by the current exponent and lowers it: \(m(m - 1)\cdots(m - n + 1) = \frac{m!}{(m - n)!}\). For \(\ln x\), the first derivative is \(x^{-1}\), and then each step multiplies by \(-1, -2, -3, \ldots\)

Extreme values and the mean value theorem

Absolute and local extrema

\[f(c) \ge f(x) \text{ for all } x \text{ in the domain (absolute max)} \qquad f(c) \ge f(x) \text{ for } x \text{ near } c \text{ (local max)}\]

An absolute (global) maximum is the largest value \(f\) takes anywhere on its domain; a local (relative) maximum is only the largest compared with nearby points. Minimums are defined the same way with \(\le\). A function can have many local extremes but at most one absolute maximum value.

Where it comes from

These definitions make precise the "peaks" and "valleys" of a graph. They are the targets of every optimization problem, which is why calculus needs a reliable way to find them.

Critical numbers

\[c \text{ is a critical number of } f \iff f'(c) = 0 \text{ or } f'(c) \text{ does not exist} \quad (c \text{ in the domain of } f)\]

Critical numbers are the only candidates for local extremes in the interior of the domain. Not every critical number is an extremum: \(f(x) = x^3\) has \(f'(0) = 0\) but no max or min at 0.

Where it comes from

Fermat's theorem (next) shows that at a local extremum the derivative is either 0 or undefined, so collecting all such points gives a complete list of candidates.

Fermat's theorem

\[f \text{ has a local extremum at } c \text{ and } f'(c) \text{ exists} \implies f'(c) = 0\]

At the top of a smooth hill or the bottom of a smooth valley, the tangent line is horizontal.

Where it comes from

Suppose \(f\) has a local maximum at \(c\). For small \(h > 0\), \(f(c + h) \le f(c)\), so the difference quotient \(\frac{f(c + h) - f(c)}{h} \le 0\) and its right-hand limit gives \(f'(c) \le 0\). For small \(h < 0\), the numerator is still \(\le 0\) but the denominator is negative, so the quotient is \(\ge 0\) and the left-hand limit gives \(f'(c) \ge 0\). Both hold only if \(f'(c) = 0\). The minimum case is the same with the inequalities reversed.

Closed interval method

\[\text{absolute max/min of a continuous } f \text{ on } [a, b] \in \{f(a),\ f(b),\ f(c) : c \text{ critical in } (a, b)\}\]

To find the absolute extremes on a closed interval: find the critical numbers inside the interval, evaluate \(f\) at them and at both endpoints, then pick the largest and smallest values. No sign charts are needed.

Where it comes from

The extreme value theorem guarantees the absolute max and min exist. Each one occurs either at an endpoint or at an interior point; at an interior point it is also a local extremum, so by Fermat's theorem it must be a critical number. Checking every candidate therefore finds it.

Rolle's theorem

\[f \text{ continuous on } [a, b], \text{ differentiable on } (a, b), \ f(a) = f(b) \implies \exists\, c \in (a, b): f'(c) = 0\]

If a smooth curve starts and ends at the same height, somewhere in between it has a horizontal tangent. Rolle's theorem is mainly used to prove the mean value theorem and to show an equation has at most one root.

Where it comes from

If \(f\) is constant, \(f'(c) = 0\) everywhere. Otherwise \(f\) goes above or below \(f(a)\) somewhere. By the extreme value theorem, it reaches an absolute max (or min) at some \(c\) strictly inside \((a, b)\), because the endpoints have the same value and something beats it. That \(c\) is a local extremum where \(f\) is differentiable, so Fermat's theorem gives \(f'(c) = 0\).

Mean value theorem

\[f \text{ continuous on } [a, b], \text{ differentiable on } (a, b) \implies \exists\, c \in (a, b): \ f'(c) = \frac{f(b) - f(a)}{b - a}\]

Somewhere the instantaneous rate of change equals the average rate of change. If you drive 120 miles in 2 hours, at some instant your speedometer read exactly 60 mph. Geometrically, some tangent line is parallel to the secant line through the endpoints.

Where it comes from

Subtract the secant line from \(f\). Let \(g(x) = f(x) - \left[f(a) + \frac{f(b) - f(a)}{b - a}(x - a)\right]\). Then \(g(a) = 0\) and \(g(b) = 0\), and \(g\) is continuous and differentiable wherever \(f\) is. Rolle's theorem gives a \(c\) with \(g'(c) = 0\):

\[g'(c) = f'(c) - \frac{f(b) - f(a)}{b - a} = 0\]

Consequences of the mean value theorem

\[f' = 0 \text{ on an interval} \implies f \text{ is constant} \qquad f' = g' \text{ on an interval} \implies f = g + C\]

These facts justify the "+ C" in every antiderivative: two functions with the same derivative differ only by a constant. The interval condition matters: \(\frac{|x|}{x}\) has derivative 0 everywhere it is defined, but it is not constant because its domain has a gap.

Where it comes from

For any \(x_1 < x_2\) in the interval, the mean value theorem gives \(f(x_2) - f(x_1) = f'(c)(x_2 - x_1) = 0\), so all values are equal. For the second statement, apply the first to \(f - g\), whose derivative is 0.

Increasing and decreasing test

\[f' > 0 \text{ on an interval} \implies f \text{ increasing} \qquad f' < 0 \text{ on an interval} \implies f \text{ decreasing}\]

The sign of the derivative tells you the direction of the graph. To find where \(f\) increases or decreases, find the critical numbers, split the number line at them, and test the sign of \(f'\) in each piece.

Where it comes from

Take \(x_1 < x_2\) in the interval. The mean value theorem gives \(f(x_2) - f(x_1) = f'(c)(x_2 - x_1)\) for some \(c\) between them. Both factors are positive when \(f' > 0\), so \(f(x_2) > f(x_1)\).

The shape of a graph

First derivative test

\[f' \text{ changes } + \to - \text{ at } c: \text{ local max} \qquad - \to +: \text{ local min} \qquad \text{no sign change: neither}\]

\(c\) is a critical number and \(f\) is continuous at \(c\).

Rising then falling makes a peak; falling then rising makes a valley. If \(f'\) keeps the same sign on both sides, the graph just flattens out and continues (like \(x^3\) at 0).

Where it comes from

If \(f' > 0\) just left of \(c\) and \(f' < 0\) just right, the increasing/decreasing test says \(f\) increases up to \(c\) and decreases after it, so \(f(c)\) is at least as big as every nearby value. The other cases follow the same way.

Concavity

\[f'' > 0 \text{ on an interval} \implies \text{concave up} \qquad f'' < 0 \implies \text{concave down}\]

Concave up means the graph bends upward like a cup and lies above its tangent lines; the slope is increasing. Concave down means it bends like a cap, lies below its tangent lines, and the slope is decreasing.

Where it comes from

\(f''\) is the derivative of \(f'\), so \(f'' > 0\) means \(f'\) is increasing by the increasing/decreasing test. An increasing slope makes the graph turn counterclockwise, which bends it upward. To see that the graph lies above a tangent line at \(a\): by the mean value theorem, \(f(x) - f(a) = f'(c)(x - a)\) for some \(c\) between \(a\) and \(x\), and because \(f'\) is increasing, \(f'(c)(x - a) \ge f'(a)(x - a)\) on both sides of \(a\).

Inflection points

\[(c, f(c)) \text{ is an inflection point} \iff f \text{ is continuous at } c \text{ and concavity changes there}\]

Inflection points are where the graph switches between cup and cap. Look for them where \(f''(c) = 0\) or \(f''(c)\) is undefined, then check that \(f''\) actually changes sign: \(f(x) = x^4\) has \(f''(0) = 0\) but no inflection point.

Where it comes from

Concavity is the sign of \(f''\), so a change of concavity is a change of sign of \(f''\). A sign change can only happen where \(f''\) is 0 or undefined (if \(f''\) has the intermediate value property, which derivatives always do), which is why those points are the candidates.

Second derivative test

\[f'(c) = 0 \text{ and } f''(c) > 0 \implies \text{local min} \qquad f'(c) = 0 \text{ and } f''(c) < 0 \implies \text{local max}\]

If \(f''(c) = 0\), the test gives no information; use the first derivative test.

A horizontal tangent on a cup-shaped curve is a valley; on a cap-shaped curve it is a peak. It is often faster than a sign chart, but it fails when \(f''(c) = 0\): \(x^4\), \(-x^4\) and \(x^3\) all have \(f'(0) = f''(0) = 0\) and are a min, a max and neither.

Where it comes from

If \(f''(c) > 0\), then \(f'\) is increasing near \(c\) (when \(f''\) is continuous, it stays positive nearby). Since \(f'(c) = 0\), \(f'\) must be negative just before \(c\) and positive just after. The first derivative test then says local min.

Reading f, f′ and f″ together

\[\begin{aligned} &f' > 0 \Leftrightarrow f \nearrow \qquad f' = 0 \text{ with sign change} \Leftrightarrow f \text{ has a local extremum} \\ &f'' > 0 \Leftrightarrow f' \nearrow \qquad f' \text{ has a local extremum} \Leftrightarrow f \text{ has an inflection point} \end{aligned}\]

Each derivative describes the one above it. Where the graph of \(f'\) is above the axis, \(f\) rises; where \(f'\) crosses the axis, \(f\) turns around; where \(f'\) peaks or bottoms out, \(f\) changes concavity. This is how to sketch \(f\) from a graph of \(f'\), a common exam question.

Where it comes from

Each line is the increasing/decreasing test or the first derivative test applied to the right function: to \(f\) with derivative \(f'\), or to \(f'\) with derivative \(f''\).

Optimization, related rates and motion

Optimization method

\[\text{write } Q \text{ as a function of one variable} \to \text{find critical numbers} \to \text{test them and the endpoints}\]

1. Draw a picture and name the variables. 2. Write the quantity to optimize. 3. Use the constraint to eliminate all but one variable. 4. Find the domain. 5. Find critical numbers and test them (closed interval method, first derivative test or second derivative test). 6. Answer the question that was asked, with units.

If the domain is not closed, the closed interval method does not apply. Then a single critical number that is a local max (or min) on an interval is automatically the absolute max (or min).

Where it comes from

The method combines the extreme value theorem and Fermat's theorem: the answer must be at a critical number or an endpoint. The "only one critical number" shortcut holds because if a local max were not the absolute max, the function would have to turn around again somewhere, creating a second critical number.

Newton's method

\[x_{n+1} = x_n - \frac{f(x_n)}{f'(x_n)}\]

A way to approximate a root of \(f(x) = 0\). Start with a guess \(x_0\), follow the tangent line down to the \(x\)-axis, and use where it lands as the next guess. When it works it is extremely fast (the number of correct digits roughly doubles each step), but it can fail if \(f'(x_n)\) is near 0 or the starting guess is poor.

Where it comes from

The tangent line at \(x_n\) is \(y = f(x_n) + f'(x_n)(x - x_n)\). Set \(y = 0\) and solve for \(x\): that is \(x_{n+1}\). It is linear approximation used repeatedly.

Motion along a line

\[v(t) = s'(t) \qquad a(t) = v'(t) = s''(t) \qquad \text{speed} = |v(t)|\]

For position \(s(t)\): the particle is at rest when \(v = 0\), moves right/up when \(v > 0\) and left/down when \(v < 0\), and changes direction when \(v\) changes sign. It speeds up when \(v\) and \(a\) have the same sign and slows down when they have opposite signs. Total distance traveled adds the lengths of the trips in each direction.

Where it comes from

Velocity is the rate of change of position and acceleration is the rate of change of velocity, by definition of the derivative. Speed increases exactly when \(\frac{d}{dt}|v| > 0\); for \(v \ne 0\) that derivative is \(\frac{v}{|v|}a\), which is positive exactly when \(v\) and \(a\) share a sign.

Integrals

Antiderivatives

Antiderivatives and the indefinite integral

\[\int f(x)\,dx = F(x) + C \iff F'(x) = f(x)\]

An antiderivative of \(f\) is a function whose derivative is \(f\). The indefinite integral \(\int f(x)\,dx\) stands for all of them at once, which is why it carries an arbitrary constant \(C\). Integration undoes differentiation.

Where it comes from

If \(F' = f\) then \((F + C)' = f\) for any constant, so there are infinitely many antiderivatives. By the consequences of the mean value theorem, any two antiderivatives on an interval differ by a constant, so \(F + C\) lists every one of them.

Power rule for integrals

\[\int x^n\,dx = \frac{x^{n+1}}{n + 1} + C \qquad (n \ne -1)\]

Raise the exponent by one and divide by the new exponent. Rewrite roots and reciprocals as powers first. The case \(n = -1\) would divide by zero; it has its own answer, \(\ln|x|\).

Where it comes from

Differentiate the answer: \(\frac{d}{dx}\frac{x^{n+1}}{n + 1} = \frac{(n + 1)x^n}{n + 1} = x^n\). Every integration formula is proved this way, by differentiating the right-hand side.

Linearity of the integral

\[\int \big[af(x) + bg(x)\big]\,dx = a\int f(x)\,dx + b\int g(x)\,dx\]

Constants factor out and sums split apart, so polynomials are integrated term by term. There is no product rule or quotient rule for integrals; products need substitution or integration by parts.

Where it comes from

Differentiation is linear: \(\frac{d}{dx}[aF + bG] = aF' + bG' = af + bg\). Reading this backward gives the integral rule.

Reciprocal and exponential integrals

\[\int \frac{1}{x}\,dx = \ln|x| + C \qquad \int e^x\,dx = e^x + C \qquad \int a^x\,dx = \frac{a^x}{\ln a} + C \qquad \int e^{kx}\,dx = \frac{1}{k}e^{kx} + C\]

The absolute value lets \(\int \frac{1}{x}\,dx\) work for negative \(x\) too. These four come straight from the derivative table read backward.

Where it comes from

\(\frac{d}{dx}\ln|x| = \frac{1}{x}\) for every \(x \ne 0\), \(\frac{d}{dx}e^x = e^x\), \(\frac{d}{dx}\frac{a^x}{\ln a} = \frac{a^x\ln a}{\ln a} = a^x\), and \(\frac{d}{dx}\frac{e^{kx}}{k} = e^{kx}\) by the chain rule.

Basic trigonometric integrals

\[\int \sin x\,dx = -\cos x + C \quad \int \cos x\,dx = \sin x + C \quad \int \sec^2 x\,dx = \tan x + C \quad \int \sec x\tan x\,dx = \sec x + C\]

Also \(\int \csc^2 x\,dx = -\cot x + C\) and \(\int \csc x\cot x\,dx = -\csc x + C\). Watch the signs: the antiderivative of \(\sin x\) is \(-\cos x\), because the derivative of \(\cos x\) is \(-\sin x\).

Where it comes from

Each is a derivative formula read backward. For example \(\frac{d}{dx}(-\cos x) = \sin x\).

Tangent and secant integrals

\[\int \tan x\,dx = \ln|\sec x| + C \qquad \int \sec x\,dx = \ln|\sec x + \tan x| + C\]

Also \(\int \cot x\,dx = \ln|\sin x| + C\) and \(\int \csc x\,dx = -\ln|\csc x + \cot x| + C\). These are not in the derivative table, so they have to be found with a trick.

Where it comes from

For tangent, write \(\tan x = \frac{\sin x}{\cos x}\) and let \(u = \cos x\), \(du = -\sin x\,dx\): \(\int\frac{\sin x}{\cos x}dx = -\int\frac{du}{u} = -\ln|\cos x| = \ln|\sec x|\). For secant, multiply by a clever form of 1 so the top becomes the derivative of the bottom:

\[\int \sec x\cdot\frac{\sec x + \tan x}{\sec x + \tan x}\,dx = \int\frac{\sec^2 x + \sec x\tan x}{\sec x + \tan x}\,dx = \ln|\sec x + \tan x| + C\]

Inverse trigonometric integrals

\[\int\frac{dx}{\sqrt{a^2 - x^2}} = \arcsin\frac{x}{a} + C \qquad \int\frac{dx}{a^2 + x^2} = \frac{1}{a}\arctan\frac{x}{a} + C \qquad \int\frac{dx}{x\sqrt{x^2 - a^2}} = \frac{1}{a}\operatorname{arcsec}\frac{|x|}{a} + C\]

Algebraic integrands that have no algebraic antiderivative. Recognizing the forms \(a^2 - x^2\) under a root and \(a^2 + x^2\) in a denominator is the key; completing the square often reveals them.

Where it comes from

Differentiate with the chain rule. For the arctangent form: \(\frac{d}{dx}\frac{1}{a}\arctan\frac{x}{a} = \frac{1}{a}\cdot\frac{1}{1 + x^2/a^2}\cdot\frac{1}{a} = \frac{1}{a^2 + x^2}\). The others work the same way from the arcsine and arcsecant derivatives.

Initial value problems

\[F'(x) = f(x), \ F(x_0) = y_0 \implies F(x) = \int f(x)\,dx \text{ with } C \text{ chosen so that } F(x_0) = y_0\]

A condition like \(F(0) = 3\) picks out one antiderivative from the whole family. For a second derivative, integrate twice and use two conditions to find two constants.

Where it comes from

All antiderivatives have the form \(G(x) + C\). Substituting \(x_0\) gives \(G(x_0) + C = y_0\), which has exactly one solution \(C = y_0 - G(x_0)\).

Riemann sums and the definite integral

Summation formulas

\[\sum_{i=1}^{n} 1 = n \qquad \sum_{i=1}^{n} i = \frac{n(n + 1)}{2} \qquad \sum_{i=1}^{n} i^2 = \frac{n(n + 1)(2n + 1)}{6} \qquad \sum_{i=1}^{n} i^3 = \left[\frac{n(n + 1)}{2}\right]^2\]

These closed forms turn Riemann sums of polynomials into expressions you can take a limit of.

Where it comes from

Gauss's trick: write \(1 + 2 + \cdots + n\) forward and backward and add. Each of the \(n\) columns sums to \(n + 1\), so twice the sum is \(n(n + 1)\). For squares, add up the identity \((i + 1)^3 - i^3 = 3i^2 + 3i + 1\) from \(i = 1\) to \(n\). The left side telescopes to \((n + 1)^3 - 1\); solving for \(\sum i^2\) gives the formula.

Riemann sums

\[\sum_{i=1}^{n} f(x_i^*)\,\Delta x, \qquad \Delta x = \frac{b - a}{n}, \quad x_i = a + i\,\Delta x\]

Chop \([a, b]\) into \(n\) strips of width \(\Delta x\), build a rectangle on each with height \(f(x_i^*)\) at a sample point, and add their areas. Left sums use left endpoints \(x_{i-1}\), right sums use right endpoints \(x_i\), midpoint sums use midpoints. For an increasing function, left sums underestimate and right sums overestimate.

Where it comes from

Rectangles are the one shape whose area is easy. Archimedes used the same idea with thin slices to find the area under a parabola around 250 BC; Riemann made it precise in 1854 by allowing any sample points.

Definite integral

\[\int_a^b f(x)\,dx = \lim_{n\to\infty}\sum_{i=1}^{n} f(x_i^*)\,\Delta x\]

The definite integral is the net signed area between the graph and the \(x\)-axis: area above the axis counts as positive and area below counts as negative. It is a number, not a family of functions. Every continuous function (and every function with finitely many jumps) on \([a, b]\) is integrable.

Where it comes from

As the strips get thinner, the rectangles fit the region better and the error shrinks to 0. Using the summation formulas, for example:

\[\int_0^1 x^2\,dx = \lim_{n\to\infty}\sum_{i=1}^{n}\left(\frac{i}{n}\right)^2\frac{1}{n} = \lim_{n\to\infty}\frac{n(n + 1)(2n + 1)}{6n^3} = \frac{2}{6} = \frac{1}{3}\]

Trapezoidal and Simpson's rules

\[T_n = \frac{\Delta x}{2}\big[f(x_0) + 2f(x_1) + \cdots + 2f(x_{n-1}) + f(x_n)\big] \qquad S_n = \frac{\Delta x}{3}\big[f(x_0) + 4f(x_1) + 2f(x_2) + \cdots + 4f(x_{n-1}) + f(x_n)\big]\]

Simpson's rule needs an even \(n\).

Better numerical estimates than rectangles. The trapezoidal rule replaces each rectangle with a trapezoid; Simpson's rule fits a parabola through each pair of strips. Simpson's error shrinks like \(\frac{1}{n^4}\), much faster than the trapezoidal rule's \(\frac{1}{n^2}\).

Where it comes from

A trapezoid on \([x_{i-1}, x_i]\) has area \(\frac{\Delta x}{2}[f(x_{i-1}) + f(x_i)]\); adding them counts each interior point twice. \(T_n\) is also the average of the left and right sums. For Simpson's rule, the parabola through three equally spaced points has exact area \(\frac{\Delta x}{3}[y_0 + 4y_1 + y_2]\), and adding these pieces gives the 1, 4, 2, 4, ..., 4, 1 pattern.

Properties of the definite integral

\[\int_a^a f = 0 \qquad \int_b^a f = -\int_a^b f \qquad \int_a^b f + \int_b^c f = \int_a^c f \qquad \int_a^b (\alpha f + \beta g) = \alpha\int_a^b f + \beta\int_a^b g\]

Reversing the limits flips the sign; integrals over adjacent intervals add; constants and sums behave as expected.

Where it comes from

Zero width means zero area. Running from \(b\) to \(a\) makes \(\Delta x = \frac{a - b}{n}\) negative, flipping every term. Additivity is area adding up. Linearity holds for every Riemann sum, so it holds for the limit.

Comparison properties

\[f \ge g \text{ on } [a, b] \implies \int_a^b f \ge \int_a^b g \qquad m \le f \le M \implies m(b - a) \le \int_a^b f \le M(b - a)\]

Useful for estimating integrals you cannot compute exactly, and for the comparison test for improper integrals. Also \(\left|\int_a^b f\right| \le \int_a^b |f|\).

Where it comes from

The inequality holds term by term in every Riemann sum (\(f(x_i^*)\Delta x \ge g(x_i^*)\Delta x\)), and limits preserve non-strict inequalities. The bounds compare \(f\) with the constant functions \(m\) and \(M\), whose integrals are rectangle areas.

Even and odd functions

\[f \text{ even} \implies \int_{-a}^{a} f(x)\,dx = 2\int_0^a f(x)\,dx \qquad f \text{ odd} \implies \int_{-a}^{a} f(x)\,dx = 0\]

Check for symmetry before integrating over \([-a, a]\). For example, \(\int_{-5}^{5} x^3\cos x\,dx = 0\) without any work, since \(x^3\cos x\) is odd.

Where it comes from

Split at 0 and substitute \(x = -u\) in the left half: \(\int_{-a}^0 f(x)\,dx = \int_0^a f(-u)\,du\). For an even function that equals \(\int_0^a f\), doubling the total; for an odd function it equals \(-\int_0^a f\), cancelling it.

The fundamental theorem of calculus

FTC part 1

\[g(x) = \int_a^x f(t)\,dt \implies g'(x) = f(x)\]

\(f\) continuous.

The rate at which area accumulates equals the height of the curve at the moving edge. So every continuous function has an antiderivative, namely its own accumulation function. This connects the two halves of calculus: differentiation and integration are inverse processes.

Where it comes from

Increase \(x\) by \(h\). The new area added is a thin strip:

\[\frac{g(x + h) - g(x)}{h} = \frac{1}{h}\int_x^{x + h} f(t)\,dt\]

On \([x, x + h]\), \(f\) has a minimum \(m_h\) and maximum \(M_h\) (extreme value theorem), so the strip's area is between \(m_hh\) and \(M_hh\), and the quotient is between \(m_h\) and \(M_h\). As \(h \to 0\), both squeeze to \(f(x)\) by continuity, so \(g'(x) = f(x)\).

FTC part 1 with the chain rule

\[\frac{d}{dx}\int_a^{u(x)} f(t)\,dt = f\big(u(x)\big)\,u'(x) \qquad \frac{d}{dx}\int_{v(x)}^{u(x)} f(t)\,dt = f\big(u(x)\big)u'(x) - f\big(v(x)\big)v'(x)\]

Plug the upper limit into the integrand and multiply by its derivative. A variable lower limit contributes the same with a minus sign.

Where it comes from

\(\int_a^{u(x)} f(t)\,dt = g(u(x))\) with \(g\) from part 1, so the chain rule gives \(g'(u)u' = f(u)u'\). For two variable limits, split at a constant \(a\): \(\int_v^u = \int_a^u - \int_a^v\).

FTC part 2 (evaluation theorem)

\[\int_a^b f(x)\,dx = F(b) - F(a) = \Big[F(x)\Big]_a^b \qquad \text{where } F' = f\]

\(f\) continuous on \([a, b]\).

To compute a definite integral, find any antiderivative and subtract its values at the endpoints. This replaces a limit of Riemann sums with one subtraction. The constant \(C\) cancels, so leave it out.

Where it comes from

By part 1, \(g(x) = \int_a^x f(t)\,dt\) is an antiderivative of \(f\). Any other antiderivative is \(F = g + C\). Then

\[F(b) - F(a) = [g(b) + C] - [g(a) + C] = g(b) - g(a) = \int_a^b f(t)\,dt - 0\]

Net change theorem

\[\int_a^b F'(x)\,dx = F(b) - F(a)\]

Integrating a rate of change gives the total change. Integrating velocity gives displacement, integrating a flow rate gives the total volume added, integrating marginal cost gives the change in cost. In the form \(F(b) = F(a) + \int_a^b F'(x)\,dx\), it finds a final amount from a starting amount and a rate.

Where it comes from

This is FTC part 2 with \(f = F'\), read as a statement about change instead of area.

Average value of a function

\[f_{\text{avg}} = \frac{1}{b - a}\int_a^b f(x)\,dx\]

The height of the rectangle on \([a, b]\) with the same area as the region under \(f\). It extends "add up and divide by how many" to a continuum of values.

Where it comes from

Average \(n\) equally spaced samples: \(\frac{1}{n}\sum f(x_i) = \frac{1}{b - a}\sum f(x_i)\frac{b - a}{n} = \frac{1}{b - a}\sum f(x_i)\Delta x\). As \(n \to \infty\) the Riemann sum becomes the integral.

Mean value theorem for integrals

\[\exists\, c \in [a, b]: \ f(c) = \frac{1}{b - a}\int_a^b f(x)\,dx\]

\(f\) continuous on \([a, b]\).

A continuous function actually takes its average value somewhere.

Where it comes from

By the extreme value theorem, \(m \le f \le M\) on \([a, b]\), so the comparison property gives \(m \le f_{\text{avg}} \le M\). The average lies between the min and max values of \(f\), so the intermediate value theorem gives a \(c\) with \(f(c) = f_{\text{avg}}\). Equivalently, it is the ordinary mean value theorem applied to \(g(x) = \int_a^x f\).

Substitution

u-substitution

\[\int f\big(g(x)\big)\,g'(x)\,dx = \int f(u)\,du, \qquad u = g(x),\ du = g'(x)\,dx\]

Look for an inner function whose derivative also appears (up to a constant factor). Set \(u\) equal to the inner function, replace \(dx\) using \(du\), integrate in \(u\), then substitute back. If anything with \(x\) is left over that cannot be written in terms of \(u\), the choice of \(u\) is wrong.

Where it comes from

It is the chain rule run backward. If \(F' = f\), the chain rule says \(\frac{d}{dx}F(g(x)) = f(g(x))g'(x)\). So \(\int f(g(x))g'(x)\,dx = F(g(x)) + C = F(u) + C = \int f(u)\,du\).

Substitution in definite integrals

\[\int_a^b f\big(g(x)\big)\,g'(x)\,dx = \int_{g(a)}^{g(b)} f(u)\,du\]

Change the limits to \(u\)-values and never substitute back. Mixing \(x\)-limits with a \(u\)-integrand is a very common error.

Where it comes from

With \(F' = f\), both sides equal \(F(g(b)) - F(g(a))\) by FTC part 2: the left side because \(F(g(x))\) is an antiderivative of the integrand, and the right side directly.

Linear substitution shortcut

\[\int f(ax + b)\,dx = \frac{1}{a}F(ax + b) + C\]

When the inside is linear, integrate as usual and divide by the coefficient of \(x\). Example: \(\int \cos(3x - 1)\,dx = \frac{1}{3}\sin(3x - 1) + C\).

Where it comes from

Let \(u = ax + b\), \(du = a\,dx\): \(\int f(u)\frac{du}{a} = \frac{1}{a}F(u) + C\).

Integration by parts

Integration by parts

\[\int u\,dv = uv - \int v\,du \qquad \int_a^b u\,dv = \Big[uv\Big]_a^b - \int_a^b v\,du\]

Used for products where substitution fails, like \(x e^x\), \(x\sin x\), \(\ln x\) and \(\arctan x\). Choose \(u\) to be something that gets simpler when differentiated and \(dv\) something you can integrate. The goal is a new integral \(\int v\,du\) that is easier than the original.

Where it comes from

It is the product rule run backward. Start from \((uv)' = u'v + uv'\) and integrate both sides:

\[uv = \int v\,u'\,dx + \int u\,v'\,dx \implies \int u\,dv = uv - \int v\,du\]

Choosing u (LIATE)

\[\text{Logarithmic} \to \text{Inverse trig} \to \text{Algebraic} \to \text{Trig} \to \text{Exponential}\]

Pick \(u\) as whichever factor appears first in this list; the rest is \(dv\). For \(\int x^2\ln x\,dx\), \(u = \ln x\); for \(\int x\cos x\,dx\), \(u = x\). It is a rule of thumb, not a law.

Where it comes from

Functions early in the list (logs, inverse trig) have simple derivatives but awkward antiderivatives, so they belong in \(u\). Functions late in the list (exponentials, sine, cosine) are easy to integrate repeatedly, so they belong in \(dv\). Polynomials sit in the middle because each derivative lowers their degree.

Tabular integration

\[\int p(x)\,g(x)\,dx = p\,G_1 - p'\,G_2 + p''\,G_3 - \cdots\]

\(p\) a polynomial; \(G_k\) is the \(k\)th repeated antiderivative of \(g\).

A shortcut for repeated integration by parts. List derivatives of the polynomial down one column until 0, antiderivatives of the other factor down the next, then multiply diagonally with alternating signs \(+, -, +, \ldots\). Example: \(\int x^2e^x\,dx = x^2e^x - 2xe^x + 2e^x + C\).

Where it comes from

Each round of integration by parts with \(u = p^{(k)}\) produces one diagonal product and a new integral of \(p^{(k+1)}G_{k+1}\) with the opposite sign. The process ends when the derivative of the polynomial is 0.

Integrals that return

\[I = \int e^{ax}\sin bx\,dx \implies I = (\text{terms}) - \frac{b^2}{a^2}I \implies I = \frac{e^{ax}(a\sin bx - b\cos bx)}{a^2 + b^2} + C\]

Sometimes two rounds of integration by parts bring back the original integral. Do not go around in circles: name the integral \(I\), collect both copies on one side, and solve for \(I\) algebraically.

Where it comes from

Integrating by parts twice with \(u\) = the trig factor (both times) gives \(I = \frac{1}{a}e^{ax}\sin bx - \frac{b}{a^2}e^{ax}\cos bx - \frac{b^2}{a^2}I\). Move the last term left: \(\left(1 + \frac{b^2}{a^2}\right)I = \frac{e^{ax}(a\sin bx - b\cos bx)}{a^2}\), then divide.

Trigonometric integrals and substitution

Powers of sine and cosine

\[\int \sin^m x\cos^n x\,dx: \quad m \text{ odd} \Rightarrow u = \cos x \qquad n \text{ odd} \Rightarrow u = \sin x \qquad \text{both even} \Rightarrow \text{half-angle identities}\]

With an odd power, split off one factor to become \(du\) and convert the remaining even power with \(\sin^2 x + \cos^2 x = 1\). With only even powers, reduce them with \(\sin^2 x = \frac{1 - \cos 2x}{2}\) and \(\cos^2 x = \frac{1 + \cos 2x}{2}\).

Where it comes from

Example with \(m = 3\): save one \(\sin x\) for \(du = -\sin x\,dx\), and \(\sin^2 x = 1 - \cos^2 x\) leaves only cosines:

\[\int \sin^3 x\cos^2 x\,dx = \int (1 - \cos^2 x)\cos^2 x\,\sin x\,dx = -\int (1 - u^2)u^2\,du = -\frac{\cos^3 x}{3} + \frac{\cos^5 x}{5} + C\]

Powers of tangent and secant

\[\int \tan^m x\sec^n x\,dx: \quad n \text{ even} \Rightarrow u = \tan x \qquad m \text{ odd} \Rightarrow u = \sec x\]

With an even power of secant, save \(\sec^2 x\) (the derivative of \(\tan x\)) and convert the rest with \(\sec^2 x = 1 + \tan^2 x\). With an odd power of tangent, save \(\sec x\tan x\) (the derivative of \(\sec x\)) and convert the rest with \(\tan^2 x = \sec^2 x - 1\).

Where it comes from

Each strategy leaves exactly the factor that \(du\) needs, and the identity rewrites everything else in terms of \(u\). Both identities come from dividing \(\sin^2 x + \cos^2 x = 1\) by \(\cos^2 x\).

Trigonometric substitution

\[\sqrt{a^2 - x^2}: \ x = a\sin\theta \qquad \sqrt{a^2 + x^2}: \ x = a\tan\theta \qquad \sqrt{x^2 - a^2}: \ x = a\sec\theta\]

For square roots of quadratics that substitution cannot handle. Each substitution turns the expression under the root into a perfect square, so the root disappears. After integrating in \(\theta\), draw a right triangle from the substitution (for \(x = a\sin\theta\): opposite \(x\), hypotenuse \(a\)) to convert back to \(x\).

Where it comes from

The three Pythagorean identities do the work:

\[a^2 - a^2\sin^2\theta = a^2\cos^2\theta \qquad a^2 + a^2\tan^2\theta = a^2\sec^2\theta \qquad a^2\sec^2\theta - a^2 = a^2\tan^2\theta\]

The ranges of \(\theta\) (as for inverse sine, tangent and secant) make the square roots come out positive.

Completing the square

\[x^2 + bx + c = \left(x + \frac{b}{2}\right)^2 + \left(c - \frac{b^2}{4}\right)\]

An integrand with a general quadratic like \(\frac{1}{x^2 + 4x + 13}\) becomes a standard arctangent, arcsine or trig-substitution form after completing the square and substituting \(u = x + \frac{b}{2}\): \(\int\frac{dx}{(x + 2)^2 + 9} = \frac{1}{3}\arctan\frac{x + 2}{3} + C\).

Where it comes from

Expand \(\left(x + \frac{b}{2}\right)^2 = x^2 + bx + \frac{b^2}{4}\) and add back the difference.

Partial fractions

Partial fraction decomposition

\[\frac{P(x)}{(x - a)(x - b)} = \frac{A}{x - a} + \frac{B}{x - b}\]

\(\deg P < \deg Q\) and \(a \ne b\).

Split a rational function into simple pieces that each integrate to a log or arctangent. Find the constants by multiplying both sides by the denominator, then plugging in convenient \(x\)-values (the roots) or matching coefficients.

Where it comes from

Adding fractions combines simple denominators into a product; partial fractions undoes that. A theorem of algebra guarantees that every proper rational function can be written as a sum of such pieces. Example: \(\frac{x + 5}{(x - 1)(x + 2)}\): multiply out to \(x + 5 = A(x + 2) + B(x - 1)\); \(x = 1\) gives \(A = 2\) and \(x = -2\) gives \(B = -1\).

Repeated and quadratic factors

\[\frac{P(x)}{(x - a)^k} \to \frac{A_1}{x - a} + \cdots + \frac{A_k}{(x - a)^k} \qquad \frac{P(x)}{x^2 + bx + c} \to \frac{Ax + B}{x^2 + bx + c}\]

The quadratic is irreducible (\(b^2 - 4ac < 0\)).

A repeated linear factor needs one term for each power. An irreducible quadratic factor needs a linear numerator. Integrate the quadratic piece by splitting it into a log part (top is a multiple of the bottom's derivative) and an arctangent part.

Where it comes from

The number of unknown constants must equal the degree of the denominator, so that matching coefficients gives a solvable system. A repeated factor \((x - a)^k\) contributes \(k\) unknowns through \(k\) terms; a quadratic contributes 2 through \(Ax + B\).

Improper rational functions

\[\deg P \ge \deg Q \implies \frac{P(x)}{Q(x)} = S(x) + \frac{R(x)}{Q(x)} \quad (\text{long division}, \ \deg R < \deg Q)\]

Partial fractions only apply when the top has smaller degree. Otherwise, long divide first; the quotient \(S(x)\) is a polynomial that integrates directly.

Where it comes from

The division algorithm for polynomials: \(P = SQ + R\). Divide both sides by \(Q\).

Improper integrals

Infinite intervals

\[\int_a^\infty f(x)\,dx = \lim_{t\to\infty}\int_a^t f(x)\,dx \qquad \int_{-\infty}^{\infty} f\,dx = \int_{-\infty}^{c} f\,dx + \int_c^{\infty} f\,dx\]

Integrate up to a finite limit \(t\), then let \(t \to \infty\). If the limit is a finite number, the integral converges; otherwise it diverges. A doubly infinite integral converges only if both halves converge separately.

Where it comes from

The Riemann sum definition needs a bounded interval, so the integral over an unbounded one is defined as a limit of ordinary integrals. Infinitely long regions can still have finite area when the function drops fast enough.

Infinite discontinuities

\[\int_a^b f(x)\,dx = \lim_{t\to b^-}\int_a^t f(x)\,dx \quad (f \text{ unbounded near } b)\]

If \(f\) blows up at an endpoint, stop short of it and take a limit. If it blows up inside the interval, split there and require both parts to converge. Missing a discontinuity inside the interval gives nonsense: \(\int_{-1}^{1}\frac{dx}{x^2}\) is not \(-2\); it diverges.

Where it comes from

The Riemann sum definition needs a bounded function, so again the integral is defined as a limit of ordinary integrals that avoid the bad point.

p-integrals

\[\int_1^\infty\frac{dx}{x^p} \ \begin{cases} = \dfrac{1}{p - 1} & p > 1 \\ \text{diverges} & p \le 1 \end{cases} \qquad \int_0^1\frac{dx}{x^p} \ \begin{cases} = \dfrac{1}{1 - p} & p < 1 \\ \text{diverges} & p \ge 1 \end{cases}\]

The benchmark for comparisons. Near infinity a function must decay faster than \(\frac{1}{x}\) to have finite area; near 0 it must blow up slower than \(\frac{1}{x}\). The borderline \(\frac{1}{x}\) diverges in both places.

Where it comes from

For \(p \ne 1\): \(\int_1^t x^{-p}\,dx = \frac{t^{1-p} - 1}{1 - p}\). As \(t \to \infty\), \(t^{1-p} \to 0\) if \(p > 1\) and \(\to \infty\) if \(p < 1\). For \(p = 1\), \(\int_1^t\frac{dx}{x} = \ln t \to \infty\). The integral near 0 works the same way with \(t \to 0^+\).

Comparison test for integrals

\[0 \le f(x) \le g(x): \quad \int_a^\infty g \text{ converges} \Rightarrow \int_a^\infty f \text{ converges} \qquad \int_a^\infty f \text{ diverges} \Rightarrow \int_a^\infty g \text{ diverges}\]

Decide convergence without computing the integral. Compare with a p-integral or an exponential: \(\frac{1}{x^2 + 1} \le \frac{1}{x^2}\) shows convergence; \(\frac{1 + e^{-x}}{x} \ge \frac{1}{x}\) shows divergence. A smaller function under a divergent one, or a larger function over a convergent one, tells you nothing.

Where it comes from

For \(f \ge 0\), \(\int_a^t f\) increases with \(t\). If it is bounded by the finite value \(\int_a^\infty g\), it is an increasing bounded function, and such functions always have a finite limit (completeness of the real numbers).

Area and volume

Area between curves

\[A = \int_a^b \big[f(x) - g(x)\big]\,dx \ \ (\text{top} - \text{bottom}) \qquad A = \int_c^d \big[f(y) - g(y)\big]\,dy \ \ (\text{right} - \text{left})\]

Find where the curves intersect to get the limits. If they cross inside the interval, split it there (or integrate \(|f - g|\)). When the region is bounded on the left and right by curves \(x = f(y)\), integrating in \(y\) usually avoids splitting.

Where it comes from

Slice the region into thin vertical rectangles of height \(f(x) - g(x)\) and width \(\Delta x\). Their total area is a Riemann sum for \(\int (f - g)\,dx\), and the limit gives the exact area. Horizontal slices give the \(dy\) version.

Volume by cross sections

\[V = \int_a^b A(x)\,dx\]

Slice a solid perpendicular to an axis. If each slice at position \(x\) has area \(A(x)\), the volume is the integral of the area. For square cross sections of side \(s\), \(A = s^2\); for semicircles of diameter \(s\), \(A = \frac{\pi s^2}{8}\); for equilateral triangles, \(A = \frac{\sqrt{3}}{4}s^2\).

Where it comes from

Each thin slab has volume about \(A(x_i)\,\Delta x\) (area times thickness). Adding them gives a Riemann sum for \(\int A(x)\,dx\). This is Cavalieri's principle in calculus form.

Disk and washer method

\[V = \pi\int_a^b R(x)^2\,dx \qquad V = \pi\int_a^b \big[R(x)^2 - r(x)^2\big]\,dx\]

For a region revolved around an axis, slices perpendicular to the axis are disks, or washers when there is a hole. \(R\) is the outer radius and \(r\) the inner radius, both measured from the axis of rotation. Around \(y = k\), the radius is \(|f(x) - k|\), not \(f(x)\).

Where it comes from

A slice perpendicular to the axis is a circle of area \(\pi R^2\), or a circle with a hole, area \(\pi R^2 - \pi r^2\). Plug these into the cross-section formula \(V = \int A(x)\,dx\).

Shell method

\[V = 2\pi\int_a^b (\text{radius})(\text{height})\,dx = 2\pi\int_a^b x\,f(x)\,dx \quad (\text{about the } y\text{-axis})\]

Use thin strips parallel to the axis of rotation instead of perpendicular. Each strip sweeps out a cylindrical shell. Shells are often easier when the region is described as \(y = f(x)\) but rotated about a vertical axis. Around \(x = h\), the radius is \(|x - h|\).

Where it comes from

Cut a thin-walled cylinder open and flatten it: it is nearly a rectangular slab with length \(2\pi r\) (the circumference), height \(h\), and thickness \(\Delta x\). Its volume is about \(2\pi r h\,\Delta x\). Adding the shells gives the Riemann sum for the formula.

Arc length, surface area and work

Arc length

\[L = \int_a^b \sqrt{1 + \big[f'(x)\big]^2}\,dx \qquad L = \int_\alpha^\beta \sqrt{\left(\frac{dx}{dt}\right)^2 + \left(\frac{dy}{dt}\right)^2}\,dt\]

The length of a curve. The square root makes most of these integrals impossible to do by hand, so problems are chosen so that \(1 + (f')^2\) is a perfect square, or a numerical answer is expected.

Where it comes from

Approximate the curve by short straight segments. By the Pythagorean theorem, a segment covering \(\Delta x\) has length \(\sqrt{(\Delta x)^2 + (\Delta y)^2} = \sqrt{1 + \left(\frac{\Delta y}{\Delta x}\right)^2}\Delta x\). By the mean value theorem \(\frac{\Delta y}{\Delta x} = f'(x_i^*)\) for some point in the piece, so the total is a Riemann sum for the integral. The parametric version uses \(\sqrt{(\Delta x)^2 + (\Delta y)^2}\) with both divided by \(\Delta t\).

Polar area and length

\[A = \frac{1}{2}\int_\alpha^\beta r^2\,d\theta \qquad L = \int_\alpha^\beta\sqrt{r^2 + \left(\frac{dr}{d\theta}\right)^2}\,d\theta\]

Polar regions are swept out from the origin, so they are cut into thin pie slices instead of rectangles. For the area between two polar curves, use \(\frac{1}{2}\int (R^2 - r^2)\,d\theta\). Find the limits where the curve starts and ends one trip around the region (for a petal, where \(r = 0\)).

Where it comes from

A circular sector of radius \(r\) and angle \(\Delta\theta\) has area \(\frac{1}{2}r^2\Delta\theta\) (the fraction \(\frac{\Delta\theta}{2\pi}\) of the disk area \(\pi r^2\)). Adding thin sectors gives the area integral. The length formula is the parametric one with \(x = r\cos\theta\), \(y = r\sin\theta\); expanding \((x')^2 + (y')^2\) leaves \(r^2 + (r')^2\).

Surface area of revolution

\[S = 2\pi\int_a^b f(x)\sqrt{1 + \big[f'(x)\big]^2}\,dx \quad (\text{about the } x\text{-axis})\]

The area of the surface swept out by rotating a curve. It is (circumference) times (arc length element). About the \(y\)-axis, replace the radius \(f(x)\) with \(x\).

Where it comes from

Rotating a short segment produces a band of a cone (a frustum), whose area is \(2\pi\cdot(\text{average radius})\cdot(\text{slant length})\). The slant length is the arc length piece \(\sqrt{1 + (f')^2}\,\Delta x\) and the radius is about \(f(x_i)\). Adding the bands gives the integral.

Work

\[W = \int_a^b F(x)\,dx \qquad \text{Hooke's law: } F = kx\]

Work is force times distance when the force is constant. When it varies, integrate. For a spring, \(x\) is the stretch beyond natural length. For pumping a liquid, slice it into thin horizontal layers: each layer's work is (weight of the layer) times (distance it is lifted), \(W = \int \rho g\,A(y)\,D(y)\,dy\).

Where it comes from

Over a short piece \(\Delta x\), the force is nearly constant, so the work is about \(F(x_i)\Delta x\). Adding the pieces gives a Riemann sum for \(\int F\,dx\). For pumping, the distance varies with depth, so slice by depth instead: each slice has its own weight and its own lift distance.

Displacement and total distance

\[\text{displacement} = \int_a^b v(t)\,dt \qquad \text{total distance} = \int_a^b |v(t)|\,dt\]

Displacement is the net change in position, where backward motion cancels forward motion. Total distance counts every stretch as positive. To integrate \(|v|\), find where \(v\) changes sign, split there, and flip the sign of the negative pieces.

Where it comes from

Displacement is the net change theorem with \(s' = v\). Speed \(|v|\) is the rate at which distance accumulates regardless of direction, so its integral is the total distance.

Differential Equations

Differential equations

Differential equations and solutions

\[\frac{dy}{dx} = f(x, y) \qquad \text{general solution (with } C) \qquad \text{particular solution (with } y(x_0) = y_0)\]

A differential equation relates an unknown function to its derivatives. A solution is a function that makes the equation true. The general solution is a whole family; an initial condition picks out one member. To check a proposed solution, substitute it and its derivative into the equation.

Where it comes from

Many laws of nature are statements about rates: populations grow in proportion to their size, objects cool in proportion to the temperature difference, acceleration is proportional to force. Writing these down gives differential equations, and solving them predicts the future from the present.

Slope fields

\[\text{at each point } (x, y), \text{ draw a short segment of slope } f(x, y)\]

A slope field shows the shape of every solution without solving anything. Solution curves follow the segments like a current. Along a horizontal row where \(f(x, y)\) depends only on \(y\), all the segments are parallel.

Where it comes from

The equation \(\frac{dy}{dx} = f(x, y)\) says exactly what the slope of a solution curve must be at each point it passes through. Drawing those slopes on a grid visualizes that requirement.

Euler's method

\[x_{n+1} = x_n + h, \qquad y_{n+1} = y_n + h\,f(x_n, y_n)\]

A numerical approximation: start at the initial point, take a small step \(h\) along the tangent direction, recompute the slope, and repeat. Smaller steps give better accuracy. If solutions are concave up, Euler's method underestimates; if concave down, it overestimates.

Where it comes from

Each step is a linear approximation: \(y(x_n + h) \approx y(x_n) + y'(x_n)h\), and the differential equation supplies \(y'(x_n) = f(x_n, y_n)\).

Separable equations

\[\frac{dy}{dx} = g(x)\,h(y) \implies \int\frac{dy}{h(y)} = \int g(x)\,dx\]

If the right side factors into an \(x\)-part times a \(y\)-part, move all \(y\)'s to one side and all \(x\)'s to the other, integrate both sides, then solve for \(y\) if possible. Use one constant \(C\) on one side. Check for constant solutions where \(h(y) = 0\), which this process can lose.

Where it comes from

Treating \(dy\) and \(dx\) as separate is shorthand for the chain rule. Divide by \(h(y)\): \(\frac{1}{h(y)}\frac{dy}{dx} = g(x)\). If \(H' = \frac{1}{h}\), the left side is \(\frac{d}{dx}H(y)\) by the chain rule, so \(H(y) = \int g(x)\,dx\).

First-order linear equations

\[y' + P(x)y = Q(x) \implies y = \frac{1}{\mu(x)}\int \mu(x)Q(x)\,dx, \qquad \mu(x) = e^{\int P(x)\,dx}\]

For linear equations that are not separable. Multiply both sides by the integrating factor \(\mu\); the left side becomes the derivative of \(\mu y\), and one integration finishes the job.

Where it comes from

\(\mu\) is chosen so that \(\mu' = P\mu\). Then the product rule gives \((\mu y)' = \mu y' + \mu' y = \mu(y' + Py) = \mu Q\). Integrate: \(\mu y = \int \mu Q\,dx\).

Growth and decay models

Exponential growth and decay

\[\frac{dy}{dt} = ky \implies y = y_0e^{kt}\]

When a quantity changes at a rate proportional to its size, it grows exponentially (\(k > 0\)) or decays exponentially (\(k < 0\)). Examples: unlimited population growth, radioactive decay, continuously compounded interest. The doubling time is \(\frac{\ln 2}{k}\) and the half-life is \(\frac{\ln 2}{|k|}\).

Where it comes from

Separate: \(\int\frac{dy}{y} = \int k\,dt\), so \(\ln|y| = kt + C\) and \(y = \pm e^Ce^{kt}\). Setting \(t = 0\) shows the constant in front is \(y_0\).

Newton's law of cooling

\[\frac{dT}{dt} = k(T - T_s) \implies T(t) = T_s + (T_0 - T_s)e^{kt}\]

An object's temperature approaches the surrounding temperature \(T_s\) at a rate proportional to the difference. The difference \(T - T_s\) decays exponentially (here \(k < 0\)). Usually one extra measurement is given to find \(k\).

Where it comes from

Let \(u = T - T_s\). Since \(T_s\) is constant, \(\frac{du}{dt} = \frac{dT}{dt} = ku\), which is exponential decay: \(u = u_0e^{kt}\). Substitute back \(u = T - T_s\).

Logistic growth

\[\frac{dP}{dt} = kP\left(1 - \frac{P}{L}\right) \implies P(t) = \frac{L}{1 + Ae^{-kt}}, \qquad A = \frac{L - P_0}{P_0}\]

Growth that starts exponentially and levels off at a carrying capacity \(L\). The population grows fastest when \(P = \frac{L}{2}\), which is the inflection point of the S-shaped curve. Without solving, you can read off \(\lim_{t\to\infty} P = L\) for any \(P_0 > 0\).

Where it comes from

The factor \(1 - \frac{P}{L}\) is near 1 when \(P\) is small (nearly exponential growth) and near 0 as \(P\) approaches \(L\). The equation is separable; partial fractions give \(\frac{L}{P(L - P)} = \frac{1}{P} + \frac{1}{L - P}\), so \(\ln\left|\frac{P}{L - P}\right| = kt + C\). Solving for \(P\) gives the formula. The rate \(kP - \frac{k}{L}P^2\) is a downward parabola in \(P\) with its maximum at \(P = \frac{L}{2}\).

Series

Sequences

Limit of a sequence

\[\lim_{n\to\infty} a_n = L\]

A sequence converges if its terms get and stay arbitrarily close to one number. If \(a_n = f(n)\) and \(\lim_{x\to\infty} f(x) = L\), then \(a_n \to L\), so L'Hôpital's rule can be used on the function version.

Where it comes from

The definition is the ε-δ idea with \(N\) in place of \(\delta\): for every \(\varepsilon > 0\) there is an \(N\) such that \(|a_n - L| < \varepsilon\) for all \(n > N\). The function fact holds because the sequence only samples the function at whole numbers.

Monotone convergence theorem

\[\text{bounded and monotonic} \implies \text{convergent}\]

An increasing sequence that never passes some ceiling must settle down to a limit (and likewise for decreasing sequences with a floor). This lets you prove convergence without knowing the limit, and it underlies the integral and comparison tests for series.

Where it comes from

The terms of a bounded increasing sequence have a least upper bound \(L\) (completeness of the real numbers). For any \(\varepsilon\), \(L - \varepsilon\) is not an upper bound, so some term passes it, and since the sequence increases, every later term stays between \(L - \varepsilon\) and \(L\).

Useful sequence limits

\[r^n \to 0 \ (|r| < 1) \qquad \sqrt[n]{n} \to 1 \qquad \left(1 + \frac{x}{n}\right)^n \to e^x \qquad \frac{x^n}{n!} \to 0 \qquad \frac{n^p}{a^n} \to 0 \ (a > 1)\]

These appear constantly inside the convergence tests below.

Where it comes from

\(|r|^n = e^{n\ln|r|}\) with \(\ln|r| < 0\). \(\sqrt[n]{n} = e^{(\ln n)/n}\) and \(\frac{\ln n}{n} \to 0\). The \(e^x\) limit is the special limit for \(e\). For \(\frac{x^n}{n!}\), once \(n > 2|x|\) each new factor \(\frac{|x|}{n}\) is less than \(\frac{1}{2}\), so the terms shrink faster than a geometric sequence. The last follows from L'Hôpital's rule (growth rates).

Infinite series

Convergence of a series

\[\sum_{n=1}^{\infty} a_n = \lim_{N\to\infty} S_N, \qquad S_N = a_1 + a_2 + \cdots + a_N\]

An infinite sum is defined as the limit of its partial sums. If the partial sums approach a number, the series converges to it; otherwise it diverges. Changing or removing finitely many terms never affects whether a series converges (only its value).

Where it comes from

You cannot add infinitely many numbers one by one, so the sum is defined by a limit, just like the integral. Zeno's paradox (\(\frac{1}{2} + \frac{1}{4} + \cdots = 1\)) is the classic example of infinitely many terms with a finite total.

Geometric series

\[\sum_{n=0}^{\infty} ar^n = a + ar + ar^2 + \cdots = \frac{a}{1 - r} \qquad (|r| < 1); \quad \text{diverges if } |r| \ge 1\]

The most important series: each term is the previous one times the ratio \(r\). The sum is (first term) divided by (1 minus ratio). For example \(0.\overline{3} = \frac{3}{10} + \frac{3}{100} + \cdots = \frac{3/10}{1 - 1/10} = \frac{1}{3}\).

Where it comes from

Multiply the partial sum by \(r\) and subtract: \(S_N - rS_N = a - ar^{N+1}\), so \(S_N = \frac{a(1 - r^{N+1})}{1 - r}\). If \(|r| < 1\), \(r^{N+1} \to 0\) and \(S_N \to \frac{a}{1 - r}\). If \(|r| \ge 1\), the terms do not go to 0, so the series diverges.

Divergence test (nth term test)

\[\lim_{n\to\infty} a_n \ne 0 \implies \sum a_n \text{ diverges}\]

If the terms do not shrink to 0, the series cannot converge. The converse is false: the terms of the harmonic series go to 0 but it still diverges. So a limit of 0 proves nothing.

Where it comes from

If \(\sum a_n = S\) converges, then \(a_n = S_n - S_{n-1} \to S - S = 0\). The test is the contrapositive of this.

Harmonic series

\[\sum_{n=1}^{\infty}\frac{1}{n} = 1 + \frac{1}{2} + \frac{1}{3} + \frac{1}{4} + \cdots = \infty\]

The standard example of a divergent series whose terms go to 0. Its partial sums grow like \(\ln n\): very slowly, but without bound.

Where it comes from

Oresme's proof (about 1350): group the terms in blocks of doubling length. Each block is at least \(\frac{1}{2}\):

\[1 + \frac{1}{2} + \left(\frac{1}{3} + \frac{1}{4}\right) + \left(\frac{1}{5} + \cdots + \frac{1}{8}\right) + \cdots \ge 1 + \frac{1}{2} + \frac{1}{2} + \frac{1}{2} + \cdots\]

Telescoping series

\[\sum_{n=1}^{\infty}(b_n - b_{n+1}) = b_1 - \lim_{n\to\infty} b_n\]

When each term is a difference of consecutive values, almost everything cancels. Partial fractions often reveal this form, as in \(\frac{1}{n(n + 1)} = \frac{1}{n} - \frac{1}{n + 1}\), so \(\sum\frac{1}{n(n + 1)} = 1\).

Where it comes from

The partial sum collapses: \(S_N = (b_1 - b_2) + (b_2 - b_3) + \cdots + (b_N - b_{N+1}) = b_1 - b_{N+1}\). Take the limit.

Convergence tests

Integral test

\[a_n = f(n), \ f \text{ positive, continuous, decreasing} \implies \sum_{n=1}^{\infty} a_n \text{ and } \int_1^\infty f(x)\,dx \text{ both converge or both diverge}\]

Use it when the terms come from a function you can integrate, like \(\frac{1}{n\ln n}\). The series and the integral usually have different values; only their convergence matches. It also gives the error bound \(\int_{N+1}^{\infty} f \le S - S_N \le \int_N^{\infty} f\).

Where it comes from

Draw rectangles of width 1 and height \(a_n\). Placed to the right of each \(n\) they lie under the curve, so \(\sum_{n=2}^{N} a_n \le \int_1^N f\); placed to the left they lie above it, so \(\int_1^N f \le \sum_{n=1}^{N-1} a_n\). If the integral is finite, the partial sums are bounded and increasing, so they converge. If the integral is infinite, the partial sums are pushed to infinity.

p-series

\[\sum_{n=1}^{\infty}\frac{1}{n^p} \ \text{ converges if } p > 1, \ \text{ diverges if } p \le 1\]

The main benchmark for comparison tests. \(\sum\frac{1}{n^2}\) converges (to \(\frac{\pi^2}{6}\)); \(\sum\frac{1}{\sqrt{n}}\) diverges.

Where it comes from

The integral test with \(f(x) = \frac{1}{x^p}\) reduces this to the p-integral \(\int_1^\infty\frac{dx}{x^p}\), which converges exactly when \(p > 1\).

Direct comparison test

\[0 \le a_n \le b_n: \quad \sum b_n \text{ converges} \Rightarrow \sum a_n \text{ converges} \qquad \sum a_n \text{ diverges} \Rightarrow \sum b_n \text{ diverges}\]

Compare with a geometric series or p-series by bounding the terms. Smaller than convergent means convergent; bigger than divergent means divergent. The other two combinations prove nothing.

Where it comes from

The partial sums of \(\sum a_n\) increase (terms are non-negative) and stay below \(\sum b_n\), so they are bounded. Bounded increasing sequences converge (monotone convergence theorem).

Limit comparison test

\[a_n, b_n > 0, \ \lim_{n\to\infty}\frac{a_n}{b_n} = c, \ 0 < c < \infty \implies \text{both converge or both diverge}\]

Usually easier than direct comparison because you do not need an inequality. Pick \(b_n\) by keeping only the dominant terms: for \(\frac{n^2 + 1}{n^4 - 3n}\), compare with \(\frac{1}{n^2}\).

Where it comes from

If the ratio approaches \(c\), then for large \(n\) it lies between \(\frac{c}{2}\) and \(2c\), so \(\frac{c}{2}b_n < a_n < 2cb_n\). Direct comparison in each direction finishes it.

Alternating series test

\[\sum(-1)^nb_n, \ b_n > 0, \ b_{n+1} \le b_n, \ \lim b_n = 0 \implies \text{converges}\]

An alternating series converges if its terms shrink steadily to 0. So \(1 - \frac{1}{2} + \frac{1}{3} - \frac{1}{4} + \cdots\) converges (to \(\ln 2\)) even though the harmonic series diverges.

Where it comes from

The even partial sums \(S_2, S_4, \ldots\) increase (each pair \(b_{2k-1} - b_{2k} \ge 0\) adds something), and they stay below \(b_1\). So they converge to some \(S\). The odd partial sums differ from them by a single term \(b_n \to 0\), so they converge to the same \(S\).

Alternating series error bound

\[|S - S_n| \le b_{n+1}\]

Stopping an alternating series after \(n\) terms leaves an error no bigger than the first term left out, and with the same sign as that term. To reach a desired accuracy, find the first term smaller than it.

Where it comes from

The partial sums bounce back and forth around \(S\), each swing smaller than the last. So \(S\) always lies between two consecutive partial sums \(S_n\) and \(S_{n+1}\), whose distance is \(b_{n+1}\).

Ratio test

\[L = \lim_{n\to\infty}\left|\frac{a_{n+1}}{a_n}\right|: \quad L < 1 \Rightarrow \text{absolutely convergent} \quad L > 1 \Rightarrow \text{divergent} \quad L = 1 \Rightarrow \text{no conclusion}\]

The test of choice for factorials and exponentials such as \(\frac{n!}{n^n}\) or \(\frac{2^n}{n^3}\), and for finding radii of convergence. It fails (\(L = 1\)) for every p-series, so for rational functions of \(n\) use a comparison instead.

Where it comes from

If \(L < 1\), pick \(r\) with \(L < r < 1\). Eventually \(|a_{n+1}| < r|a_n|\), so the terms are smaller than a geometric series with ratio \(r\), which converges. If \(L > 1\), the terms eventually grow, so they do not approach 0.

Root test

\[L = \lim_{n\to\infty}\sqrt[n]{|a_n|}: \quad L < 1 \Rightarrow \text{absolutely convergent} \quad L > 1 \Rightarrow \text{divergent} \quad L = 1 \Rightarrow \text{no conclusion}\]

Best when the whole term is raised to the \(n\)th power, like \(\left(\frac{2n + 1}{3n - 1}\right)^n\).

Where it comes from

Same idea as the ratio test: if \(\sqrt[n]{|a_n|} < r < 1\) eventually, then \(|a_n| < r^n\), a convergent geometric series.

Absolute and conditional convergence

\[\sum|a_n| \text{ converges} \implies \sum a_n \text{ converges}\]

If the series of absolute values converges, the series is absolutely convergent. If \(\sum a_n\) converges but \(\sum|a_n|\) diverges, it is conditionally convergent, like the alternating harmonic series. Rearranging the terms of a conditionally convergent series can change its sum (Riemann's rearrangement theorem); absolutely convergent series are safe to rearrange.

Where it comes from

\(0 \le a_n + |a_n| \le 2|a_n|\). By direct comparison, \(\sum(a_n + |a_n|)\) converges, and subtracting the convergent \(\sum|a_n|\) leaves \(\sum a_n\) convergent.

Choosing a test

\[\text{terms} \not\to 0 \to \text{divergence test} \quad \text{geometric}/p\text{-series} \to \text{formula} \quad n!, a^n \to \text{ratio} \quad (\cdot)^n \to \text{root} \quad \text{rational in } n \to \text{comparison} \quad (-1)^n \to \text{alternating}\]

Run through this list in order. Always try the divergence test first, since it takes seconds. Use the integral test when the terms are easy to integrate and none of the others fit.

Where it comes from

Each test is matched to the term shapes where its limit or inequality is easiest to find, and where it does not land on an inconclusive case.

Power series and Taylor series

Power series and radius of convergence

\[\sum_{n=0}^{\infty} c_n(x - a)^n \text{ converges for } |x - a| < R, \text{ diverges for } |x - a| > R\]

A power series converges on an interval centered at \(a\) with radius \(R\) (possibly 0 or \(\infty\)). Find \(R\) with the ratio test, then test the two endpoints separately using other tests, because the ratio test always gives \(L = 1\) there.

Where it comes from

The ratio test on \(|c_n(x - a)^n|\) gives \(L = |x - a|\lim\left|\frac{c_{n+1}}{c_n}\right|\). It is less than 1 exactly when \(|x - a|\) is below some threshold \(R\), and greater than 1 beyond it.

Differentiating and integrating power series

\[f(x) = \sum c_n(x - a)^n \implies f'(x) = \sum nc_n(x - a)^{n-1}, \quad \int f\,dx = C + \sum\frac{c_n(x - a)^{n+1}}{n + 1}\]

Inside the interval of convergence, power series can be differentiated and integrated term by term like polynomials, and the radius stays the same (endpoints may change). This is how many series are derived: integrating \(\frac{1}{1 + x^2} = \sum(-1)^nx^{2n}\) gives \(\arctan x\).

Where it comes from

Inside the radius the series converges absolutely and uniformly on smaller closed intervals, which allows limits and sums to be swapped. The ratio test on the new coefficients \(nc_n\) or \(\frac{c_n}{n + 1}\) gives the same limit, since \(\frac{n + 1}{n} \to 1\).

Taylor and Maclaurin series

\[f(x) = \sum_{n=0}^{\infty}\frac{f^{(n)}(a)}{n!}(x - a)^n \qquad \text{(Maclaurin: } a = 0)\]

Any function that equals a power series near \(a\) must equal this one. Its coefficients come from the derivatives at a single point, so the values of \(f\) and all its derivatives at \(a\) determine \(f\) nearby.

Where it comes from

Suppose \(f(x) = c_0 + c_1(x - a) + c_2(x - a)^2 + \cdots\). Setting \(x = a\) gives \(c_0 = f(a)\). Differentiating once and setting \(x = a\) gives \(c_1 = f'(a)\); twice gives \(2c_2 = f''(a)\); \(n\) times gives \(n!\,c_n = f^{(n)}(a)\). Solving for \(c_n\) gives the formula.

Taylor polynomials

\[P_n(x) = f(a) + f'(a)(x - a) + \frac{f''(a)}{2!}(x - a)^2 + \cdots + \frac{f^{(n)}(a)}{n!}(x - a)^n\]

The polynomial of degree \(n\) that matches \(f\) and its first \(n\) derivatives at \(a\). \(P_1\) is the tangent line (linear approximation); higher degrees hug the curve over a wider range.

Where it comes from

It is the Taylor series cut off after the \(n\)th power. Differentiating \(P_n\) \(k\) times and setting \(x = a\) leaves only the \(k\)th term, which equals \(f^{(k)}(a)\) by construction.

Lagrange error bound

\[|f(x) - P_n(x)| \le \frac{M}{(n + 1)!}|x - a|^{n+1}, \qquad M \ge |f^{(n+1)}| \text{ between } a \text{ and } x\]

Bounds how far the Taylor polynomial is from the true value. The error looks like the next term of the series, with the derivative replaced by its maximum size. For alternating series, the simpler alternating series bound may also apply.

Where it comes from

Taylor's theorem says the remainder equals \(\frac{f^{(n+1)}(z)}{(n + 1)!}(x - a)^{n+1}\) for some \(z\) between \(a\) and \(x\). It is proved by applying Rolle's theorem repeatedly (or the generalized mean value theorem) to the difference \(f - P_n\), which vanishes to order \(n\) at \(a\). Replacing \(|f^{(n+1)}(z)|\) by its maximum \(M\) gives the bound.

Common Maclaurin series

\[e^x = \sum_{n=0}^{\infty}\frac{x^n}{n!} \quad \sin x = \sum_{n=0}^{\infty}\frac{(-1)^nx^{2n+1}}{(2n + 1)!} \quad \cos x = \sum_{n=0}^{\infty}\frac{(-1)^nx^{2n}}{(2n)!} \quad \frac{1}{1 - x} = \sum_{n=0}^{\infty}x^n\]

Also \(\ln(1 + x) = \sum_{n=1}^{\infty}\frac{(-1)^{n+1}x^n}{n}\) for \(-1 < x \le 1\) and \(\arctan x = \sum_{n=0}^{\infty}\frac{(-1)^nx^{2n+1}}{2n + 1}\) for \(|x| \le 1\). The series for \(e^x\), \(\sin x\) and \(\cos x\) converge for every \(x\); \(\frac{1}{1 - x}\) only for \(|x| < 1\).

Where it comes from

For \(e^x\), every derivative at 0 is 1. For \(\sin x\) the derivatives at 0 cycle \(0, 1, 0, -1\), so only odd powers survive with alternating signs; cosine is the same with even powers. \(\frac{1}{1 - x}\) is the geometric series. The log and arctangent series come from integrating \(\frac{1}{1 + x}\) and \(\frac{1}{1 + x^2}\) term by term.

Building new series from known ones

\[f(x) = \sum c_nx^n \implies f(kx^m) = \sum c_nk^nx^{mn}, \quad x^pf(x) = \sum c_nx^{n+p}\]

Rather than computing derivatives, substitute into, multiply, differentiate or integrate a known series. For example \(e^{-x^2} = \sum\frac{(-1)^nx^{2n}}{n!}\), which can be integrated term by term even though \(e^{-x^2}\) has no elementary antiderivative. Series also evaluate limits: \(\frac{\sin x - x}{x^3} = -\frac{1}{3!} + \frac{x^2}{5!} - \cdots \to -\frac{1}{6}\).

Where it comes from

A power series that equals \(f\) near the center is unique (it must be the Taylor series), so any valid algebraic route to a power series gives the right one.

Binomial series

\[(1 + x)^k = \sum_{n=0}^{\infty}\binom{k}{n}x^n = 1 + kx + \frac{k(k - 1)}{2!}x^2 + \frac{k(k - 1)(k - 2)}{3!}x^3 + \cdots \quad (|x| < 1)\]

Newton's extension of the binomial theorem to any exponent \(k\), including fractions and negatives. For a positive integer \(k\) it stops after \(k + 1\) terms and is the ordinary binomial theorem. Useful for approximations like \(\sqrt{1 + x} \approx 1 + \frac{x}{2} - \frac{x^2}{8}\).

Where it comes from

The derivatives of \((1 + x)^k\) at 0 are \(k\), \(k(k - 1)\), \(k(k - 1)(k - 2)\), and so on. Dividing the \(n\)th one by \(n!\) gives the generalized binomial coefficient \(\binom{k}{n}\). The ratio test gives radius 1.

Practice

Practice problems

showing all 126 problems

limits

Evaluate the limit.

\[\lim_{x\to 0}\frac{\sqrt{1 + x} - \sqrt{1 - x}}{x}\]
answer

\(1\)

full solution

Substitution gives \(\frac{0}{0}\). Multiply by the conjugate:

\[\frac{(1 + x) - (1 - x)}{x\left(\sqrt{1 + x} + \sqrt{1 - x}\right)} = \frac{2x}{x\left(\sqrt{1 + x} + \sqrt{1 - x}\right)} = \frac{2}{\sqrt{1 + x} + \sqrt{1 - x}} \to \frac{2}{2} = 1\]

limits

Evaluate the limit.

\[\lim_{x\to 4}\frac{x^{3/2} - 8}{\sqrt{x} - 2}\]
answer

\(12\)

full solution

Let \(t = \sqrt{x}\), so \(t \to 2\) and \(x^{3/2} = t^3\). Factor the difference of cubes:

\[\frac{t^3 - 8}{t - 2} = \frac{(t - 2)(t^2 + 2t + 4)}{t - 2} = t^2 + 2t + 4 \to 4 + 4 + 4 = 12\]

limits

Evaluate the limit.

\[\lim_{x\to 0}\frac{\sin 5x - \sin 3x}{x}\]
answer

\(2\)

full solution

Split it and use \(\frac{\sin kx}{x} \to k\):

\[\frac{\sin 5x}{x} - \frac{\sin 3x}{x} \to 5 - 3 = 2\]

limits

Evaluate the limit.

\[\lim_{x\to 0}\frac{1 - \cos 4x}{x\sin x}\]
answer

\(8\)

full solution

Rewrite so both special limits appear:

\[\frac{1 - \cos 4x}{x\sin x} = \frac{1 - \cos 4x}{(4x)^2}\cdot 16\cdot\frac{x}{\sin x} \to \frac{1}{2}\cdot 16\cdot 1 = 8\]

limits

Evaluate the limit.

\[\lim_{x\to 0}\frac{\sin(x^2)}{1 - \cos x}\]
answer

\(2\)

full solution

Use \(\sin(x^2) \approx x^2\) and \(1 - \cos x \approx \frac{x^2}{2}\) via the special limits:

\[\frac{\sin(x^2)}{x^2}\cdot\frac{x^2}{1 - \cos x} \to 1\cdot\frac{1}{1/2} = 2\]

limits

Use the squeeze theorem to evaluate the limit, where \(\lfloor x\rfloor\) is the greatest integer less than or equal to \(x\).

\[\lim_{x\to\infty}\frac{\lfloor x\rfloor}{x}\]
answer

\(1\)

full solution

For every \(x\), \(x - 1 < \lfloor x\rfloor \le x\). For \(x > 0\), divide by \(x\):

\[1 - \frac{1}{x} < \frac{\lfloor x\rfloor}{x} \le 1\]

Both outer functions go to 1 as \(x \to \infty\), so the limit is 1.

limits

Evaluate the limit.

\[\lim_{x\to\infty}\left(\sqrt{x^2 + 3x} - x\right)\]
answer

\(\frac{3}{2}\)

full solution

This is \(\infty - \infty\). Multiply by the conjugate, then divide top and bottom by \(x\):

\[\frac{(x^2 + 3x) - x^2}{\sqrt{x^2 + 3x} + x} = \frac{3x}{\sqrt{x^2 + 3x} + x} = \frac{3}{\sqrt{1 + 3/x} + 1} \to \frac{3}{2}\]

limits

Evaluate the limit.

\[\lim_{x\to -\infty}\frac{\sqrt{4x^2 + x}}{3x - 1}\]
answer

\(-\frac{2}{3}\)

full solution

For \(x < 0\), \(\sqrt{x^2} = |x| = -x\). Pull it out of the root:

\[\frac{|x|\sqrt{4 + 1/x}}{x(3 - 1/x)} = \frac{-x\sqrt{4 + 1/x}}{x(3 - 1/x)} = \frac{-\sqrt{4 + 1/x}}{3 - 1/x} \to -\frac{2}{3}\]

Forgetting that \(|x| = -x\) here gives the wrong sign.

limits

Find constants \(a\) and \(b\) so that the limit is true.

\[\lim_{x\to 0}\frac{\sqrt{ax + b} - 2}{x} = 1\]
answer

\(a = 4,\ b = 4\)

full solution

The denominator goes to 0, so for the limit to be finite the numerator must too: \(\sqrt{b} - 2 = 0\), so \(b = 4\). Then rationalize:

\[\frac{\sqrt{ax + 4} - 2}{x} = \frac{ax}{x\left(\sqrt{ax + 4} + 2\right)} = \frac{a}{\sqrt{ax + 4} + 2} \to \frac{a}{4}\]

Setting \(\frac{a}{4} = 1\) gives \(a = 4\).

limits

Use the ε-δ definition to prove the limit. Find a \(\delta\) that works for any \(\varepsilon > 0\).

\[\lim_{x\to 3}x^2 = 9\]
answer

\(\delta = \min\left(1, \frac{\varepsilon}{7}\right)\)

full solution

We need \(|x^2 - 9| = |x - 3||x + 3| < \varepsilon\). The factor \(|x + 3|\) has to be bounded first. If \(\delta \le 1\), then \(|x - 3| < 1\) means \(2 < x < 4\), so \(|x + 3| < 7\). Then

\[|x^2 - 9| = |x - 3||x + 3| < 7|x - 3| < 7\delta \le \varepsilon \quad \text{when } \delta \le \frac{\varepsilon}{7}\]

Both restrictions hold with \(\delta = \min\left(1, \frac{\varepsilon}{7}\right)\).

limits

Evaluate the limit.

\[\lim_{n\to\infty}n\sin\frac{2\pi}{n}\]
answer

\(2\pi\)

full solution

Let \(u = \frac{2\pi}{n}\), so \(u \to 0^+\) and \(n = \frac{2\pi}{u}\):

\[n\sin\frac{2\pi}{n} = 2\pi\cdot\frac{\sin u}{u} \to 2\pi\]

Geometrically, a regular \(n\)-gon inscribed in a unit circle has area \(\frac{n}{2}\sin\frac{2\pi}{n}\). This limit shows that area approaches \(\pi\), the area of the circle.

l'hôpital's rule

Evaluate the limit.

\[\lim_{x\to 0}\frac{e^{3x} - 1 - 3x}{x^2}\]
answer

\(\frac{9}{2}\)

full solution

The form is \(\frac{0}{0}\). Apply L'Hôpital's rule twice:

\[\lim_{x\to 0}\frac{3e^{3x} - 3}{2x} = \lim_{x\to 0}\frac{9e^{3x}}{2} = \frac{9}{2}\]

After the first step the form is still \(\frac{0}{0}\), which is why a second step is allowed.

l'hôpital's rule

Evaluate the limit.

\[\lim_{x\to 0}\frac{\tan x - x}{x^3}\]
answer

\(\frac{1}{3}\)

full solution

\(\frac{0}{0}\). One application, then simplify using \(\sec^2 x - 1 = \tan^2 x\):

\[\lim_{x\to 0}\frac{\sec^2 x - 1}{3x^2} = \lim_{x\to 0}\frac{\tan^2 x}{3x^2} = \frac{1}{3}\left(\lim_{x\to 0}\frac{\tan x}{x}\right)^2 = \frac{1}{3}\]

Simplifying with an identity avoids two more rounds of L'Hôpital.

l'hôpital's rule

Evaluate the limit.

\[\lim_{x\to 0}\frac{x - \sin x}{x - \tan x}\]
answer

\(-\frac{1}{2}\)

full solution

\(\frac{0}{0}\). Apply L'Hôpital once and simplify:

\[\lim_{x\to 0}\frac{1 - \cos x}{1 - \sec^2 x} = \lim_{x\to 0}\frac{1 - \cos x}{-\tan^2 x} = -\lim_{x\to 0}\frac{1 - \cos x}{x^2}\cdot\frac{x^2}{\tan^2 x} = -\frac{1}{2}\cdot 1\]

l'hôpital's rule

Evaluate the limit.

\[\lim_{x\to 0}\frac{\arcsin x - x}{x^3}\]
answer

\(\frac{1}{6}\)

full solution

\(\frac{0}{0}\). Apply L'Hôpital and rationalize:

\[\lim_{x\to 0}\frac{\frac{1}{\sqrt{1 - x^2}} - 1}{3x^2} = \lim_{x\to 0}\frac{1 - \sqrt{1 - x^2}}{3x^2\sqrt{1 - x^2}} = \lim_{x\to 0}\frac{x^2}{3x^2\sqrt{1 - x^2}\left(1 + \sqrt{1 - x^2}\right)} = \frac{1}{3\cdot 1\cdot 2} = \frac{1}{6}\]

l'hôpital's rule

Evaluate the limit.

\[\lim_{x\to 1}\left(\frac{1}{\ln x} - \frac{1}{x - 1}\right)\]
answer

\(\frac{1}{2}\)

full solution

\(\infty - \infty\). Combine into one fraction, which is \(\frac{0}{0}\):

\[\lim_{x\to 1}\frac{x - 1 - \ln x}{(x - 1)\ln x} \overset{\text{L'H}}{=} \lim_{x\to 1}\frac{1 - \frac{1}{x}}{\ln x + \frac{x - 1}{x}} = \lim_{x\to 1}\frac{x - 1}{x\ln x + x - 1}\]

Still \(\frac{0}{0}\); apply it again:

\[\lim_{x\to 1}\frac{1}{\ln x + 1 + 1} = \frac{1}{2}\]

l'hôpital's rule

Evaluate the limit.

\[\lim_{x\to\infty}x\left(\frac{\pi}{2} - \arctan x\right)\]
answer

\(1\)

full solution

\(\infty\cdot 0\). Move \(x\) to the denominator to get \(\frac{0}{0}\):

\[\lim_{x\to\infty}\frac{\frac{\pi}{2} - \arctan x}{1/x} \overset{\text{L'H}}{=} \lim_{x\to\infty}\frac{-\frac{1}{1 + x^2}}{-\frac{1}{x^2}} = \lim_{x\to\infty}\frac{x^2}{1 + x^2} = 1\]

l'hôpital's rule

Evaluate the limit.

\[\lim_{x\to 0}\frac{2^x - 3^x}{x}\]
answer

\(\ln\frac{2}{3}\)

full solution

Split into two known limits \(\frac{a^x - 1}{x} \to \ln a\):

\[\frac{(2^x - 1) - (3^x - 1)}{x} \to \ln 2 - \ln 3 = \ln\frac{2}{3}\]

L'Hôpital gives the same: \(\frac{2^x\ln 2 - 3^x\ln 3}{1} \to \ln 2 - \ln 3\).

l'hôpital's rule

Evaluate the limit.

\[\lim_{x\to 0^+}x^{\sin x}\]
answer

\(1\)

full solution

\(0^0\). Take logs: \(\ln y = \sin x\ln x\). Rewrite as \(\frac{\infty}{\infty}\) and use L'Hôpital:

\[\lim_{x\to 0^+}\frac{\ln x}{\csc x} \overset{\text{L'H}}{=} \lim_{x\to 0^+}\frac{1/x}{-\csc x\cot x} = \lim_{x\to 0^+}\left(-\frac{\sin x}{x}\cdot\tan x\right) = -1\cdot 0 = 0\]

So \(\ln y \to 0\) and \(y \to e^0 = 1\).

l'hôpital's rule

Evaluate the limit.

\[\lim_{x\to\infty}\left(1 + \frac{2}{x}\right)^{3x}\]
answer

\(e^6\)

full solution

\(1^\infty\). Using the general \(e\) limit:

\[\left(1 + \frac{2}{x}\right)^{3x} = \left[\left(1 + \frac{2}{x}\right)^x\right]^3 \to \left(e^2\right)^3 = e^6\]

With logs: \(3x\ln\left(1 + \frac{2}{x}\right) = 6\cdot\frac{\ln(1 + 2/x)}{2/x} \to 6\).

l'hôpital's rule

Evaluate the limit.

\[\lim_{x\to 0}(\cos x)^{1/x^2}\]
answer

\(e^{-1/2} = \frac{1}{\sqrt{e}}\)

full solution

\(1^\infty\). Take logs and use L'Hôpital on \(\frac{0}{0}\):

\[\ln y = \frac{\ln\cos x}{x^2} \overset{\text{L'H}}{\to} \lim_{x\to 0}\frac{-\tan x}{2x} = -\frac{1}{2}\]

So \(y \to e^{-1/2}\). The \(1^\infty\) shortcut agrees: \(\frac{1}{x^2}(\cos x - 1) \to -\frac{1}{2}\).

l'hôpital's rule

Explain why L'Hôpital's rule fails for this limit, then find the limit another way.

\[\lim_{x\to\infty}\frac{x + \sin x}{x - \cos x}\]
answer

\(1\)

full solution

The form is \(\frac{\infty}{\infty}\), but the derivatives give \(\frac{1 + \cos x}{1 + \sin x}\), which oscillates (and is even undefined where \(\sin x = -1\)). L'Hôpital's rule only works when the new limit exists, so it says nothing here.

Divide top and bottom by \(x\) instead. Since \(|\sin x| \le 1\), \(\frac{\sin x}{x} \to 0\) and \(\frac{\cos x}{x} \to 0\) by the squeeze theorem:

\[\frac{1 + \frac{\sin x}{x}}{1 - \frac{\cos x}{x}} \to \frac{1 + 0}{1 - 0} = 1\]

continuity

Find all values of \(a\) and \(b\) that make \(f\) continuous everywhere.

\[f(x) = \begin{cases} \dfrac{1 - \cos(ax)}{x^2} & x < 0 \\ 8 & x = 0 \\ b + x & x > 0 \end{cases}\]
answer

\(a = \pm 4,\ b = 8\)

full solution

Each piece is continuous on its own interval, so only \(x = 0\) matters. The left limit uses \(1 - \cos u \approx \frac{u^2}{2}\):

\[\lim_{x\to 0^-}\frac{1 - \cos ax}{x^2} = \lim_{x\to 0^-}a^2\cdot\frac{1 - \cos ax}{(ax)^2} = \frac{a^2}{2}\]

Setting \(\frac{a^2}{2} = 8\) gives \(a = \pm 4\). The right limit is \(b\), so \(b = 8\).

continuity

Find and classify every discontinuity of \(f\).

\[f(x) = \frac{x^2 - x}{|x|\,(x^2 - 1)}\]
answer

\(x = 0\): jump; \(x = 1\): removable; \(x = -1\): infinite

full solution

\(f\) is undefined at \(x = 0, 1, -1\). Factor: for \(x \ne 1\),

\[f(x) = \frac{x(x - 1)}{|x|(x - 1)(x + 1)} = \frac{x}{|x|}\cdot\frac{1}{x + 1}\]

At \(x = 0\): \(\frac{x}{|x|}\) is \(-1\) on the left and \(1\) on the right, so the one-sided limits are \(-1\) and \(1\). Jump.

At \(x = 1\): the factor canceled, and the limit is \(1\cdot\frac{1}{2} = \frac{1}{2}\). Removable.

At \(x = -1\): \(\frac{x}{|x|} = -1\) nearby, so \(f(x) = -\frac{1}{x + 1} \to \pm\infty\). Infinite.

continuity

Show that the equation has at least two real solutions.

\[e^x + x^2 = 3\]
answer

One root in \((-2, 0)\) and one in \((0, 1)\)

full solution

Let \(f(x) = e^x + x^2 - 3\), which is continuous everywhere. Check signs:

\[f(-2) = e^{-2} + 1 > 0 \qquad f(0) = -2 < 0 \qquad f(1) = e - 2 > 0\]

By the intermediate value theorem, \(f\) has a zero in \((-2, 0)\) and another in \((0, 1)\). These intervals do not overlap, so the zeros are different.

continuity

Let \(f\) be continuous on \([0, 1]\) with \(0 \le f(x) \le 1\) for all \(x\). Prove that \(f(c) = c\) for some \(c\) in \([0, 1]\) (a fixed point).

answer

Apply the IVT to \(g(x) = f(x) - x\).

full solution

\(g\) is continuous on \([0, 1]\). Since \(f\) takes values in \([0, 1]\):

\[g(0) = f(0) - 0 \ge 0 \qquad g(1) = f(1) - 1 \le 0\]

If either is 0, that endpoint is the fixed point. Otherwise \(g(0) > 0 > g(1)\), and the intermediate value theorem gives \(c \in (0, 1)\) with \(g(c) = 0\), so \(f(c) = c\).

continuity

Find the value of \(c\) that makes \(f\) continuous everywhere.

\[f(x) = \begin{cases} cx^2 + 2x & x < 2 \\ x^3 - cx & x \ge 2 \end{cases}\]
answer

\(c = \frac{2}{3}\)

full solution

Both pieces are polynomials, so the only question is \(x = 2\). The left limit is \(4c + 4\) and the right side gives \(f(2) = 8 - 2c\). Set them equal:

\[4c + 4 = 8 - 2c \implies 6c = 4 \implies c = \frac{2}{3}\]

continuity

For \(f(x) = \frac{1}{x}\), \(f(-1) = -1 < 0\) and \(f(1) = 1 > 0\), but \(f(x) = 0\) has no solution. Explain why this does not contradict the intermediate value theorem.

answer

\(f\) is not continuous on \([-1, 1]\).

full solution

The intermediate value theorem requires \(f\) to be continuous on the whole closed interval \([-1, 1]\). \(f(x) = \frac{1}{x}\) is undefined at \(x = 0\) and has an infinite discontinuity there, so the hypothesis fails and the theorem promises nothing.

The graph jumps from \(-\infty\) to \(+\infty\) across \(x = 0\) without ever crossing the \(x\)-axis. Continuity is exactly what rules out this kind of skipping.

continuity

Let \(f(x) = x\sin\frac{1}{x}\) for \(x \ne 0\) and \(f(0) = 0\). Show that \(f\) is continuous at 0 but not differentiable at 0.

answer

\(\lim_{x\to 0} f(x) = 0 = f(0)\), but \(\frac{f(h) - f(0)}{h} = \sin\frac{1}{h}\) has no limit.

full solution

Continuity: since \(\left|\sin\frac{1}{x}\right| \le 1\), we have \(-|x| \le x\sin\frac{1}{x} \le |x|\). Both bounds go to 0, so by the squeeze theorem \(\lim_{x\to 0} f(x) = 0 = f(0)\).

Differentiability: the difference quotient at 0 is

\[\frac{f(h) - f(0)}{h} = \frac{h\sin\frac{1}{h}}{h} = \sin\frac{1}{h}\]

which oscillates between \(-1\) and \(1\) as \(h \to 0\) and has no limit. So \(f'(0)\) does not exist. Compare with \(x^2\sin\frac{1}{x}\) in the differentiability problems, where the extra factor of \(x\) makes the derivative exist.

definition of the derivative

Use the limit definition to find \(f'(x)\).

\[f(x) = \frac{1}{\sqrt{x}}\]
answer

\(f'(x) = -\frac{1}{2x^{3/2}}\)

full solution

Combine the fractions, then rationalize the numerator:

\[\frac{\frac{1}{\sqrt{x + h}} - \frac{1}{\sqrt{x}}}{h} = \frac{\sqrt{x} - \sqrt{x + h}}{h\sqrt{x}\sqrt{x + h}} = \frac{x - (x + h)}{h\sqrt{x}\sqrt{x + h}\left(\sqrt{x} + \sqrt{x + h}\right)}\]
\[= \frac{-1}{\sqrt{x}\sqrt{x + h}\left(\sqrt{x} + \sqrt{x + h}\right)} \to \frac{-1}{\sqrt{x}\cdot\sqrt{x}\cdot 2\sqrt{x}} = -\frac{1}{2x^{3/2}}\]

This matches the power rule: \(\frac{d}{dx}x^{-1/2} = -\frac{1}{2}x^{-3/2}\).

definition of the derivative

Recognize each limit as a derivative and evaluate it.

\[\text{(a)}\ \lim_{h\to 0}\frac{\sin\left(\frac{\pi}{3} + h\right) - \frac{\sqrt{3}}{2}}{h} \qquad \text{(b)}\ \lim_{x\to 2}\frac{x^{10} - 1024}{x - 2} \qquad \text{(c)}\ \lim_{h\to 0}\frac{e^{2 + h} - e^2}{h}\]
answer

(a) \(\frac{1}{2}\) (b) \(5120\) (c) \(e^2\)

full solution

(a) This is \(f'\left(\frac{\pi}{3}\right)\) for \(f(x) = \sin x\), because \(\sin\frac{\pi}{3} = \frac{\sqrt{3}}{2}\). So it equals \(\cos\frac{\pi}{3} = \frac{1}{2}\).

(b) This is \(f'(2)\) for \(f(x) = x^{10}\), since \(2^{10} = 1024\). So it equals \(10\cdot 2^9 = 5120\).

(c) This is \(f'(2)\) for \(f(x) = e^x\), which is \(e^2\).

definition of the derivative

Suppose \(f'(a)\) exists. Express the limit in terms of \(f'(a)\).

\[\lim_{h\to 0}\frac{f(a + 3h) - f(a - h)}{h}\]
answer

\(4f'(a)\)

full solution

Subtract and add \(f(a)\) to split it into two difference quotients:

\[\frac{f(a + 3h) - f(a)}{h} + \frac{f(a) - f(a - h)}{h} = 3\cdot\frac{f(a + 3h) - f(a)}{3h} + \frac{f(a - h) - f(a)}{-h}\]

Each quotient goes to \(f'(a)\), so the limit is \(3f'(a) + f'(a) = 4f'(a)\).

differentiability

Find \(a\) and \(b\) so that \(f\) is differentiable at \(x = 1\).

\[f(x) = \begin{cases} x^2 & x \le 1 \\ ax + b & x > 1 \end{cases}\]
answer

\(a = 2,\ b = -1\)

full solution

Differentiable requires continuous, so the pieces must meet: \(1^2 = a + b\).

The one-sided derivatives must match: from the left \(2x = 2\) at \(x = 1\); from the right, \(a\). So \(a = 2\).

Then \(b = 1 - a = -1\). The line \(y = 2x - 1\) is exactly the tangent line to \(y = x^2\) at \(x = 1\).

differentiability

Let \(f(x) = x^2\sin\frac{1}{x}\) for \(x \ne 0\) and \(f(0) = 0\). Find \(f'(0)\), and decide whether \(f'\) is continuous at 0.

answer

\(f'(0) = 0\); \(f'\) is not continuous at 0

full solution

Use the definition at 0, then the squeeze theorem (\(|h\sin\frac{1}{h}| \le |h|\)):

\[f'(0) = \lim_{h\to 0}\frac{h^2\sin\frac{1}{h} - 0}{h} = \lim_{h\to 0}h\sin\frac{1}{h} = 0\]

For \(x \ne 0\), the product and chain rules give

\[f'(x) = 2x\sin\frac{1}{x} + x^2\cos\frac{1}{x}\cdot\left(-\frac{1}{x^2}\right) = 2x\sin\frac{1}{x} - \cos\frac{1}{x}\]

As \(x \to 0\), the first term goes to 0 but \(\cos\frac{1}{x}\) oscillates between \(-1\) and \(1\), so \(\lim_{x\to 0}f'(x)\) does not exist. \(f\) is differentiable everywhere, yet its derivative is discontinuous at 0.

differentiability

Where is \(f(x) = x|x|\) differentiable? Find \(f'(x)\).

answer

Everywhere; \(f'(x) = 2|x|\)

full solution

For \(x > 0\), \(f(x) = x^2\) and \(f'(x) = 2x\). For \(x < 0\), \(f(x) = -x^2\) and \(f'(x) = -2x\). At 0 use the definition:

\[f'(0) = \lim_{h\to 0}\frac{h|h|}{h} = \lim_{h\to 0}|h| = 0\]

All three cases are \(2|x|\). (Note \(f'\) itself has a corner at 0, so \(f''(0)\) does not exist.)

differentiability

Where is \(f(x) = |x^2 - 4|\) not differentiable? Give \(f'(x)\) everywhere else.

answer

Not differentiable at \(x = \pm 2\); \(f'(x) = 2x\) for \(|x| > 2\), \(-2x\) for \(|x| < 2\)

full solution

Use \(\frac{d}{dx}|u| = \frac{u}{|u|}u'\) with \(u = x^2 - 4\):

\[f'(x) = \frac{x^2 - 4}{|x^2 - 4|}\cdot 2x\]

This is undefined where \(x^2 - 4 = 0\). At \(x = 2\) the one-sided derivatives are \(-4\) and \(4\) (corners); likewise at \(x = -2\), they are \(4\) and \(-4\).

tangent lines

Find all points where the tangent line to \(y = x^3 - 3x^2 + 2\) is parallel to the line \(y = 9x + 1\).

answer

\((3, 2)\) and \((-1, -2)\)

full solution

Parallel means slope 9. Set the derivative equal to 9:

\[3x^2 - 6x = 9 \implies x^2 - 2x - 3 = 0 \implies (x - 3)(x + 1) = 0\]

At \(x = 3\): \(y = 27 - 27 + 2 = 2\). At \(x = -1\): \(y = -1 - 3 + 2 = -2\).

tangent lines

Find the equations of both lines through the point \((1, -3)\) that are tangent to \(y = x^2\).

answer

\(y = 6x - 9\) and \(y = -2x - 1\)

full solution

\((1, -3)\) is not on the parabola, so let the point of tangency be \((a, a^2)\). The tangent there is \(y - a^2 = 2a(x - a)\). It must pass through \((1, -3)\):

\[-3 - a^2 = 2a(1 - a) \implies -3 - a^2 = 2a - 2a^2 \implies a^2 - 2a - 3 = 0 \implies a = 3 \text{ or } a = -1\]

\(a = 3\): \(y - 9 = 6(x - 3)\), so \(y = 6x - 9\). \(a = -1\): \(y - 1 = -2(x + 1)\), so \(y = -2x - 1\).

tangent lines

Use a linear approximation to estimate \(\sqrt[3]{8.06}\). Is the estimate too high or too low?

answer

\(2.005\); slightly too high

full solution

Use \(f(x) = x^{1/3}\) at \(a = 8\): \(f(8) = 2\), \(f'(x) = \frac{1}{3}x^{-2/3}\), so \(f'(8) = \frac{1}{12}\).

\[\sqrt[3]{8.06} \approx 2 + \frac{1}{12}(0.06) = 2.005\]

\(f''(x) = -\frac{2}{9}x^{-5/3} < 0\), so the graph is concave down and lies below its tangent line: the estimate is too high (the actual value is 2.004988).

chain rule

Differentiate.

\[y = \sin\big(\cos(\tan x)\big)\]
answer

\(y' = -\cos\big(\cos(\tan x)\big)\sin(\tan x)\sec^2 x\)

full solution

Three layers; differentiate from the outside in and multiply:

\[y' = \cos\big(\cos(\tan x)\big)\cdot\big(-\sin(\tan x)\big)\cdot\sec^2 x\]

chain rule

Differentiate.

\[y = \sqrt{x + \sqrt{x + \sqrt{x}}}\]
answer

\(y' = \dfrac{1}{2\sqrt{x + \sqrt{x + \sqrt{x}}}}\left(1 + \dfrac{1}{2\sqrt{x + \sqrt{x}}}\left(1 + \dfrac{1}{2\sqrt{x}}\right)\right)\)

full solution

Each square root contributes \(\frac{1}{2\sqrt{\text{inside}}}\) times the derivative of its inside:

\[\frac{d}{dx}\sqrt{x} = \frac{1}{2\sqrt{x}} \qquad \frac{d}{dx}\sqrt{x + \sqrt{x}} = \frac{1}{2\sqrt{x + \sqrt{x}}}\left(1 + \frac{1}{2\sqrt{x}}\right)\]

The outer root multiplies \(\frac{1}{2\sqrt{x + \sqrt{x + \sqrt{x}}}}\) by \(1 + {}\) the previous result, which gives the answer.

chain rule

Use the table to find \(h'(1)\) for \(h(x) = f\big(f(x)\big)\) and \(k'(2)\) for \(k(x) = f(x^2)\cdot g(x)\).

\[f(1) = 3,\ f'(1) = -2,\ f'(3) = 5,\ f(4) = 7,\ f'(4) = 6,\ g(2) = -1,\ g'(2) = 3\]
answer

\(h'(1) = -10,\ k'(2) = -3\)

full solution

Chain rule: \(h'(1) = f'\big(f(1)\big)\cdot f'(1) = f'(3)\cdot(-2) = 5\cdot(-2) = -10\).

Product and chain rules: \(k'(x) = f'(x^2)\cdot 2x\cdot g(x) + f(x^2)\cdot g'(x)\). At \(x = 2\):

\[k'(2) = f'(4)\cdot 4\cdot g(2) + f(4)\cdot g'(2) = 6\cdot 4\cdot(-1) + 7\cdot 3 = -24 + 21 = -3\]

chain rule

Differentiate.

\[y = \log_3\left(x^2\sin x\right)\]
answer

\(y' = \dfrac{1}{\ln 3}\left(\dfrac{2}{x} + \cot x\right)\)

full solution

Expand with log rules first, then differentiate:

\[y = \frac{\ln(x^2\sin x)}{\ln 3} = \frac{2\ln|x| + \ln|\sin x|}{\ln 3} \implies y' = \frac{1}{\ln 3}\left(\frac{2}{x} + \frac{\cos x}{\sin x}\right)\]

implicit & inverse

Find the slope of the tangent line to the folium of Descartes at \((3, 3)\).

\[x^3 + y^3 = 6xy\]
answer

\(-1\)

full solution

Differentiate both sides, using the product rule on \(6xy\):

\[3x^2 + 3y^2y' = 6y + 6xy' \implies y'(3y^2 - 6x) = 6y - 3x^2 \implies y' = \frac{2y - x^2}{y^2 - 2x}\]

At \((3, 3)\): \(y' = \frac{6 - 9}{9 - 6} = -1\).

implicit & inverse

Find \(\frac{d^2y}{dx^2}\) in terms of \(y\) only.

\[x^2 + y^2 = 25\]
answer

\(y'' = -\dfrac{25}{y^3}\)

full solution

First derivative: \(2x + 2yy' = 0\), so \(y' = -\frac{x}{y}\). Differentiate again with the quotient rule (remember \(y\) depends on \(x\)):

\[y'' = -\frac{y - xy'}{y^2} = -\frac{y - x\left(-\frac{x}{y}\right)}{y^2} = -\frac{y^2 + x^2}{y^3} = -\frac{25}{y^3}\]

The last step uses the original equation \(x^2 + y^2 = 25\).

implicit & inverse

Find \(\frac{dy}{dx}\) at the origin.

\[\sin(x + y) = y^2\cos x\]
answer

\(-1\)

full solution

Differentiate both sides (chain rule on the left, product rule on the right):

\[\cos(x + y)(1 + y') = 2yy'\cos x - y^2\sin x\]

At \((0, 0)\): \(\cos 0\,(1 + y') = 0 - 0\), so \(1 + y' = 0\) and \(y' = -1\).

implicit & inverse

Let \(f(x) = x^3 + 2x + 1\). Find \(\left(f^{-1}\right)'(4)\).

answer

\(\frac{1}{5}\)

full solution

\(f'(x) = 3x^2 + 2 > 0\), so \(f\) is one-to-one and has an inverse. Find the input that gives 4: \(x^3 + 2x + 1 = 4\) is solved by \(x = 1\). Then

\[\left(f^{-1}\right)'(4) = \frac{1}{f'(1)} = \frac{1}{3 + 2} = \frac{1}{5}\]

No formula for \(f^{-1}\) is needed (and there is no nice one).

logarithmic differentiation

Differentiate using logarithmic differentiation.

\[y = x^{\sin x} \qquad (x > 0)\]
answer

\(y' = x^{\sin x}\left(\cos x\ln x + \dfrac{\sin x}{x}\right)\)

full solution

Take logs to bring down the exponent, then differentiate implicitly:

\[\ln y = \sin x\ln x \implies \frac{y'}{y} = \cos x\ln x + \frac{\sin x}{x}\]

Multiply by \(y = x^{\sin x}\).

logarithmic differentiation

Differentiate using logarithmic differentiation.

\[y = \frac{(x^2 + 1)^3\,(2x - 5)^4}{\sqrt{x^2 + 4}}\]
answer

\(y' = y\left(\dfrac{6x}{x^2 + 1} + \dfrac{8}{2x - 5} - \dfrac{x}{x^2 + 4}\right)\)

full solution

Take logs to turn the products and quotient into sums and differences:

\[\ln|y| = 3\ln(x^2 + 1) + 4\ln|2x - 5| - \tfrac{1}{2}\ln(x^2 + 4)\]
\[\frac{y'}{y} = \frac{6x}{x^2 + 1} + \frac{8}{2x - 5} - \frac{x}{x^2 + 4}\]

Multiply both sides by \(y\) (the original expression). The quotient rule would give the same thing with far more algebra.

inverse trig

Differentiate and simplify. What does the result tell you about the original function?

\[y = \arctan\left(\frac{1 + x}{1 - x}\right)\]
answer

\(y' = \frac{1}{1 + x^2}\), so \(y = \arctan x + C\) on each interval of its domain

full solution

Chain rule with the quotient rule on the inside:

\[\frac{d}{dx}\frac{1 + x}{1 - x} = \frac{(1 - x) + (1 + x)}{(1 - x)^2} = \frac{2}{(1 - x)^2}\]
\[y' = \frac{1}{1 + \frac{(1 + x)^2}{(1 - x)^2}}\cdot\frac{2}{(1 - x)^2} = \frac{2}{(1 - x)^2 + (1 + x)^2} = \frac{2}{2 + 2x^2} = \frac{1}{1 + x^2}\]

Same derivative as \(\arctan x\), so they differ by a constant on each interval. (Checking \(x = 0\): \(y = \arctan 1 = \frac{\pi}{4}\), so \(y = \arctan x + \frac{\pi}{4}\) for \(x < 1\). The tangent addition formula confirms it.)

inverse trig

Differentiate.

\[y = \arcsin\left(\sqrt{x}\right)\]
answer

\(y' = \dfrac{1}{2\sqrt{x}\sqrt{1 - x}}\)

full solution

Arcsine rule with \(u = \sqrt{x}\), \(u' = \frac{1}{2\sqrt{x}}\):

\[y' = \frac{1}{\sqrt{1 - (\sqrt{x})^2}}\cdot\frac{1}{2\sqrt{x}} = \frac{1}{2\sqrt{x}\sqrt{1 - x}} \qquad (0 < x < 1)\]

inverse trig

Differentiate and simplify.

\[y = \operatorname{arcsec}\left(e^{2x}\right) \qquad (x > 0)\]
answer

\(y' = \dfrac{2}{\sqrt{e^{4x} - 1}}\)

full solution

Arcsecant rule with \(u = e^{2x}\), \(u' = 2e^{2x}\). For \(x > 0\), \(u > 1\), so \(|u| = u\):

\[y' = \frac{2e^{2x}}{|e^{2x}|\sqrt{\left(e^{2x}\right)^2 - 1}} = \frac{2e^{2x}}{e^{2x}\sqrt{e^{4x} - 1}} = \frac{2}{\sqrt{e^{4x} - 1}}\]

hyperbolic functions

Show that all three functions have the same derivative, \(\sec x\), on \(\left(-\frac{\pi}{2}, \frac{\pi}{2}\right)\).

\[\ln|\sec x + \tan x| \qquad \operatorname{artanh}(\sin x) \qquad \operatorname{arsinh}(\tan x)\]
answer

Each derivative simplifies to \(\sec x\).

full solution
\[\frac{d}{dx}\ln|\sec x + \tan x| = \frac{\sec x\tan x + \sec^2 x}{\sec x + \tan x} = \frac{\sec x(\tan x + \sec x)}{\sec x + \tan x} = \sec x\]
\[\frac{d}{dx}\operatorname{artanh}(\sin x) = \frac{\cos x}{1 - \sin^2 x} = \frac{\cos x}{\cos^2 x} = \sec x\]
\[\frac{d}{dx}\operatorname{arsinh}(\tan x) = \frac{\sec^2 x}{\sqrt{1 + \tan^2 x}} = \frac{\sec^2 x}{|\sec x|} = \sec x \quad (\sec x > 0 \text{ on this interval})\]

Functions with equal derivatives on an interval differ by a constant, and all three equal 0 at \(x = 0\), so they are actually the same function there.

hyperbolic functions

Differentiate \(y = \cosh(\ln x)\) and write the answer without hyperbolic functions or logarithms.

answer

\(y' = \dfrac{x^2 - 1}{2x^2}\)

full solution

Chain rule: \(y' = \sinh(\ln x)\cdot\frac{1}{x}\). Now use the definition of \(\sinh\) and \(e^{\ln x} = x\), \(e^{-\ln x} = \frac{1}{x}\):

\[\sinh(\ln x) = \frac{x - \frac{1}{x}}{2} = \frac{x^2 - 1}{2x} \implies y' = \frac{x^2 - 1}{2x}\cdot\frac{1}{x} = \frac{x^2 - 1}{2x^2}\]

Check: \(\cosh(\ln x) = \frac{x + x^{-1}}{2}\), whose derivative is \(\frac{1 - x^{-2}}{2}\), the same thing.

higher derivatives

Find the 20th derivative.

\[f(x) = x^2e^x\]
answer

\(f^{(20)}(x) = e^x\left(x^2 + 40x + 380\right)\)

full solution

Leibniz rule with \(u = x^2\) (only three nonzero derivatives) and \(v = e^x\) (every derivative is \(e^x\)):

\[f^{(20)} = \binom{20}{0}x^2e^x + \binom{20}{1}(2x)e^x + \binom{20}{2}(2)e^x = e^x\left(x^2 + 40x + 190\cdot 2\right)\]

higher derivatives

Find the 50th derivative.

\[f(x) = \sin(2x)\]
answer

\(f^{(50)}(x) = -2^{50}\sin(2x)\)

full solution

Each derivative multiplies by 2 and advances the sine cycle by one step: \(f^{(n)}(x) = 2^n\sin\left(2x + \frac{n\pi}{2}\right)\).

For \(n = 50\): \(50 = 4\cdot 12 + 2\), so the cycle is at step 2, which is \(-\sin\). Equivalently, \(\sin(2x + 25\pi) = -\sin 2x\).

higher derivatives

Find a formula for the \(n\)th derivative.

\[f(x) = \frac{1}{x^2 - 1}\]
answer

\(f^{(n)}(x) = \dfrac{(-1)^n n!}{2}\left[\dfrac{1}{(x - 1)^{n+1}} - \dfrac{1}{(x + 1)^{n+1}}\right]\)

full solution

Split into partial fractions first, so each piece has an easy pattern:

\[\frac{1}{x^2 - 1} = \frac{1}{2}\left[\frac{1}{x - 1} - \frac{1}{x + 1}\right]\]

For \(\frac{1}{x - c} = (x - c)^{-1}\), the derivatives are \(-1(x - c)^{-2}\), \((-1)(-2)(x - c)^{-3}\), ..., so the \(n\)th is \((-1)^nn!(x - c)^{-(n+1)}\). Apply this to both pieces.

parametric & polar

For \(x = t^2 - 1\), \(y = t^3 - t\), find \(\frac{dy}{dx}\) and \(\frac{d^2y}{dx^2}\) at \(t = 2\).

answer

\(\frac{dy}{dx} = \frac{11}{4},\ \frac{d^2y}{dx^2} = \frac{13}{32}\)

full solution

First derivative:

\[\frac{dy}{dx} = \frac{3t^2 - 1}{2t} \qquad \text{at } t = 2: \ \frac{11}{4}\]

Differentiate \(\frac{dy}{dx}\) with respect to \(t\), then divide by \(\frac{dx}{dt} = 2t\):

\[\frac{d}{dt}\left(\frac{3t^2 - 1}{2t}\right) = \frac{6t\cdot 2t - (3t^2 - 1)\cdot 2}{4t^2} = \frac{6t^2 + 2}{4t^2} \qquad \frac{d^2y}{dx^2} = \frac{6t^2 + 2}{4t^2\cdot 2t} = \frac{26}{64} = \frac{13}{32}\]

parametric & polar

Find the slope of the cardioid \(r = 1 + \cos\theta\) at \(\theta = \frac{\pi}{2}\), and find where it has horizontal tangents for \(0 < \theta < \pi\).

answer

Slope \(1\); horizontal tangent at \(\theta = \frac{\pi}{3}\)

full solution

\(r' = -\sin\theta\). At \(\theta = \frac{\pi}{2}\): \(r = 1\), \(r' = -1\), \(\sin\theta = 1\), \(\cos\theta = 0\):

\[\frac{dy}{dx} = \frac{r'\sin\theta + r\cos\theta}{r'\cos\theta - r\sin\theta} = \frac{-1 + 0}{0 - 1} = 1\]

Horizontal tangents need \(\frac{dy}{d\theta} = 0\):

\[\frac{dy}{d\theta} = -\sin^2\theta + (1 + \cos\theta)\cos\theta = 2\cos^2\theta + \cos\theta - 1 = (2\cos\theta - 1)(\cos\theta + 1)\]

On \((0, \pi)\), \(\cos\theta = \frac{1}{2}\) gives \(\theta = \frac{\pi}{3}\), where \(\frac{dx}{d\theta} = -\sin\theta(1 + 2\cos\theta) \ne 0\).

extrema & the mean value theorem

Find every number \(c\) that satisfies the conclusion of the mean value theorem for \(f(x) = x^3 - 3x\) on \([0, 2]\).

answer

\(c = \frac{2}{\sqrt{3}} = \frac{2\sqrt{3}}{3}\)

full solution

\(f\) is a polynomial, so the hypotheses hold. The average rate of change is

\[\frac{f(2) - f(0)}{2 - 0} = \frac{2 - 0}{2} = 1\]

Set \(f'(c) = 3c^2 - 3 = 1\), so \(c^2 = \frac{4}{3}\) and \(c = \pm\frac{2}{\sqrt{3}}\). Only the positive value is in \((0, 2)\).

extrema & the mean value theorem

Prove that \(x^3 + x - 1 = 0\) has exactly one real solution.

answer

At least one by the IVT; at most one by Rolle's theorem.

full solution

Existence: \(f(x) = x^3 + x - 1\) is continuous with \(f(0) = -1 < 0\) and \(f(1) = 1 > 0\), so the intermediate value theorem gives a root in \((0, 1)\).

Uniqueness: suppose there were two roots \(a < b\). Then \(f(a) = f(b) = 0\), and Rolle's theorem gives a \(c\) between them with \(f'(c) = 0\). But \(f'(x) = 3x^2 + 1 \ge 1\) is never 0. So there cannot be two roots.

extrema & the mean value theorem

Find the absolute maximum and minimum values of \(f(x) = x - 2\sin x\) on \([0, \pi]\).

answer

Max \(\pi\) at \(x = \pi\); min \(\frac{\pi}{3} - \sqrt{3} \approx -0.685\) at \(x = \frac{\pi}{3}\)

full solution

\(f'(x) = 1 - 2\cos x = 0\) gives \(\cos x = \frac{1}{2}\), so \(x = \frac{\pi}{3}\) in the interval. Closed interval method:

\[f(0) = 0 \qquad f\left(\tfrac{\pi}{3}\right) = \tfrac{\pi}{3} - 2\cdot\tfrac{\sqrt{3}}{2} = \tfrac{\pi}{3} - \sqrt{3} \approx -0.685 \qquad f(\pi) = \pi - 0 = \pi\]

extrema & the mean value theorem

Suppose \(f(0) = -3\) and \(f'(x) \le 5\) for all \(x\). How large can \(f(2)\) possibly be?

answer

\(7\)

full solution

By the mean value theorem there is a \(c\) in \((0, 2)\) with

\[f(2) - f(0) = f'(c)(2 - 0) \le 5\cdot 2 = 10\]

So \(f(2) \le -3 + 10 = 7\). The bound is reached by \(f(x) = 5x - 3\).

shape of a graph

For \(f(x) = x^{2/3}(x - 5)\), find the local extrema, the intervals of concavity and the inflection points.

answer

Local max \(0\) at \(x = 0\); local min \(-3\sqrt[3]{4}\) at \(x = 2\); concave down on \((-\infty, -1)\), up on \((-1, 0)\) and \((0, \infty)\); inflection point \((-1, -6)\)

full solution

Write \(f(x) = x^{5/3} - 5x^{2/3}\) and differentiate:

\[f'(x) = \tfrac{5}{3}x^{2/3} - \tfrac{10}{3}x^{-1/3} = \frac{5(x - 2)}{3x^{1/3}} \qquad f''(x) = \tfrac{10}{9}x^{-1/3} + \tfrac{10}{9}x^{-4/3} = \frac{10(x + 1)}{9x^{4/3}}\]

Critical numbers: \(x = 2\) (\(f' = 0\)) and \(x = 0\) (\(f'\) undefined). The sign of \(f'\) is \(+\) on \((-\infty, 0)\), \(-\) on \((0, 2)\), \(+\) on \((2, \infty)\). So \(f(0) = 0\) is a local max (a cusp) and \(f(2) = 2^{2/3}(-3) = -3\sqrt[3]{4} \approx -4.76\) is a local min.

\(x^{4/3} > 0\) for \(x \ne 0\), so \(f''\) has the sign of \(x + 1\): negative for \(x < -1\), positive for \(x > -1\) (except undefined at 0, where concavity does not change). The inflection point is \((-1, f(-1)) = (-1, 1\cdot(-6)) = (-1, -6)\).

shape of a graph

The graph of \(f'\) is a downward parabola with zeros at \(x = -1\) and \(x = 3\). Where does \(f\) have local extrema and inflection points?

answer

Local min at \(x = -1\), local max at \(x = 3\), inflection point at \(x = 1\)

full solution

\(f' < 0\) for \(x < -1\), \(f' > 0\) on \((-1, 3)\), and \(f' < 0\) for \(x > 3\). So \(f\) changes from decreasing to increasing at \(-1\) (local min) and from increasing to decreasing at \(3\) (local max).

The parabola \(f'\) peaks at its vertex, halfway between the zeros, \(x = 1\). There \(f'\) switches from increasing to decreasing, so \(f''\) changes sign and \(f\) has an inflection point at \(x = 1\).

optimization

A box with an open top is made from a 12 in by 12 in sheet of cardboard by cutting equal squares from the corners and folding up the sides. Find the largest possible volume.

answer

\(128 \text{ in}^3\) (cut 2 in squares)

full solution

With corner squares of side \(x\), the base is \((12 - 2x)\) by \((12 - 2x)\) and the height is \(x\), for \(0 \le x \le 6\):

\[V(x) = x(12 - 2x)^2 \qquad V'(x) = (12 - 2x)^2 - 4x(12 - 2x) = (12 - 2x)(12 - 6x)\]

\(V' = 0\) at \(x = 2\) and \(x = 6\). Closed interval method: \(V(0) = 0\), \(V(2) = 2\cdot 64 = 128\), \(V(6) = 0\). The maximum is 128 cubic inches.

optimization

Find the point on the curve \(y = \sqrt{x}\) closest to the point \((3, 0)\).

answer

\(\left(\frac{5}{2}, \sqrt{\frac{5}{2}}\right)\), at distance \(\frac{\sqrt{11}}{2}\)

full solution

Minimize the squared distance (same minimizer, easier algebra). For a point \((x, \sqrt{x})\):

\[D(x) = (x - 3)^2 + (\sqrt{x})^2 = (x - 3)^2 + x \qquad D'(x) = 2(x - 3) + 1 = 0 \implies x = \tfrac{5}{2}\]

\(D'' = 2 > 0\), so it is a minimum, and the only critical number on \([0, \infty)\), so it is the absolute minimum. The distance is \(\sqrt{\frac{1}{4} + \frac{5}{2}} = \frac{\sqrt{11}}{2}\).

optimization

A cylindrical can must hold 1000 cm³. Find the radius and height that use the least material (surface area including top and bottom).

answer

\(r = \sqrt[3]{\frac{500}{\pi}} \approx 5.42\) cm and \(h = 2r \approx 10.84\) cm

full solution

Volume constraint \(\pi r^2h = 1000\) gives \(h = \frac{1000}{\pi r^2}\). Surface area:

\[A(r) = 2\pi r^2 + 2\pi rh = 2\pi r^2 + \frac{2000}{r} \qquad A'(r) = 4\pi r - \frac{2000}{r^2} = 0 \implies r^3 = \frac{500}{\pi}\]

\(A'' = 4\pi + \frac{4000}{r^3} > 0\), so this is a minimum. Then \(h = \frac{1000}{\pi r^2} = \frac{2\cdot 500}{\pi r^2} = \frac{2r^3}{r^2} = 2r\): the best can is as tall as it is wide.

related rates

A 10 ft ladder leans against a wall. The bottom slides away from the wall at 1 ft/s. How fast is the top sliding down when the bottom is 6 ft from the wall?

answer

\(\frac{3}{4}\) ft/s (downward)

full solution

Let \(x\) be the distance of the bottom from the wall and \(y\) the height of the top. Then \(x^2 + y^2 = 100\). Differentiate with respect to \(t\):

\[2x\frac{dx}{dt} + 2y\frac{dy}{dt} = 0 \implies \frac{dy}{dt} = -\frac{x}{y}\frac{dx}{dt}\]

When \(x = 6\), \(y = 8\), and \(\frac{dx}{dt} = 1\): \(\frac{dy}{dt} = -\frac{6}{8} = -\frac{3}{4}\) ft/s.

related rates

Water flows at 2 m³/min into a conical tank (vertex down) that is 4 m tall with a top radius of 2 m. How fast is the water level rising when the water is 3 m deep?

answer

\(\frac{8}{9\pi} \approx 0.283\) m/min

full solution

By similar triangles, the water's surface radius is \(r = \frac{h}{2}\). Write the volume in terms of \(h\) only, then differentiate:

\[V = \frac{1}{3}\pi r^2h = \frac{\pi h^3}{12} \qquad \frac{dV}{dt} = \frac{\pi h^2}{4}\frac{dh}{dt}\]

With \(\frac{dV}{dt} = 2\) and \(h = 3\): \(2 = \frac{9\pi}{4}\frac{dh}{dt}\), so \(\frac{dh}{dt} = \frac{8}{9\pi}\) m/min.

related rates

Car A drives west at 50 mi/h and car B drives north at 60 mi/h, both toward the same intersection. How fast is the distance between them changing when A is 0.3 mi and B is 0.4 mi from the intersection?

answer

Decreasing at 78 mi/h

full solution

With \(x\) and \(y\) the distances to the intersection, \(z^2 = x^2 + y^2\), so \(z\frac{dz}{dt} = x\frac{dx}{dt} + y\frac{dy}{dt}\). Both distances are shrinking, so \(\frac{dx}{dt} = -50\), \(\frac{dy}{dt} = -60\). At that moment \(z = 0.5\):

\[\frac{dz}{dt} = \frac{0.3(-50) + 0.4(-60)}{0.5} = \frac{-15 - 24}{0.5} = -78\]

motion & newton's method

Use Newton's method with \(x_0 = 2\) to find \(x_2\) for the root of \(x^3 - 2x - 5 = 0\).

answer

\(x_1 = 2.1\), \(x_2 \approx 2.094568\)

full solution

\(f(x) = x^3 - 2x - 5\), \(f'(x) = 3x^2 - 2\).

\[x_1 = 2 - \frac{8 - 4 - 5}{12 - 2} = 2 + \frac{1}{10} = 2.1 \qquad x_2 = 2.1 - \frac{9.261 - 4.2 - 5}{13.23 - 2} = 2.1 - \frac{0.061}{11.23} \approx 2.094568\]

The true root is 2.0945515, so two steps already give four correct decimal places.

motion & newton's method

A particle moves with position \(s(t) = t^3 - 6t^2 + 9t\) for \(t \ge 0\). When is it at rest, when is it speeding up, and how far does it travel from \(t = 0\) to \(t = 4\)?

answer

At rest at \(t = 1, 3\); speeding up on \((1, 2)\) and \((3, \infty)\); total distance 12

full solution

\(v(t) = 3t^2 - 12t + 9 = 3(t - 1)(t - 3)\) and \(a(t) = 6t - 12 = 6(t - 2)\). At rest when \(v = 0\): \(t = 1, 3\).

\(v > 0\) on \([0, 1)\) and \((3, \infty)\), \(v < 0\) on \((1, 3)\); \(a < 0\) for \(t < 2\), \(a > 0\) for \(t > 2\). Same signs (speeding up) on \((1, 2)\) and \((3, \infty)\).

Positions: \(s(0) = 0\), \(s(1) = 4\), \(s(3) = 0\), \(s(4) = 4\). The particle goes \(0 \to 4 \to 0 \to 4\): total distance \(4 + 4 + 4 = 12\), though its displacement is only 4.

antiderivatives

Find the integral.

\[\int\frac{(x^2 + 1)^2}{\sqrt{x}}\,dx\]
answer

\(\frac{2}{9}x^{9/2} + \frac{4}{5}x^{5/2} + 2x^{1/2} + C\)

full solution

There is no quotient rule for integrals, so expand and divide first:

\[\frac{x^4 + 2x^2 + 1}{x^{1/2}} = x^{7/2} + 2x^{3/2} + x^{-1/2}\]

Power rule term by term: \(\frac{x^{9/2}}{9/2} + 2\cdot\frac{x^{5/2}}{5/2} + \frac{x^{1/2}}{1/2} + C\).

antiderivatives

Find \(f\) if \(f''(x) = 12x^2 - 6\), \(f(0) = 1\) and \(f(1) = 0\).

answer

\(f(x) = x^4 - 3x^2 + x + 1\)

full solution

Integrate twice, with a new constant each time:

\[f'(x) = 4x^3 - 6x + C_1 \qquad f(x) = x^4 - 3x^2 + C_1x + C_2\]

\(f(0) = C_2 = 1\). Then \(f(1) = 1 - 3 + C_1 + 1 = 0\) gives \(C_1 = 1\).

riemann sums & definite integrals

Evaluate \(\int_0^2 x^3\,dx\) as a limit of right Riemann sums.

answer

\(4\)

full solution

\(\Delta x = \frac{2}{n}\) and \(x_i = \frac{2i}{n}\). Use \(\sum i^3 = \left[\frac{n(n + 1)}{2}\right]^2\):

\[\sum_{i=1}^{n}\left(\frac{2i}{n}\right)^3\frac{2}{n} = \frac{16}{n^4}\sum_{i=1}^{n}i^3 = \frac{16}{n^4}\cdot\frac{n^2(n + 1)^2}{4} = \frac{4(n + 1)^2}{n^2} \to 4\]

This matches FTC: \(\left[\frac{x^4}{4}\right]_0^2 = 4\).

riemann sums & definite integrals

Write the limit as a definite integral and evaluate it.

\[\lim_{n\to\infty}\sum_{i=1}^{n}\frac{n}{n^2 + i^2}\]
answer

\(\int_0^1\frac{dx}{1 + x^2} = \frac{\pi}{4}\)

full solution

Factor out \(\frac{1}{n}\) to expose \(\Delta x\) and a function of \(\frac{i}{n}\):

\[\frac{n}{n^2 + i^2} = \frac{1}{n}\cdot\frac{1}{1 + (i/n)^2}\]

This is a right Riemann sum for \(f(x) = \frac{1}{1 + x^2}\) on \([0, 1]\) with \(x_i = \frac{i}{n}\), \(\Delta x = \frac{1}{n}\). So the limit is \(\left[\arctan x\right]_0^1 = \frac{\pi}{4}\).

riemann sums & definite integrals

Write the limit as a definite integral and evaluate it.

\[\lim_{n\to\infty}\frac{1}{n}\sum_{i=1}^{n}\sqrt{1 + \frac{i}{n}}\]
answer

\(\int_0^1\sqrt{1 + x}\,dx = \frac{4\sqrt{2} - 2}{3}\)

full solution

With \(\Delta x = \frac{1}{n}\) and \(x_i = \frac{i}{n}\), this is a right Riemann sum for \(\sqrt{1 + x}\) on \([0, 1]\):

\[\int_0^1(1 + x)^{1/2}\,dx = \left[\tfrac{2}{3}(1 + x)^{3/2}\right]_0^1 = \tfrac{2}{3}\left(2\sqrt{2} - 1\right)\]

fundamental theorem

Find \(F'(x)\).

\[F(x) = \int_x^{x^2}\sqrt{1 + t^3}\,dt\]
answer

\(F'(x) = 2x\sqrt{1 + x^6} - \sqrt{1 + x^3}\)

full solution

FTC part 1 with variable upper and lower limits: plug in each limit and multiply by its derivative, subtracting the lower one:

\[F'(x) = \sqrt{1 + (x^2)^3}\cdot 2x - \sqrt{1 + x^3}\cdot 1\]

fundamental theorem

Evaluate the limit.

\[\lim_{x\to 0}\frac{1}{x^3}\int_0^x\sin(t^2)\,dt\]
answer

\(\frac{1}{3}\)

full solution

Both top and bottom go to 0. By L'Hôpital and FTC part 1, the derivative of the top is \(\sin(x^2)\):

\[\lim_{x\to 0}\frac{\sin(x^2)}{3x^2} = \frac{1}{3}\]

fundamental theorem

Find a function \(f\) and a number \(a\) such that the equation holds for all \(x > 0\).

\[6 + \int_a^x\frac{f(t)}{t^2}\,dt = 2\sqrt{x}\]
answer

\(f(x) = x^{3/2}\), \(a = 9\)

full solution

Differentiate both sides with FTC part 1: \(\frac{f(x)}{x^2} = \frac{1}{\sqrt{x}}\), so \(f(x) = x^{3/2}\).

Set \(x = a\): the integral from \(a\) to \(a\) is 0, so \(6 = 2\sqrt{a}\) and \(a = 9\).

fundamental theorem

Find the average value of \(f(x) = \sin^2 x\) on \([0, \pi]\).

answer

\(\frac{1}{2}\)

full solution

Use the power-reducing identity \(\sin^2 x = \frac{1 - \cos 2x}{2}\):

\[\frac{1}{\pi}\int_0^\pi\frac{1 - \cos 2x}{2}\,dx = \frac{1}{\pi}\left[\frac{x}{2} - \frac{\sin 2x}{4}\right]_0^\pi = \frac{1}{\pi}\cdot\frac{\pi}{2} = \frac{1}{2}\]

substitution

Find the integral.

\[\int x^3\sqrt{x^2 + 1}\,dx\]
answer

\(\frac{1}{5}(x^2 + 1)^{5/2} - \frac{1}{3}(x^2 + 1)^{3/2} + C\)

full solution

Let \(u = x^2 + 1\), so \(du = 2x\,dx\) and \(x^2 = u - 1\). Split \(x^3 = x^2\cdot x\):

\[\int x^2\sqrt{x^2 + 1}\,x\,dx = \frac{1}{2}\int(u - 1)u^{1/2}\,du = \frac{1}{2}\left(\frac{2}{5}u^{5/2} - \frac{2}{3}u^{3/2}\right) + C\]

substitution

Evaluate the integral.

\[\int_0^{\pi/2}\frac{\cos x}{1 + \sin^2 x}\,dx\]
answer

\(\frac{\pi}{4}\)

full solution

Let \(u = \sin x\), \(du = \cos x\,dx\). The limits change to \(u = 0\) and \(u = 1\):

\[\int_0^1\frac{du}{1 + u^2} = \left[\arctan u\right]_0^1 = \frac{\pi}{4}\]

substitution

Evaluate the integral.

\[\int_e^{e^2}\frac{dx}{x(\ln x)^2}\]
answer

\(\frac{1}{2}\)

full solution

Let \(u = \ln x\), \(du = \frac{dx}{x}\); the limits become \(1\) and \(2\):

\[\int_1^2 u^{-2}\,du = \left[-\frac{1}{u}\right]_1^2 = -\frac{1}{2} + 1 = \frac{1}{2}\]

integration by parts

Find the integral.

\[\int x^2\sin 3x\,dx\]
answer

\(-\frac{x^2\cos 3x}{3} + \frac{2x\sin 3x}{9} + \frac{2\cos 3x}{27} + C\)

full solution

Tabular integration: differentiate \(x^2 \to 2x \to 2 \to 0\); integrate \(\sin 3x \to -\frac{\cos 3x}{3} \to -\frac{\sin 3x}{9} \to \frac{\cos 3x}{27}\). Multiply diagonally with signs \(+, -, +\):

\[x^2\left(-\frac{\cos 3x}{3}\right) - 2x\left(-\frac{\sin 3x}{9}\right) + 2\left(\frac{\cos 3x}{27}\right) + C\]

integration by parts

Find the integral.

\[\int e^{2x}\cos x\,dx\]
answer

\(\frac{e^{2x}(2\cos x + \sin x)}{5} + C\)

full solution

Call it \(I\). By parts with \(u = \cos x\), \(dv = e^{2x}dx\), then again with \(u = \sin x\):

\[I = \tfrac{1}{2}e^{2x}\cos x + \tfrac{1}{2}\int e^{2x}\sin x\,dx = \tfrac{1}{2}e^{2x}\cos x + \tfrac{1}{4}e^{2x}\sin x - \tfrac{1}{4}I\]

The original integral came back. Solve: \(\frac{5}{4}I = \frac{1}{4}e^{2x}(2\cos x + \sin x)\), so \(I = \frac{e^{2x}(2\cos x + \sin x)}{5} + C\).

integration by parts

Evaluate the integral.

\[\int_1^e(\ln x)^2\,dx\]
answer

\(e - 2\)

full solution

By parts with \(u = (\ln x)^2\), \(dv = dx\): \(du = \frac{2\ln x}{x}dx\), \(v = x\). Then once more with \(\int\ln x\,dx = x\ln x - x\):

\[\int(\ln x)^2\,dx = x(\ln x)^2 - 2\int\ln x\,dx = x(\ln x)^2 - 2x\ln x + 2x\]

Evaluate: \((e - 2e + 2e) - (0 - 0 + 2) = e - 2\).

integration by parts

Find the integral.

\[\int x\arctan x\,dx\]
answer

\(\frac{1}{2}(x^2 + 1)\arctan x - \frac{x}{2} + C\)

full solution

LIATE: \(u = \arctan x\), \(dv = x\,dx\), so \(du = \frac{dx}{1 + x^2}\), \(v = \frac{x^2}{2}\):

\[\frac{x^2}{2}\arctan x - \frac{1}{2}\int\frac{x^2}{1 + x^2}\,dx = \frac{x^2}{2}\arctan x - \frac{1}{2}\int\left(1 - \frac{1}{1 + x^2}\right)dx\]

\(= \frac{x^2}{2}\arctan x - \frac{x}{2} + \frac{1}{2}\arctan x + C\), which combines to the answer.

trig integrals

Find the integral.

\[\int\sin^5 x\cos^2 x\,dx\]
answer

\(-\frac{\cos^3 x}{3} + \frac{2\cos^5 x}{5} - \frac{\cos^7 x}{7} + C\)

full solution

The power of sine is odd. Save one \(\sin x\), convert \(\sin^4 x = (1 - \cos^2 x)^2\), and let \(u = \cos x\), \(du = -\sin x\,dx\):

\[-\int(1 - u^2)^2u^2\,du = -\int\left(u^2 - 2u^4 + u^6\right)du = -\frac{u^3}{3} + \frac{2u^5}{5} - \frac{u^7}{7} + C\]

trig integrals

Find the integral.

\[\int\tan^3 x\sec^4 x\,dx\]
answer

\(\frac{\tan^4 x}{4} + \frac{\tan^6 x}{6} + C\)

full solution

The power of secant is even. Save \(\sec^2 x\) and convert the other \(\sec^2 x = 1 + \tan^2 x\); let \(u = \tan x\):

\[\int\tan^3 x(1 + \tan^2 x)\sec^2 x\,dx = \int(u^3 + u^5)\,du = \frac{u^4}{4} + \frac{u^6}{6} + C\]

trig integrals

Evaluate the integral.

\[\int_0^\pi\sin^2 x\cos^2 x\,dx\]
answer

\(\frac{\pi}{8}\)

full solution

Both powers are even. Use \(\sin x\cos x = \frac{1}{2}\sin 2x\), then reduce the power:

\[\int_0^\pi\frac{\sin^2 2x}{4}\,dx = \frac{1}{4}\int_0^\pi\frac{1 - \cos 4x}{2}\,dx = \frac{1}{8}\left[x - \frac{\sin 4x}{4}\right]_0^\pi = \frac{\pi}{8}\]

trig integrals

Find the integral using a trigonometric substitution.

\[\int\frac{dx}{x^2\sqrt{9 - x^2}}\]
answer

\(-\frac{\sqrt{9 - x^2}}{9x} + C\)

full solution

Let \(x = 3\sin\theta\), \(dx = 3\cos\theta\,d\theta\), \(\sqrt{9 - x^2} = 3\cos\theta\):

\[\int\frac{3\cos\theta\,d\theta}{9\sin^2\theta\cdot 3\cos\theta} = \frac{1}{9}\int\csc^2\theta\,d\theta = -\frac{1}{9}\cot\theta + C\]

From the triangle with opposite side \(x\) and hypotenuse 3, the adjacent side is \(\sqrt{9 - x^2}\), so \(\cot\theta = \frac{\sqrt{9 - x^2}}{x}\).

trig integrals

Find the integral for \(x > 2\).

\[\int\frac{\sqrt{x^2 - 4}}{x}\,dx\]
answer

\(\sqrt{x^2 - 4} - 2\operatorname{arcsec}\frac{x}{2} + C\)

full solution

Let \(x = 2\sec\theta\), \(dx = 2\sec\theta\tan\theta\,d\theta\), \(\sqrt{x^2 - 4} = 2\tan\theta\):

\[\int\frac{2\tan\theta}{2\sec\theta}\cdot 2\sec\theta\tan\theta\,d\theta = 2\int\tan^2\theta\,d\theta = 2\int(\sec^2\theta - 1)\,d\theta = 2\tan\theta - 2\theta + C\]

Back-substitute \(\tan\theta = \frac{\sqrt{x^2 - 4}}{2}\) and \(\theta = \operatorname{arcsec}\frac{x}{2}\).

partial fractions

Find the integral.

\[\int\frac{x + 5}{x^2 + x - 2}\,dx\]
answer

\(2\ln|x - 1| - \ln|x + 2| + C\)

full solution

Factor: \(x^2 + x - 2 = (x - 1)(x + 2)\). Write \(\frac{x + 5}{(x - 1)(x + 2)} = \frac{A}{x - 1} + \frac{B}{x + 2}\), so \(x + 5 = A(x + 2) + B(x - 1)\).

\(x = 1\): \(6 = 3A\), \(A = 2\). \(x = -2\): \(3 = -3B\), \(B = -1\). Integrate each piece to a logarithm.

partial fractions

Find the integral.

\[\int\frac{2x^2 - x + 4}{x^3 + 4x}\,dx\]
answer

\(\ln|x| + \frac{1}{2}\ln(x^2 + 4) - \frac{1}{2}\arctan\frac{x}{2} + C\)

full solution

\(x^3 + 4x = x(x^2 + 4)\), with an irreducible quadratic. Set up

\[\frac{2x^2 - x + 4}{x(x^2 + 4)} = \frac{A}{x} + \frac{Bx + C}{x^2 + 4} \implies 2x^2 - x + 4 = (A + B)x^2 + Cx + 4A\]

Match coefficients: \(4A = 4\), \(C = -1\), \(A + B = 2\), so \(A = 1\), \(B = 1\), \(C = -1\). Then split the quadratic piece:

\[\int\frac{dx}{x} + \int\frac{x\,dx}{x^2 + 4} - \int\frac{dx}{x^2 + 4} = \ln|x| + \tfrac{1}{2}\ln(x^2 + 4) - \tfrac{1}{2}\arctan\tfrac{x}{2} + C\]

partial fractions

Find the integral.

\[\int\frac{dx}{x^2(x + 1)}\]
answer

\(-\ln|x| - \frac{1}{x} + \ln|x + 1| + C\)

full solution

The repeated factor \(x^2\) needs two terms: \(\frac{1}{x^2(x + 1)} = \frac{A}{x} + \frac{B}{x^2} + \frac{C}{x + 1}\), so \(1 = Ax(x + 1) + B(x + 1) + Cx^2\).

\(x = 0\): \(B = 1\). \(x = -1\): \(C = 1\). The \(x^2\) coefficient: \(A + C = 0\), so \(A = -1\). Integrate: \(-\ln|x| - \frac{1}{x} + \ln|x + 1| + C\).

improper integrals

Evaluate the integral or show that it diverges.

\[\int_0^\infty xe^{-x}\,dx\]
answer

\(1\)

full solution

By parts, \(\int xe^{-x}\,dx = -xe^{-x} - e^{-x}\). Then take the limit:

\[\lim_{t\to\infty}\left[-xe^{-x} - e^{-x}\right]_0^t = \lim_{t\to\infty}\left(-te^{-t} - e^{-t}\right) + 1 = 0 - 0 + 1 = 1\]

\(te^{-t} = \frac{t}{e^t} \to 0\) by L'Hôpital's rule.

improper integrals

Evaluate the integral or show that it diverges.

\[\int_0^3\frac{dx}{(x - 1)^{2/3}}\]
answer

\(3 + 3\sqrt[3]{2}\)

full solution

The integrand blows up at \(x = 1\), inside the interval, so split there. An antiderivative is \(3(x - 1)^{1/3}\):

\[\lim_{t\to 1^-}\Big[3(x - 1)^{1/3}\Big]_0^t + \lim_{s\to 1^+}\Big[3(x - 1)^{1/3}\Big]_s^3 = (0 - (-3)) + (3\sqrt[3]{2} - 0)\]

Both parts converge, so the integral is \(3 + 3\sqrt[3]{2} \approx 6.78\).

improper integrals

Decide whether each integral converges, without evaluating it.

\[\text{(a)}\ \int_1^\infty\frac{2 + \cos x}{x^2}\,dx \qquad \text{(b)}\ \int_1^\infty\frac{1 + e^{-x}}{x}\,dx\]
answer

(a) converges; (b) diverges

full solution

(a) Since \(\cos x \le 1\), \(0 < \frac{2 + \cos x}{x^2} \le \frac{3}{x^2}\), and \(\int_1^\infty\frac{3}{x^2}\,dx\) is a convergent p-integral (\(p = 2\)). By comparison, (a) converges.

(b) Since \(e^{-x} > 0\), \(\frac{1 + e^{-x}}{x} > \frac{1}{x}\), and \(\int_1^\infty\frac{dx}{x}\) diverges (\(p = 1\)). By comparison, (b) diverges.

area & volume

Find the area of the region enclosed by \(x = y^2\) and \(y = x - 2\).

answer

\(\frac{9}{2}\)

full solution

Integrate in \(y\) (otherwise the region needs two pieces). Intersections: \(y^2 = y + 2\) gives \(y = -1, 2\). The right curve is \(x = y + 2\), the left is \(x = y^2\):

\[\int_{-1}^{2}\left(y + 2 - y^2\right)dy = \left[\frac{y^2}{2} + 2y - \frac{y^3}{3}\right]_{-1}^{2} = \frac{10}{3} - \left(-\frac{7}{6}\right) = \frac{9}{2}\]

area & volume

Find the area between \(y = x^2\) and \(y = 2x - x^2\).

answer

\(\frac{1}{3}\)

full solution

Intersections: \(x^2 = 2x - x^2\) gives \(x = 0, 1\). On \((0, 1)\), \(2x - x^2\) is on top:

\[\int_0^1\left(2x - x^2 - x^2\right)dx = \left[x^2 - \tfrac{2}{3}x^3\right]_0^1 = \tfrac{1}{3}\]

area & volume

The region under \(y = \sqrt{x}\) from \(x = 0\) to \(x = 4\) is revolved around the line \(y = -1\). Find the volume.

answer

\(\frac{56\pi}{3}\)

full solution

Washers: the outer radius reaches the curve, \(R = \sqrt{x} + 1\); the inner radius reaches the \(x\)-axis, \(r = 0 + 1 = 1\):

\[V = \pi\int_0^4\left[(\sqrt{x} + 1)^2 - 1^2\right]dx = \pi\int_0^4\left(x + 2\sqrt{x}\right)dx = \pi\left(8 + \tfrac{32}{3}\right) = \tfrac{56\pi}{3}\]

area & volume

The region between \(y = x - x^2\) and the \(x\)-axis is revolved around the line \(x = 2\). Find the volume.

answer

\(\frac{\pi}{2}\)

full solution

Shells: a vertical strip at \(x\) has radius \(2 - x\) (distance to \(x = 2\)) and height \(x - x^2\):

\[V = 2\pi\int_0^1(2 - x)(x - x^2)\,dx = 2\pi\int_0^1\left(2x - 3x^2 + x^3\right)dx = 2\pi\left(1 - 1 + \tfrac{1}{4}\right) = \tfrac{\pi}{2}\]

area & volume

A solid has the disk \(x^2 + y^2 \le 1\) as its base. Cross sections perpendicular to the \(x\)-axis are squares. Find the volume.

answer

\(\frac{16}{3}\)

full solution

At position \(x\), the side of the square spans the disk from \(y = -\sqrt{1 - x^2}\) to \(\sqrt{1 - x^2}\), so \(s = 2\sqrt{1 - x^2}\) and \(A(x) = 4(1 - x^2)\):

\[V = \int_{-1}^{1}4(1 - x^2)\,dx = 4\left[x - \frac{x^3}{3}\right]_{-1}^{1} = 4\cdot\frac{4}{3} = \frac{16}{3}\]

applications of integrals

Find the arc length of \(y = \frac{2}{3}x^{3/2}\) from \(x = 0\) to \(x = 3\).

answer

\(\frac{14}{3}\)

full solution

\(y' = x^{1/2}\), so \(1 + (y')^2 = 1 + x\):

\[L = \int_0^3\sqrt{1 + x}\,dx = \left[\tfrac{2}{3}(1 + x)^{3/2}\right]_0^3 = \tfrac{2}{3}(8 - 1) = \tfrac{14}{3}\]

applications of integrals

Find the arc length of \(y = \ln(\cos x)\) from \(x = 0\) to \(x = \frac{\pi}{4}\).

answer

\(\ln\left(1 + \sqrt{2}\right) \approx 0.881\)

full solution

\(y' = -\tan x\), so \(1 + (y')^2 = 1 + \tan^2 x = \sec^2 x\), a perfect square:

\[L = \int_0^{\pi/4}\sec x\,dx = \Big[\ln|\sec x + \tan x|\Big]_0^{\pi/4} = \ln\left(\sqrt{2} + 1\right) - \ln 1\]

applications of integrals

A force of 10 N stretches a spring 0.2 m beyond its natural length. How much work does it take to stretch it from 0.2 m to 0.5 m beyond natural length?

answer

\(5.25\) J

full solution

Hooke's law: \(10 = k(0.2)\), so \(k = 50\) N/m. Then

\[W = \int_{0.2}^{0.5}50x\,dx = 25\left(0.5^2 - 0.2^2\right) = 25(0.21) = 5.25 \text{ J}\]

applications of integrals

A cylindrical tank with radius 2 m and height 5 m is full of water (\(\rho = 1000\) kg/m³, \(g = 9.8\) m/s²). How much work is needed to pump all the water out over the top?

answer

\(50\pi\rho g = 490{,}000\pi \approx 1.54 \times 10^6\) J

full solution

Slice the water into horizontal layers at height \(y\) with thickness \(dy\). Each layer has volume \(4\pi\,dy\), weight \(\rho g\cdot 4\pi\,dy\), and must be lifted \(5 - y\):

\[W = \int_0^5\rho g\cdot 4\pi(5 - y)\,dy = 4\pi\rho g\left[5y - \frac{y^2}{2}\right]_0^5 = 4\pi\rho g\cdot\frac{25}{2} = 50\pi\rho g\]

applications of integrals

Find the area of one petal of the rose \(r = \cos 2\theta\).

answer

\(\frac{\pi}{8}\)

full solution

One petal is traced as \(\theta\) runs between consecutive zeros of \(r\): \(\cos 2\theta = 0\) at \(\theta = \pm\frac{\pi}{4}\).

\[A = \frac{1}{2}\int_{-\pi/4}^{\pi/4}\cos^2 2\theta\,d\theta = \frac{1}{2}\int_{-\pi/4}^{\pi/4}\frac{1 + \cos 4\theta}{2}\,d\theta = \frac{1}{4}\left[\theta + \frac{\sin 4\theta}{4}\right]_{-\pi/4}^{\pi/4} = \frac{\pi}{8}\]

differential equations

Solve the initial value problem, and give the interval where the solution exists.

\[\frac{dy}{dx} = xy^2, \qquad y(0) = 1\]
answer

\(y = \frac{2}{2 - x^2}\) for \(-\sqrt{2} < x < \sqrt{2}\)

full solution

Separate and integrate:

\[\int y^{-2}\,dy = \int x\,dx \implies -\frac{1}{y} = \frac{x^2}{2} + C\]

\(y(0) = 1\) gives \(C = -1\). Then \(\frac{1}{y} = 1 - \frac{x^2}{2}\), so \(y = \frac{2}{2 - x^2}\). The solution blows up at \(x = \pm\sqrt{2}\), so it only exists on the interval between them that contains 0.

differential equations

A population grows logistically by \(\frac{dP}{dt} = 0.02P\left(1 - \frac{P}{5000}\right)\) with \(P(0) = 500\). Find \(P(t)\) and when the population reaches 2500.

answer

\(P = \frac{5000}{1 + 9e^{-0.02t}}\); reaches 2500 at \(t = 50\ln 9 \approx 109.9\)

full solution

Here \(k = 0.02\), \(L = 5000\), and \(A = \frac{L - P_0}{P_0} = \frac{4500}{500} = 9\).

\(P = 2500\) means \(1 + 9e^{-0.02t} = 2\), so \(e^{-0.02t} = \frac{1}{9}\) and \(t = \frac{\ln 9}{0.02}\). This is the inflection point, where growth is fastest, since 2500 is half the carrying capacity.

differential equations

Use Euler's method with step \(h = 0.1\) to estimate \(y(0.3)\) for \(y' = x + y\), \(y(0) = 1\). Compare with the exact solution \(y = 2e^x - x - 1\).

answer

Euler: \(1.362\); exact: \(1.39972\)

full solution

Apply \(y_{n+1} = y_n + 0.1(x_n + y_n)\) three times:

\[y_1 = 1 + 0.1(0 + 1) = 1.1 \qquad y_2 = 1.1 + 0.1(0.1 + 1.1) = 1.22 \qquad y_3 = 1.22 + 0.1(0.2 + 1.22) = 1.362\]

The exact value is \(2e^{0.3} - 1.3 \approx 1.39972\). Euler underestimates because the solution is concave up (\(y'' = 1 + y' > 0\)), so each tangent step falls below the curve.

differential equations

Coffee at 90°C is left in a 20°C room. After 5 minutes it is 70°C. When will it be 50°C?

answer

\(t = \frac{5\ln(3/7)}{\ln(5/7)} \approx 12.6\) minutes

full solution

Newton's law of cooling: \(T = 20 + 70e^{kt}\). At \(t = 5\): \(70 = 20 + 70e^{5k}\), so \(e^{5k} = \frac{5}{7}\) and \(k = \frac{1}{5}\ln\frac{5}{7}\).

Set \(T = 50\): \(e^{kt} = \frac{30}{70} = \frac{3}{7}\), so \(t = \frac{\ln(3/7)}{k} = \frac{5\ln(3/7)}{\ln(5/7)} \approx 12.6\) minutes.

differential equations

Solve for \(x > 0\).

\[y' + \frac{2}{x}y = \frac{\cos x}{x^2}\]
answer

\(y = \frac{\sin x + C}{x^2}\)

full solution

This is first-order linear with \(P = \frac{2}{x}\). The integrating factor is \(\mu = e^{\int 2/x\,dx} = e^{2\ln x} = x^2\). Multiply through:

\[x^2y' + 2xy = \cos x \implies \left(x^2y\right)' = \cos x \implies x^2y = \sin x + C\]

series convergence

Find the sum of the series.

\[\sum_{n=1}^{\infty}\frac{2^n + 3^n}{6^n}\]
answer

\(\frac{3}{2}\)

full solution

Split into two geometric series with ratios \(\frac{1}{3}\) and \(\frac{1}{2}\) (first terms \(\frac{1}{3}\) and \(\frac{1}{2}\)):

\[\sum_{n=1}^{\infty}\left(\frac{1}{3}\right)^n + \sum_{n=1}^{\infty}\left(\frac{1}{2}\right)^n = \frac{1/3}{1 - 1/3} + \frac{1/2}{1 - 1/2} = \frac{1}{2} + 1\]

series convergence

Find the sum of the series.

\[\sum_{n=1}^{\infty}\frac{1}{n(n + 2)}\]
answer

\(\frac{3}{4}\)

full solution

Partial fractions: \(\frac{1}{n(n + 2)} = \frac{1}{2}\left(\frac{1}{n} - \frac{1}{n + 2}\right)\). The sum telescopes, but terms cancel two apart, so two terms survive at the start:

\[S_N = \frac{1}{2}\left(1 + \frac{1}{2} - \frac{1}{N + 1} - \frac{1}{N + 2}\right) \to \frac{1}{2}\cdot\frac{3}{2} = \frac{3}{4}\]

series convergence

Decide whether each series converges or diverges, and name the test.

\[\text{(a)}\ \sum\frac{n^2}{n^3 + 1} \qquad \text{(b)}\ \sum\frac{n!}{n^n} \qquad \text{(c)}\ \sum\frac{\ln n}{n^2}\]
answer

(a) diverges (limit comparison); (b) converges (ratio test); (c) converges (comparison or integral test)

full solution

(a) Compare with \(\frac{1}{n}\): \(\frac{n^2/(n^3 + 1)}{1/n} = \frac{n^3}{n^3 + 1} \to 1\). The harmonic series diverges, so (a) diverges.

(b) Ratio test:

\[\frac{(n + 1)!}{(n + 1)^{n+1}}\cdot\frac{n^n}{n!} = \frac{n^n}{(n + 1)^n} = \frac{1}{(1 + 1/n)^n} \to \frac{1}{e} < 1\]

(c) For large \(n\), \(\ln n < \sqrt{n}\), so \(\frac{\ln n}{n^2} < \frac{1}{n^{3/2}}\), a convergent p-series. (The integral test also works: \(\int_1^\infty\frac{\ln x}{x^2}dx = 1\).)

series convergence

Is the series absolutely convergent, conditionally convergent or divergent? How many terms are needed to approximate its sum within 0.01?

\[\sum_{n=1}^{\infty}\frac{(-1)^{n+1}}{\sqrt{n}}\]
answer

Conditionally convergent; 9999 terms (\(b_{n+1} = \frac{1}{\sqrt{n + 1}} \le 0.01\) needs \(n + 1 \ge 10000\))

full solution

\(\sum\frac{1}{\sqrt{n}}\) is a p-series with \(p = \frac{1}{2} \le 1\), so it diverges: not absolutely convergent. But \(b_n = \frac{1}{\sqrt{n}}\) decreases to 0, so the alternating series test says it converges. Hence conditionally convergent.

By the alternating series error bound, \(|S - S_n| \le \frac{1}{\sqrt{n + 1}}\). This is at most 0.01 when \(\sqrt{n + 1} \ge 100\), that is \(n \ge 9999\). Conditionally convergent series often converge this slowly.

power & taylor series

Find the radius and interval of convergence.

\[\sum_{n=1}^{\infty}\frac{(x - 3)^n}{n\cdot 2^n}\]
answer

\(R = 2\), interval \([1, 5)\)

full solution

Ratio test:

\[\left|\frac{(x - 3)^{n+1}}{(n + 1)2^{n+1}}\cdot\frac{n2^n}{(x - 3)^n}\right| = \frac{|x - 3|}{2}\cdot\frac{n}{n + 1} \to \frac{|x - 3|}{2} < 1 \iff |x - 3| < 2\]

Endpoints: at \(x = 5\) the series is \(\sum\frac{1}{n}\), which diverges. At \(x = 1\) it is \(\sum\frac{(-1)^n}{n}\), which converges by the alternating series test.

power & taylor series

Use a known series to evaluate the limit.

\[\lim_{x\to 0}\frac{\sin x - x + \frac{x^3}{6}}{x^5}\]
answer

\(\frac{1}{120}\)

full solution

\(\sin x = x - \frac{x^3}{6} + \frac{x^5}{120} - \cdots\), so the numerator is \(\frac{x^5}{120} - \frac{x^7}{5040} + \cdots\):

\[\frac{\frac{x^5}{120} - \frac{x^7}{5040} + \cdots}{x^5} = \frac{1}{120} - \frac{x^2}{5040} + \cdots \to \frac{1}{120}\]

L'Hôpital would need five rounds of differentiation for the same answer.

power & taylor series

Use a series to approximate \(\int_0^1 e^{-x^2}\,dx\) with error less than 0.001.

answer

\(1 - \frac{1}{3} + \frac{1}{10} - \frac{1}{42} + \frac{1}{216} \approx 0.7475\)

full solution

Substitute \(-x^2\) into the series for \(e^x\) and integrate term by term:

\[\int_0^1\sum_{n=0}^{\infty}\frac{(-1)^nx^{2n}}{n!}\,dx = \sum_{n=0}^{\infty}\frac{(-1)^n}{n!(2n + 1)} = 1 - \frac{1}{3} + \frac{1}{10} - \frac{1}{42} + \frac{1}{216} - \frac{1}{1320} + \cdots\]

The series alternates with decreasing terms, so the error is less than the first omitted term. \(\frac{1}{1320} \approx 0.00076 < 0.001\), so stop before it. The true value is 0.746824.

power & taylor series

Use the degree 3 Maclaurin polynomial of \(\sin x\) to approximate \(\sin 0.5\), and bound the error with the Lagrange error bound.

answer

\(\sin 0.5 \approx 0.479167\), error at most \(\frac{0.5^5}{120} \approx 0.00026\)

full solution

\(P_3(x) = x - \frac{x^3}{6}\), so \(P_3(0.5) = 0.5 - \frac{0.125}{6} \approx 0.479167\).

The \(x^4\) coefficient of the sine series is 0, so \(P_3 = P_4\), and we can use the bound for \(n = 4\). Every derivative of \(\sin\) is at most 1 in size, so \(M = 1\):

\[|R_4(0.5)| \le \frac{1}{5!}(0.5)^5 = \frac{0.03125}{120} \approx 0.00026\]

The actual error is \(0.479426 - 0.479167 = 0.000259\), right at the bound.

power & taylor series

Find the sum of the series.

\[\sum_{n=1}^{\infty}\frac{n}{2^n}\]
answer

\(2\)

full solution

Differentiate the geometric series \(\sum_{n=0}^{\infty}x^n = \frac{1}{1 - x}\) term by term and multiply by \(x\):

\[\sum_{n=1}^{\infty}nx^{n-1} = \frac{1}{(1 - x)^2} \implies \sum_{n=1}^{\infty}nx^n = \frac{x}{(1 - x)^2}\]

At \(x = \frac{1}{2}\) (inside the radius 1): \(\frac{1/2}{1/4} = 2\).

power & taylor series

Find \(f^{(10)}(0)\) for \(f(x) = x^2\cos(x^2)\).

answer

\(\frac{10!}{24} = 151200\)

full solution

Build the series from the cosine series instead of differentiating ten times:

\[x^2\cos(x^2) = x^2\sum_{n=0}^{\infty}\frac{(-1)^nx^{4n}}{(2n)!} = x^2 - \frac{x^6}{2} + \frac{x^{10}}{24} - \cdots\]

The Taylor coefficient of \(x^{10}\) is \(\frac{f^{(10)}(0)}{10!}\). It equals \(\frac{1}{24}\), so \(f^{(10)}(0) = \frac{10!}{24} = 151200\).

power & taylor series

Find the Taylor series of \(\ln x\) centered at \(a = 1\) and its radius of convergence.

answer

\(\sum_{n=1}^{\infty}\frac{(-1)^{n+1}(x - 1)^n}{n}\), \(R = 1\)

full solution

Write \(\ln x = \ln(1 + (x - 1))\) and substitute \(x - 1\) into the series \(\ln(1 + u) = u - \frac{u^2}{2} + \frac{u^3}{3} - \cdots\), valid for \(-1 < u \le 1\).

Alternatively, the derivatives are \(f^{(n)}(x) = \frac{(-1)^{n-1}(n - 1)!}{x^n}\), so \(\frac{f^{(n)}(1)}{n!} = \frac{(-1)^{n-1}}{n}\). The series converges for \(0 < x \le 2\).