Math Core

Lesson 1.2 · AB Review: Limits and Derivatives

Derivative rules review

In BC you will differentiate parametric curves, polar curves and power series, and every one of those rests on the basic rules. This lesson reviews the limit definition, differentiability, and the full rule set, so that the mechanics are automatic before new material arrives.

The derivative as a limit

The derivative of ff at x=ax = a is

f′(a)=lim⁡h→0f(a+h)−f(a)h=lim⁡x→af(x)−f(a)x−a,f'(a) = \lim_{h \to 0} \frac{f(a + h) - f(a)}{h} = \lim_{x \to a} \frac{f(x) - f(a)}{x - a},

when the limit exists. Geometrically it is the slope of the tangent line; in context it is the instantaneous rate of change, with units of (output units) per (input unit).

AP exams love to hand you a limit and ask you to recognize it as a derivative. Look for the pattern "change in ff over change in input" with the input change going to 00. Then identify the function and the point, and differentiate instead of grinding through algebra.

Worked example: Reading a limit as a derivative

Evaluate lim⁡h→08+h3−2h\displaystyle\lim_{h \to 0} \frac{\sqrt[3]{8 + h} - 2}{h} and lim⁡x→πsin⁡xx−π\displaystyle\lim_{x \to \pi} \frac{\sin x}{x - \pi}.

Solution. The first is f′(8)f'(8) for f(x)=x1/3f(x) = x^{1/3}, since f(8)=2f(8) = 2. Then f′(x)=13x−2/3f'(x) = \dfrac{1}{3}x^{-2/3} and f′(8)=13⋅14=112f'(8) = \dfrac{1}{3} \cdot \dfrac{1}{4} = \dfrac{1}{12}.

The second is g′(π)g'(\pi) for g(x)=sin⁡xg(x) = \sin x, because sin⁡π=0\sin \pi = 0 lets you write the numerator as sin⁡x−sin⁡π\sin x - \sin \pi. So the limit is cos⁡π=−1\cos \pi = -1.

Differentiability

Differentiability implies continuity

If ff is differentiable at aa, then ff is continuous at aa. The converse is false.

So a discontinuity always kills differentiability. A continuous function can still fail to be differentiable at:

  • a corner, where the one-sided derivatives differ, like ∣x∣|x| at 00;
  • a cusp, where the slopes go to +∞+\infty on one side and −∞-\infty on the other, like x2/3x^{2/3} at 00;
  • a vertical tangent, where the slope goes to ±∞\pm\infty from both sides, like x3\sqrt[3]{x} at 00.
Continuous but not differentiable: a corner at x = 2 and a vertical tangent at x = −2.Open in grapher →

For a piecewise function to be differentiable at a seam x=cx = c, you need two conditions: the pieces must meet (continuity), and their derivatives must match at cc (equal one-sided derivatives). Two conditions let you solve for two unknown constants.

The rules

Derivative rules

FunctionDerivative
xnx^n (any real nn)nxn−1nx^{n-1}
exe^x, axa^xexe^x, axln⁡aa^x \ln a
ln⁡x\ln x, log⁡ax\log_a x1x\dfrac{1}{x}, 1xln⁡a\dfrac{1}{x \ln a}
sin⁡x\sin x, cos⁡x\cos xcos⁡x\cos x, −sin⁡x-\sin x
tan⁡x\tan x, cot⁡x\cot xsec⁡2x\sec^2 x, −csc⁡2x-\csc^2 x
sec⁡x\sec x, csc⁡x\csc xsec⁡xtan⁡x\sec x \tan x, −csc⁡xcot⁡x-\csc x \cot x
fgfgf′g+fg′f'g + fg'
fg\dfrac{f}{g}f′g−fg′g2\dfrac{f'g - fg'}{g^2}

A memory aid for the trig table: every "co-" function (cos⁡\cos, cot⁡\cot, csc⁡\csc) has a minus sign in its derivative. For ln⁡∣x∣\ln|x|, the derivative is still 1x\dfrac{1}{x} on its whole domain, which matters when you antidifferentiate later.

Before using the quotient rule, see whether you can simplify. x3−2xx\dfrac{x^3 - 2\sqrt{x}}{x} is just x2−2x−1/2x^2 - 2x^{-1/2}, whose derivative is 2x+x−3/22x + x^{-3/2}. Rewriting takes seconds and avoids errors.

Worked example: Product and quotient together

Find f′(x)f'(x) for f(x)=xexx2+1f(x) = \dfrac{x e^x}{x^2 + 1}, and evaluate f′(0)f'(0).

Solution. The numerator's derivative is (xex)′=ex+xex=(x+1)ex(xe^x)' = e^x + xe^x = (x + 1)e^x by the product rule. Then by the quotient rule,

f′(x)=(x+1)ex(x2+1)−xex⋅2x(x2+1)2=ex(x3−x2+x+1)(x2+1)2.f'(x) = \frac{(x+1)e^x(x^2 + 1) - xe^x \cdot 2x}{(x^2+1)^2} = \frac{e^x\left(x^3 - x^2 + x + 1\right)}{(x^2 + 1)^2}.

At x=0x = 0: f′(0)=1⋅11=1f'(0) = \dfrac{1 \cdot 1}{1} = 1.

Working from tables

Many AP questions give only values of ff, gg and their derivatives at a few points. The rules still apply; you just plug in numbers instead of formulas.

Worked example: Rules with tabled values

Suppose f(1)=4f(1) = 4, f′(1)=−2f'(1) = -2, g(1)=3g(1) = 3 and g′(1)=5g'(1) = 5. Let P(x)=x2f(x)P(x) = x^2 f(x) and Q(x)=f(x)g(x)Q(x) = \dfrac{f(x)}{g(x)}. Find P′(1)P'(1) and Q′(1)Q'(1).

Solution. P′(x)=2xf(x)+x2f′(x)P'(x) = 2x f(x) + x^2 f'(x), so P′(1)=2⋅4+1⋅(−2)=6P'(1) = 2 \cdot 4 + 1 \cdot (-2) = 6.

Q′(1)=f′(1)g(1)−f(1)g′(1)g(1)2=(−2)(3)−(4)(5)9=−269Q'(1) = \dfrac{f'(1)g(1) - f(1)g'(1)}{g(1)^2} = \dfrac{(-2)(3) - (4)(5)}{9} = -\dfrac{26}{9}.

Common mistake

The derivative of a product is not the product of the derivatives, and in the quotient rule the order matters: it is f′g−fg′f'g - fg' on top ("low d-high minus high d-low"). Reversing the terms flips the sign of your answer.

Higher derivatives

f′′f'' measures how f′f' changes: concavity for graphs, acceleration for motion. Keep differentiating with the same rules. A useful pattern to recognize: the derivatives of sin⁡x\sin x cycle with period 44 (sin⁡,cos⁡,−sin⁡,−cos⁡\sin, \cos, -\sin, -\cos), and the nnth derivative of ekxe^{kx} is knekxk^n e^{kx}. Patterns like these become the heart of Taylor series later in BC.

Tip

When a problem asks for a derivative at one point, you rarely need a simplified formula. Differentiate, substitute, and simplify the number.

Practice

Practice 1

Evaluate lim⁡h→0(2+h)5−32h\displaystyle\lim_{h \to 0} \frac{(2 + h)^5 - 32}{h}.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 2

Evaluate lim⁡h→0cos⁡(π3+h)−12h\displaystyle\lim_{h \to 0} \frac{\cos\left(\frac{\pi}{3} + h\right) - \frac{1}{2}}{h}.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 3

Find ddx(x2ln⁡x)\dfrac{d}{dx}\left(x^2 \ln x\right).

Enter an expression, e.g. 3x^2 - 2x + 1

Practice 4

Find ddx(x2+1x−3)\dfrac{d}{dx}\left(\dfrac{x^2 + 1}{x - 3}\right).

Enter an expression, e.g. 3x^2 - 2x + 1

Practice 5

Let f(x)=sec⁡xtan⁡xf(x) = \sec x \tan x. Find f′(π4)f'\left(\dfrac{\pi}{4}\right).

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 6

(AP-style) Values of gg, hh and their derivatives at x=2x = 2 are g(2)=3g(2) = 3, g′(2)=−1g'(2) = -1, h(2)=−2h(2) = -2, h′(2)=5h'(2) = 5. If k(x)=g(x)h(x)k(x) = \dfrac{g(x)}{h(x)}, what is k′(2)k'(2)?

Practice 7

Which function is differentiable at x=0x = 0?

Practice 8

Find the constants aa and bb that make ff differentiable at x=2x = 2, and give your answer as the ordered pair (a,b)(a, b):

f(x)={ax3,x≤2bx2+4,x>2.f(x) = \begin{cases} ax^3, & x \le 2 \\ bx^2 + 4, & x > 2. \end{cases}

Enter a point like (2, -3)