Skip to content
🎯⭐ INTERACTIVE LESSON

Basic Differentiation Rules

Learn step-by-step with interactive practice!

Basic Differentiation Rules - Complete Interactive Lesson

Part 1: The Power Rule

📐 Basic Differentiation Rules

Part 1 of 7 — The Power Rule & Foundational Rules

Welcome to differentiation! This topic covers the rules you'll use on every single calculus problem.

PartTopic
1Power Rule & Foundational Rules
2Product Rule
3Quotient Rule
4Trigonometric Derivatives
5Higher-Order Derivatives
6Mixed Differentiation Problems
7Comprehensive Review & AP Applications

The Power Rule

The single most important differentiation rule:

ddx[xn]=nxn−1for any real n\boxed{\frac{d}{dx}[x^n] = n x^{n-1} \quad \text{for any real } n}

Key Fact: The Power Rule works for ALL real exponents — positive, negative, fractional, irrational, even n=0n = 0. When n=0n = 0: ddx[x0]=ddx[1]=0\frac{d}{dx}[x^0] = \frac{d}{dx}[1] = 0.

Step-by-Step Process

  1. Identify the exponent nn
  2. Bring nn down as a coefficient (multiply)
  3. Subtract 1 from the exponent
FunctionExponent nnDerivative
x5x^5555x45x^4
x100x^{100}100100100x99100x^{99}
x1=xx^1 = x111⋅x0=11 \cdot x^0 = 1
x0=1x^0 = 1000⋅x−1=00 \cdot x^{-1} = 0

Constant Rule & Constant Multiple Rule

ddx[c]=0ddx[c⋅f(x)]=c⋅f′(x)\boxed{\frac{d}{dx}[c] = 0 \qquad \frac{d}{dx}[c \cdot f(x)] = c \cdot f'(x)}

Constants vanish when differentiated. Constants attached to functions "pass through" the derivative.

FunctionRule AppliedDerivative
77Constant Rule00
π2\pi^2Constant Rule00
7x37x^3Constant Multiple7⋅3x2=21x27 \cdot 3x^2 = 21x^2
−4x5-4x^5Constant Multiple−4⋅5x4=−20x4-4 \cdot 5x^4 = -20x^4
12x8\frac{1}{2}x^8Constant Multiple12⋅8x7=4x7\frac{1}{2} \cdot 8x^7 = 4x^7

⚠️ Common Mistake: Students sometimes think ddx[π2]=2π\frac{d}{dx}[\pi^2] = 2\pi. Remember: π\pi is a constant, not a variable! The derivative is 00.

Sum & Difference Rule

ddx[f(x)±g(x)]=f′(x)±g′(x)\boxed{\frac{d}{dx}[f(x) \pm g(x)] = f'(x) \pm g'(x)}

Differentiate each term independently — linearity of the derivative.

Worked Example

Find ddx(3x4−5x2+7x−2)\frac{d}{dx}(3x^4 - 5x^2 + 7x - 2)

TermPower RuleResult
3x43x^43(4x3)3(4x^3)12x312x^3
−5x2-5x^2−5(2x)-5(2x)−10x-10x
7x7x7(1)7(1)77
−2-2constant00

ddx(3x4−5x2+7x−2)=12x3−10x+7\frac{d}{dx}(3x^4 - 5x^2 + 7x - 2) = 12x^3 - 10x + 7

Apply the Power Rule 🎯

Negative and Fractional Exponents

Key Principle: Before applying the Power Rule, rewrite all roots, fractions, and radicals using exponential notation.

Rewrite Rules:

1xn=x−nxmn=xm/n\frac{1}{x^n} = x^{-n} \qquad \sqrt[n]{x^m} = x^{m/n}

OriginalRewritePower RuleFinal Form
1x3\frac{1}{x^3}x−3x^{-3}−3x−4-3x^{-4}−3x4-\frac{3}{x^4}
5x2\frac{5}{x^2}5x−25x^{-2}−10x−3-10x^{-3}−10x3-\frac{10}{x^3}
x\sqrt{x}x1/2x^{1/2}12x−1/2\frac{1}{2}x^{-1/2}12x\frac{1}{2\sqrt{x}}
x23\sqrt[3]{x^2}x2/3x^{2/3}23x−1/3\frac{2}{3}x^{-1/3}23x3\frac{2}{3\sqrt[3]{x}}
1x\frac{1}{\sqrt{x}}x−1/2x^{-1/2}−12x−3/2-\frac{1}{2}x^{-3/2}−12xx-\frac{1}{2x\sqrt{x}}

Worked Example

Find ddx(3x2+4x−7x3)\frac{d}{dx}\left(\frac{3}{x^2} + 4\sqrt{x} - \frac{7}{\sqrt[3]{x}}\right)

Step 1 — Rewrite: 3x−2+4x1/2−7x−1/33x^{-2} + 4x^{1/2} - 7x^{-1/3}

Step 2 — Differentiate: −6x−3+2x−1/2+73x−4/3-6x^{-3} + 2x^{-1/2} + \frac{7}{3}x^{-4/3}

Step 3 — Simplify: −6x3+2x+73x43-\frac{6}{x^3} + \frac{2}{\sqrt{x}} + \frac{7}{3\sqrt[3]{x^4}}

AP Tip: On the AP exam, you do NOT need to simplify your answer. Leaving the derivative in negative-exponent form is perfectly acceptable and saves time!

Negative & Fractional Exponents 🎯

Special Derivatives to Memorize

Beyond the Power Rule, these constants arise frequently:

ddx[ex]=exddx[ln⁡x]=1x\boxed{\frac{d}{dx}[e^x] = e^x \qquad \frac{d}{dx}[\ln x] = \frac{1}{x}}

ddx[ax]=axln⁡addx[log⁡ax]=1xln⁡a\boxed{\frac{d}{dx}[a^x] = a^x \ln a \qquad \frac{d}{dx}[\log_a x] = \frac{1}{x \ln a}}

FunctionDerivativeNote
exe^xexe^xOnly function equal to its derivative
ln⁡x\ln x1x\frac{1}{x}Domain: x>0x > 0
2x2^x2xln⁡22^x \ln 2General exponential pattern
10x10^x10xln⁡1010^x \ln 10Common in applications
log⁡10x\log_{10} x1xln⁡10\frac{1}{x \ln 10}Common log derivative

Key Fact: exe^x is the only function that equals its own derivative (up to constant multiples). This is why ee is so special in calculus!

Match each function to its derivative.

Find the derivative and evaluate. ✍️

Key Takeaways — Part 1

RuleFormula
Power Ruleddx[xn]=nxn−1\frac{d}{dx}[x^n] = nx^{n-1}
Constant Ruleddx[c]=0\frac{d}{dx}[c] = 0
Constant Multipleddx[cf(x)]=cf′(x)\frac{d}{dx}[cf(x)] = cf'(x)
Sum/Differenceddx[f±g]=f′±g′\frac{d}{dx}[f \pm g] = f' \pm g'
Exponentialddx[ex]=ex\frac{d}{dx}[e^x] = e^x
Natural Logddx[ln⁡x]=1x\frac{d}{dx}[\ln x] = \frac{1}{x}

Workflow for any polynomial/power derivative:

  1. Rewrite all roots and fractions as power expressions
  2. Apply Power Rule term by term (bring down exponent, subtract 1)
  3. Simplify if desired (not required on AP exam)

Up Next: Part 2 — The Product Rule, for when two functions are multiplied together.

Part 2: Product Rule

📐 The Product Rule

Part 2 of 7 — Product Rule

Why Can't We Just Multiply the Derivatives?

A common (and dangerous) mistake:

ddx[f(x)⋅g(x)]≠f′(x)⋅g′(x)\frac{d}{dx}[f(x) \cdot g(x)] \neq f'(x) \cdot g'(x)

Quick proof it fails: ddx[x⋅x]=ddx[x2]=2x\frac{d}{dx}[x \cdot x] = \frac{d}{dx}[x^2] = 2x, but 1⋅1=1≠2x1 \cdot 1 = 1 \neq 2x. ✗

The Product Rule

ddx[f(x)⋅g(x)]=f′(x)⋅g(x)+f(x)⋅g′(x)\boxed{\frac{d}{dx}[f(x) \cdot g(x)] = f'(x) \cdot g(x) + f(x) \cdot g'(x)}

Memory aids:

  • "Derivative of first times second, plus first times derivative of second"
  • Short form: (fg)′=f′g+fg′(fg)' = f'g + fg'
  • Leibniz form: d(uv)=u dv+v dud(uv) = u\,dv + v\,du

Key Fact: The Product Rule comes from the limit definition. The "extra" term fg′fg' accounts for the fact that both factors are changing simultaneously.

Worked Examples — Product Rule

Example 1: Find ddx[x2sin⁡x]\frac{d}{dx}[x^2 \sin x]

ComponentValue
f=x2f = x^2f′=2xf' = 2x
g=sin⁡xg = \sin xg′=cos⁡xg' = \cos x
f′g+fg′f'g + fg'2xsin⁡x+x2cos⁡x2x \sin x + x^2 \cos x

ddx[x2sin⁡x]=2xsin⁡x+x2cos⁡x\frac{d}{dx}[x^2 \sin x] = 2x\sin x + x^2 \cos x


Example 2: Find ddx[exln⁡x]\frac{d}{dx}[e^x \ln x]

ComponentValue
f=exf = e^xf′=exf' = e^x
g=ln⁡xg = \ln xg′=1xg' = \frac{1}{x}
f′g+fg′f'g + fg'exln⁡x+ex⋅1xe^x \ln x + e^x \cdot \frac{1}{x}

=ex(ln⁡x+1x)= e^x\left(\ln x + \frac{1}{x}\right)

AP Tip: Factor common terms in your final answer when possible. Graders appreciate clean answers, and factoring helps with sign analysis later.


Example 3: Find ddx[xex]\frac{d}{dx}[xe^x] — the most commonly tested product!

ddx[xex]=(1)ex+x(ex)=ex(1+x)\frac{d}{dx}[xe^x] = (1)e^x + x(e^x) = e^x(1 + x)

At x=0x = 0: f′(0)=e0(1+0)=1f'(0) = e^0(1+0) = 1. At x=−1x = -1: f′(−1)=e−1(0)=0f'(-1) = e^{-1}(0) = 0 (this is a critical point!)

Apply the Product Rule 🎯

When to Use Product Rule vs. Expand First

SituationStrategyWhy
Both factors are polynomialsExpand first, then Power RuleFaster and simpler
One factor is exe^x, sin⁡x\sin x, ln⁡x\ln xProduct Rule (must use)Can't combine unlike functions
One factor is a constantPull constant outConstant Multiple Rule suffices
Very complex productProduct RuleExpansion would be unwieldy

Examples:

ExpressionBest Strategy
(2x+1)(x2−3)(2x+1)(x^2-3)Expand: 2x3+x2−6x−32x^3 + x^2 - 6x - 3
x5exx^5 e^xProduct Rule (can't expand)
sin⁡x⋅cos⁡x\sin x \cdot \cos xProduct Rule (or use 12sin⁡2x\frac{1}{2}\sin 2x)
3(x4+2x)3(x^4 + 2x)Constant Multiple: 3(4x3+2)3(4x^3 + 2)
(x2+1)2(x^2+1)^2Expand: x4+2x2+1x^4 + 2x^2 + 1

Product Rule with Tables (AP Exam Favorite!)

If f(2)=3f(2) = 3, f′(2)=−1f'(2) = -1, g(2)=4g(2) = 4, g′(2)=5g'(2) = 5, find ddx[f(x)g(x)]\frac{d}{dx}[f(x)g(x)] at x=2x = 2:

f′(2)g(2)+f(2)g′(2)=(−1)(4)+(3)(5)=−4+15=11f'(2)g(2) + f(2)g'(2) = (-1)(4) + (3)(5) = -4 + 15 = 11

AP Tip: Table-based derivative problems appear on almost EVERY AP exam. Practice reading values from tables and plugging into Product Rule.

Product Rule Challenge 🎯

Extended Product Rule — Three or More Factors

For three functions:

ddx[f⋅g⋅h]=f′gh+fg′h+fgh′\frac{d}{dx}[f \cdot g \cdot h] = f'gh + fg'h + fgh'

Pattern: Each factor takes a turn being differentiated while the others stay.

Example: Find ddx[x2sin⁡x⋅ex]\frac{d}{dx}[x^2 \sin x \cdot e^x]

=2xsin⁡x⋅ex+x2cos⁡x⋅ex+x2sin⁡x⋅ex= 2x \sin x \cdot e^x + x^2 \cos x \cdot e^x + x^2 \sin x \cdot e^x

=ex(2xsin⁡x+x2cos⁡x+x2sin⁡x)= e^x(2x\sin x + x^2 \cos x + x^2 \sin x)

Key Concept: You can also apply the two-factor Product Rule twice: treat (fg)(fg) as one function and apply Product Rule with hh. This gives the same result.

Product Rule with given values.

Product Rule computation. ✍️

Key Takeaways — Part 2

ConceptDetail
Product Rule(fg)′=f′g+fg′(fg)' = f'g + fg'
Common Error(fg)′≠f′g′(fg)' \neq f'g' — NEVER multiply derivatives
StrategyExpand polynomials first when possible
FactoringFactor common terms (exe^x, xx, etc.) for clean answers
Table ProblemsPlug given values directly into the formula
Triple Productf′gh+fg′h+fgh′f'gh + fg'h + fgh' — each factor takes a turn

Up Next: Part 3 — The Quotient Rule, for derivatives of fractions.

Part 3: Quotient Rule

📐 The Quotient Rule

Part 3 of 7 — Quotient Rule

The Quotient Rule

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

Memory aids:

  • "Low d-High minus High d-Low, all over Low squared"
  • Short form: (fg)′=f′g−fg′g2\left(\frac{f}{g}\right)' = \frac{f'g - fg'}{g^2}

⚠️ Critical Warning: The minus sign in the numerator is the #1 source of errors. The order matters — it's f′gf'g MINUS fg′fg', not the other way around. Unlike the Product Rule, the Quotient Rule is NOT symmetric!

Comparison: Product Rule vs. Quotient Rule

RuleFormulaSign
Productf′g+fg′f'g + fg'Plus between terms
Quotientf′g−fg′g2\frac{f'g - fg'}{g^2}Minus between terms

Worked Examples

Example 1: Find ddxx2sin⁡x\frac{d}{dx}\frac{x^2}{\sin x}

ComponentValue
f=x2f = x^2f′=2xf' = 2x
g=sin⁡xg = \sin xg′=cos⁡xg' = \cos x
f′g−fg′g2\frac{f'g - fg'}{g^2}2xsin⁡x−x2cos⁡xsin⁡2x\frac{2x\sin x - x^2\cos x}{\sin^2 x}

ddxx2sin⁡x=2xsin⁡x−x2cos⁡xsin⁡2x\frac{d}{dx}\frac{x^2}{\sin x} = \frac{2x\sin x - x^2\cos x}{\sin^2 x}


Example 2: Find ddxexx+1\frac{d}{dx}\frac{e^x}{x+1}

=ex(x+1)−ex(1)(x+1)2=ex(x+1−1)(x+1)2=xex(x+1)2= \frac{e^x(x+1) - e^x(1)}{(x+1)^2} = \frac{e^x(x+1-1)}{(x+1)^2} = \frac{xe^x}{(x+1)^2}

AP Tip: Always look for common factors in the numerator after applying the Quotient Rule. Simplifying makes it easier to find critical points and sign analysis.


Example 3: Find ddxxx+2\frac{d}{dx}\frac{x}{x+2}

1⋅(x+2)−x⋅1(x+2)2=x+2−x(x+2)2=2(x+2)2\frac{1 \cdot (x+2) - x \cdot 1}{(x+2)^2} = \frac{x + 2 - x}{(x+2)^2} = \frac{2}{(x+2)^2}

Key Fact: When ddxxx+c\frac{d}{dx}\frac{x}{x+c} yields a positive constant over a square, the function is always increasing. This is useful for sign analysis!

Apply the Quotient Rule 🎯

When to Avoid the Quotient Rule

The Quotient Rule is powerful but often overkill. Use smarter alternatives when possible:

SituationBetter StrategyExample
Denominator is a constantConstant Multiple Rulex3+2x5=15(3x2+2)\frac{x^3+2x}{5} = \frac{1}{5}(3x^2+2)
Denominator is a power of xxRewrite as negative exponent3x4=3x−4→−12x−5\frac{3}{x^4} = 3x^{-4} \to -12x^{-5}
Can split the fractionDivide term by termx3+xx2=x+x−1\frac{x^3+x}{x^2} = x + x^{-1}
Numerator is a constantRewrite as negative exponent5x+1\frac{5}{x+1} — must use Q.R. here

Splitting Fractions — A Powerful Technique

x3+6x2−2x2=x+6−2x−2\frac{x^3 + 6x^2 - 2}{x^2} = x + 6 - 2x^{-2}

Now differentiate term by term: 1+0+4x−3=1+4x31 + 0 + 4x^{-3} = 1 + \frac{4}{x^3}

Compare to using Quotient Rule on the original — much more work for the same answer!

Deriving Trig Derivatives via Quotient Rule

ddx[tan⁡x]=ddxsin⁡xcos⁡x=cos⁡x⋅cos⁡x−sin⁡x(−sin⁡x)cos⁡2x=cos⁡2x+sin⁡2xcos⁡2x=1cos⁡2x=sec⁡2x\frac{d}{dx}[\tan x] = \frac{d}{dx}\frac{\sin x}{\cos x} = \frac{\cos x \cdot \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

Key Concept: The Quotient Rule is how we derive the derivatives of tan⁡x\tan x, cot⁡x\cot x, sec⁡x\sec x, and csc⁡x\csc x from sin⁡x\sin x and cos⁡x\cos x.

Quotient Rule Mastery 🎯

Quotient Rule with Tables (AP Exam Staple)

Given:

xxf(x)f(x)f′(x)f'(x)g(x)g(x)g′(x)g'(x)
1133−2-24455
22−1-16622−3-3

Find ddx[f(x)g(x)]\frac{d}{dx}\left[\frac{f(x)}{g(x)}\right] at x=1x = 1:

f′(1)g(1)−f(1)g′(1)[g(1)]2=(−2)(4)−(3)(5)42=−8−1516=−2316\frac{f'(1)g(1) - f(1)g'(1)}{[g(1)]^2} = \frac{(-2)(4) - (3)(5)}{4^2} = \frac{-8 - 15}{16} = \frac{-23}{16}

Find ddx[g(x)f(x)]\frac{d}{dx}\left[\frac{g(x)}{f(x)}\right] at x=2x = 2:

g′(2)f(2)−g(2)f′(2)[f(2)]2=(−3)(−1)−(2)(6)(−1)2=3−121=−9\frac{g'(2)f(2) - g(2)f'(2)}{[f(2)]^2} = \frac{(-3)(-1) - (2)(6)}{(-1)^2} = \frac{3 - 12}{1} = -9

AP Tip: Watch for problems that ask for ddx[gf]\frac{d}{dx}\left[\frac{g}{f}\right] instead of ddx[fg]\frac{d}{dx}\left[\frac{f}{g}\right] — swapping the roles of ff and gg is a common trap!

Choose the best differentiation strategy.

Quotient Rule computation. ✍️

Key Takeaways — Part 3

ConceptDetail
Quotient Rule(fg)′=f′g−fg′g2\left(\frac{f}{g}\right)' = \frac{f'g - fg'}{g^2}
Order mattersf′g−fg′f'g - fg' (NOT fg′−f′gfg' - f'g)
Avoid when possibleRewrite as negative exponents or split fractions
Constant denominatorJust use Constant Multiple Rule
Table problemsPlug values directly into formula
Trig connectionDerives tan⁡,cot⁡,sec⁡,csc⁡\tan, \cot, \sec, \csc derivatives

Decision Tree: Which Rule?

Expression TypeRule to Use
f⋅gf \cdot gProduct Rule
fg\frac{f}{g} (both non-trivial)Quotient Rule
fconstant\frac{f}{\text{constant}}Constant Multiple
constantxn\frac{\text{constant}}{x^n}Power Rule rewrite
polynomialxn\frac{\text{polynomial}}{x^n}Split, then Power Rule

Up Next: Part 4 — Trigonometric Derivatives in depth.

Part 4: Trig Derivatives

📐 Trigonometric Derivatives

Part 4 of 7 — Trig Derivatives

The Six Trigonometric Derivatives

These must be memorized perfectly for the AP exam:

ddx[sin⁡x]=cos⁡xddx[cos⁡x]=−sin⁡x\boxed{\frac{d}{dx}[\sin x] = \cos x \qquad \frac{d}{dx}[\cos x] = -\sin x}

ddx[tan⁡x]=sec⁡2xddx[cot⁡x]=−csc⁡2x\boxed{\frac{d}{dx}[\tan x] = \sec^2 x \qquad \frac{d}{dx}[\cot x] = -\csc^2 x}

ddx[sec⁡x]=sec⁡xtan⁡xddx[csc⁡x]=−csc⁡xcot⁡x\boxed{\frac{d}{dx}[\sec x] = \sec x \tan x \qquad \frac{d}{dx}[\csc x] = -\csc x \cot x}

Pattern Recognition — The Negative Sign Rule

Key Fact: The co-functions (cos, cot, csc) ALL have negative derivatives. The regular functions (sin, tan, sec) have positive derivatives.

Regular FunctionDerivative (Positive)Co-FunctionDerivative (Negative)
sin⁡x\sin xcos⁡x\cos xcos⁡x\cos x−sin⁡x-\sin x
tan⁡x\tan xsec⁡2x\sec^2 xcot⁡x\cot x−csc⁡2x-\csc^2 x
sec⁡x\sec xsec⁡xtan⁡x\sec x \tan xcsc⁡x\csc x−csc⁡xcot⁡x-\csc x \cot x

Another Pattern — Squared vs. Product

FunctionDerivative Type
tan⁡x\tan x → sec⁡2x\sec^2 xSquared function
cot⁡x\cot x → −csc⁡2x-\csc^2 xSquared function
sec⁡x\sec x → sec⁡xtan⁡x\sec x \tan xProduct of two trig functions
csc⁡x\csc x → −csc⁡xcot⁡x-\csc x \cot xProduct of two trig functions

Worked Examples — Basic Trig Derivatives

ProblemSolutionRule Used
ddx(3sin⁡x+2cos⁡x)\frac{d}{dx}(3\sin x + 2\cos x)3cos⁡x−2sin⁡x3\cos x - 2\sin xConstant Multiple + Sum
ddx(x2+tan⁡x)\frac{d}{dx}(x^2 + \tan x)2x+sec⁡2x2x + \sec^2 xPower + Trig
ddx(5sec⁡x)\frac{d}{dx}(5\sec x)5sec⁡xtan⁡x5\sec x \tan xConstant Multiple
ddx(−csc⁡x+π)\frac{d}{dx}(-\csc x + \pi)csc⁡xcot⁡x\csc x \cot xTrig + Constant

Key Angle Values Reference

Anglesin⁡\sincos⁡\costan⁡\tansec⁡\sec
0000110011
π6\frac{\pi}{6}12\frac{1}{2}32\frac{\sqrt{3}}{2}33\frac{\sqrt{3}}{3}233\frac{2\sqrt{3}}{3}
π4\frac{\pi}{4}22\frac{\sqrt{2}}{2}22\frac{\sqrt{2}}{2}112\sqrt{2}
π3\frac{\pi}{3}32\frac{\sqrt{3}}{2}12\frac{1}{2}3\sqrt{3}22
π2\frac{\pi}{2}1100undefundef

AP Tip: You need instant recall of trig values at these angles. The derivative questions almost always evaluate at one of these special angles.

Trig Derivatives 🎯

Combining Trig Derivatives with Product & Quotient Rules

Example 1: ddx(exsin⁡x)\frac{d}{dx}(e^x \sin x)

Product Rule: exsin⁡x+excos⁡x=ex(sin⁡x+cos⁡x)e^x \sin x + e^x \cos x = e^x(\sin x + \cos x)

At x=0x = 0: e0(0+1)=1e^0(0 + 1) = 1


Example 2: ddx(tan⁡xx)\frac{d}{dx}\left(\frac{\tan x}{x}\right)

Quotient Rule: sec⁡2x⋅x−tan⁡x⋅1x2=xsec⁡2x−tan⁡xx2\frac{\sec^2 x \cdot x - \tan x \cdot 1}{x^2} = \frac{x\sec^2 x - \tan x}{x^2}


Example 3: ddx(x2sec⁡x)\frac{d}{dx}(x^2 \sec x)

Product Rule: 2xsec⁡x+x2sec⁡xtan⁡x=xsec⁡x(2+xtan⁡x)2x \sec x + x^2 \sec x \tan x = x\sec x(2 + x\tan x)

Key Concept: When combining trig derivatives with Product/Quotient Rule, always set up the table (f,f′,g,g′f, f', g, g') to stay organized and avoid sign errors.

Mixed Trig Problems 🎯

Where Do Trig Derivatives Come From?

The derivatives of sin⁡x\sin x and cos⁡x\cos x come from the limit definition:

ddx[sin⁡x]=lim⁡h→0sin⁡(x+h)−sin⁡xh\frac{d}{dx}[\sin x] = \lim_{h \to 0} \frac{\sin(x+h) - \sin x}{h}

Using the angle addition formula sin⁡(x+h)=sin⁡xcos⁡h+cos⁡xsin⁡h\sin(x+h) = \sin x \cos h + \cos x \sin h:

=lim⁡h→0sin⁡x(cos⁡h−1)+cos⁡xsin⁡hh=sin⁡x⋅0+cos⁡x⋅1=cos⁡x= \lim_{h \to 0} \frac{\sin x(\cos h - 1) + \cos x \sin h}{h} = \sin x \cdot 0 + \cos x \cdot 1 = \cos x

This relies on the special limits: lim⁡h→0sin⁡hh=1\lim_{h \to 0}\frac{\sin h}{h} = 1 and lim⁡h→0cos⁡h−1h=0\lim_{h \to 0}\frac{\cos h - 1}{h} = 0.

The other four come from sin⁡x\sin x and cos⁡x\cos x:

DerivativeDerived Using
ddx[tan⁡x]=sec⁡2x\frac{d}{dx}[\tan x] = \sec^2 xQuotient Rule on sin⁡xcos⁡x\frac{\sin x}{\cos x}
ddx[cot⁡x]=−csc⁡2x\frac{d}{dx}[\cot x] = -\csc^2 xQuotient Rule on cos⁡xsin⁡x\frac{\cos x}{\sin x}
ddx[sec⁡x]=sec⁡xtan⁡x\frac{d}{dx}[\sec x] = \sec x \tan xQuotient Rule on 1cos⁡x\frac{1}{\cos x}
ddx[csc⁡x]=−csc⁡xcot⁡x\frac{d}{dx}[\csc x] = -\csc x \cot xQuotient Rule on 1sin⁡x\frac{1}{\sin x}

Complete the derivative.

Trig derivative evaluation. ✍️

Key Takeaways — Part 4

Must MemorizeDerivative
sin⁡x\sin xcos⁡x\cos x
cos⁡x\cos x−sin⁡x-\sin x
tan⁡x\tan xsec⁡2x\sec^2 x
cot⁡x\cot x−csc⁡2x-\csc^2 x
sec⁡x\sec xsec⁡xtan⁡x\sec x \tan x
csc⁡x\csc x−csc⁡xcot⁡x-\csc x \cot x

Memory checklist:

  1. Co-functions → negative sign (cos, cot, csc)
  2. tan and cot → squared results (sec⁡2\sec^2, csc⁡2\csc^2)
  3. sec and csc → product results (sec·tan, csc·cot)
  4. Know exact trig values at 0,π6,π4,π3,π20, \frac{\pi}{6}, \frac{\pi}{4}, \frac{\pi}{3}, \frac{\pi}{2}

Up Next: Part 5 — Higher-Order Derivatives.

Part 5: Higher-Order Derivatives

📐 Higher-Order Derivatives

Part 5 of 7 — Higher-Order Derivatives

What Are Higher-Order Derivatives?

The second derivative is the derivative of the derivative:

f′′(x)=d2ydx2=ddx[dydx]\boxed{f''(x) = \frac{d^2 y}{dx^2} = \frac{d}{dx}\left[\frac{dy}{dx}\right]}

Notation Comparison

OrderPrime NotationLeibniz NotationOther
1stf′(x)f'(x)dydx\frac{dy}{dx}y˙\dot{y} (physics)
2ndf′′(x)f''(x)d2ydx2\frac{d^2y}{dx^2}y¨\ddot{y} (physics)
3rdf′′′(x)f'''(x)d3ydx3\frac{d^3y}{dx^3}—
nnthf(n)(x)f^{(n)}(x)dnydxn\frac{d^ny}{dx^n}—

Key Fact: For n≥4n \geq 4, we write f(n)(x)f^{(n)}(x) with parentheses to avoid confusion with powers: f(4)(x)f^{(4)}(x) is the 4th derivative, not [f(x)]4[f(x)]^4.

Physical Interpretation — Motion

DerivativeIn Motion ContextUnits (if position in meters, time in seconds)
s(t)s(t)Positionmeters
s′(t)=v(t)s'(t) = v(t)Velocitym/s
s′′(t)=a(t)s''(t) = a(t)Accelerationm/s2m/s^{2}
s′′′(t)=j(t)s'''(t) = j(t)Jerkm/s3m/s^{3}

Worked Examples

Example 1: Find all derivatives of f(x)=x5−3x3+2xf(x) = x^5 - 3x^3 + 2x

DerivativeComputationResult
f′(x)f'(x)5x4−9x2+25x^4 - 9x^2 + 2Polynomial degree 4
f′′(x)f''(x)20x3−18x20x^3 - 18xPolynomial degree 3
f′′′(x)f'''(x)60x2−1860x^2 - 18Polynomial degree 2
f(4)(x)f^{(4)}(x)120x120xPolynomial degree 1
f(5)(x)f^{(5)}(x)120120Constant!
f(6)(x)f^{(6)}(x)00Zero forever

Key Principle: Any polynomial of degree nn has f(n+1)(x)=0f^{(n+1)}(x) = 0. The nnth derivative of xnx^n is n!n! (n factorial).


Example 2: Higher derivatives of e2xe^{2x}

dndxn[e2x]=2ne2x\frac{d^n}{dx^n}[e^{2x}] = 2^n e^{2x}

Each derivative multiplies by 2 (Chain Rule): y′=2e2xy' = 2e^{2x}, y′′=4e2xy'' = 4e^{2x}, y′′′=8e2xy''' = 8e^{2x}, ...


Example 3: The Trig Cycle

nndndxn[sin⁡x]\frac{d^n}{dx^n}[\sin x]dndxn[cos⁡x]\frac{d^n}{dx^n}[\cos x]
0sin⁡x\sin xcos⁡x\cos x
1cos⁡x\cos x−sin⁡x-\sin x
2−sin⁡x-\sin x−cos⁡x-\cos x
3−cos⁡x-\cos xsin⁡x\sin x
4sin⁡x\sin x ← repeats!cos⁡x\cos x ← repeats!

dndxn[sin⁡x]=sin⁡(x+nπ2)dndxn[cos⁡x]=cos⁡(x+nπ2)\boxed{\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)}

Find Higher-Order Derivatives 🎯

Concavity and the Second Derivative

The second derivative provides crucial information about the shape of a graph:

ConditionMeaningGraph Shape
f′′(x)>0f''(x) > 0Concave upHolds water (∪)
f′′(x)<0f''(x) < 0Concave downSpills water (∩)
f′′(x)=0f''(x) = 0Possible inflection pointConcavity may change

⚠️ Critical Warning: f′′(c)=0f''(c) = 0 does NOT guarantee an inflection point! You must verify that f′′f'' actually changes sign at cc. Example: f(x)=x4f(x) = x^4 has f′′(0)=0f''(0) = 0 but NO inflection point (concave up on both sides).

The Second Derivative Test

At a critical point where f′(c)=0f'(c) = 0:

f′′(c)f''(c)Conclusion
f′′(c)>0f''(c) > 0Local minimum
f′′(c)<0f''(c) < 0Local maximum
f′′(c)=0f''(c) = 0Inconclusive — use First Derivative Test

f′(c)=0 and f′′(c)>0  ⟹  local minimum at x=c\boxed{f'(c) = 0 \text{ and } f''(c) > 0 \implies \text{local minimum at } x = c}

Worked Example

Find where f(x)=x3−3xf(x) = x^3 - 3x is concave up.

f′′(x)=6xf''(x) = 6x.

Concave up when f′′(x)>0f''(x) > 0: 6x>0  ⟹  x>06x > 0 \implies x > 0.

So ff is concave up on (0,∞)(0, \infty) and concave down on (−∞,0)(-\infty, 0) with an inflection point at x=0x = 0.

Second Derivative Applications 🎯

Connecting ff, f′f', and f′′f'' — The Big Picture

If you know...Then you can determine...
f′(c)=0f'(c) = 0Critical point (possible max/min)
f′(c)>0f'(c) > 0ff is increasing at cc
f′(c)<0f'(c) < 0ff is decreasing at cc
f′′(c)>0f''(c) > 0ff is concave up; f′f' is increasing
f′′(c)<0f''(c) < 0ff is concave down; f′f' is decreasing
f′(c)=0f'(c) = 0 and f′′(c)>0f''(c) > 0Local minimum
f′(c)=0f'(c) = 0 and f′′(c)<0f''(c) < 0Local maximum

AP Tip: The AP exam frequently gives you a graph of f′(x)f'(x) and asks about f(x)f(x) or f′′(x)f''(x). Remember: the derivative of f′f' IS f′′f'', so where f′f' is increasing, f′′>0f'' > 0 (concave up for ff).

Analyze concavity and extrema.

Higher-order derivative computation. ✍️

Key Takeaways — Part 5

ConceptFormula / Fact
Second Derivativef′′(x)=ddx[f′(x)]f''(x) = \frac{d}{dx}[f'(x)]
MotionPosition → Velocity → Acceleration
Concave upf′′(x)>0f''(x) > 0
Concave downf′′(x)<0f''(x) < 0
Inflection pointf′′f'' changes sign
2nd Deriv Testf′(c)=0f'(c)=0: f′′(c)>0f''(c)>0 → min; f′′(c)<0f''(c)<0 → max
PolynomialsDegree nn → (n+1)(n+1)th derivative is 0
Trig cycleRepeats every 4 derivatives
Exponentialdndxn[ekx]=knekx\frac{d^n}{dx^n}[e^{kx}] = k^n e^{kx}

Up Next: Part 6 — Mixed Differentiation Problems workshop.

Part 6: Mixed Differentiation Problems

📐 Problem-Solving Workshop

Part 6 of 7 — Mixed Differentiation Problems

The Decision Framework

Before differentiating, ask yourself: What structure does this expression have?

StructureRule to UseExample
Single term cxncx^nPower Rule7x47x^4
Sum/differenceTerm-by-termx3+sin⁡xx^3 + \sin x
Product f⋅gf \cdot gProduct Rulex2exx^2 e^x
Quotient f/gf/gQuotient Rule (or rewrite)exx+1\frac{e^x}{x+1}
Composition f(g(x))f(g(x))Chain Rulesin⁡(x2)\sin(x^2)
Constant ÷ powerRewrite as negative exponent5x3\frac{5}{x^3}
Polynomial ÷ monomialSplit fractionx3+xx2\frac{x^3+x}{x^2}

Key Strategy: Always simplify first when possible. Rewriting can eliminate the need for Product or Quotient Rule entirely.

Simplification Strategies

BeforeAfterRule Avoided
x3+1x\frac{x^3 + 1}{x}x2+x−1x^2 + x^{-1}Quotient Rule
x2(x+3)x^2(x+3)x3+3x2x^3 + 3x^2Product Rule
5x2\frac{5}{x^2}5x−25x^{-2}Quotient Rule
(x+1)2(x+1)^2x2+2x+1x^2 + 2x + 1Chain Rule

Identify and Apply 🎯

Worked Examples — Multi-Rule Problems

Example 1: Find ddx[x2sin⁡xex]\frac{d}{dx}\left[\frac{x^2 \sin x}{e^x}\right]

Strategy: This is a quotient where the numerator is itself a product. Use Quotient Rule with f=x2sin⁡xf = x^2 \sin x and g=exg = e^x.

First, find f′f' using Product Rule: f′=2xsin⁡x+x2cos⁡xf' = 2x\sin x + x^2 \cos x

Then Quotient Rule: (2xsin⁡x+x2cos⁡x)ex−x2sin⁡x⋅exe2x=2xsin⁡x+x2cos⁡x−x2sin⁡xex\frac{(2x\sin x + x^2\cos x)e^x - x^2\sin x \cdot e^x}{e^{2x}} = \frac{2x\sin x + x^2\cos x - x^2\sin x}{e^x}


Example 2: Find the tangent line to y=x2+1x−1y = \frac{x^2 + 1}{x - 1} at x=2x = 2

Step 1: y(2)=51=5y(2) = \frac{5}{1} = 5. Point: (2,5)(2, 5).

Step 2: y′=2x(x−1)−(x2+1)(x−1)2=x2−2x−1(x−1)2y' = \frac{2x(x-1) - (x^2+1)}{(x-1)^2} = \frac{x^2-2x-1}{(x-1)^2}

Step 3: y′(2)=4−4−11=−1y'(2) = \frac{4-4-1}{1} = -1. Slope: m=−1m = -1.

Step 4: Tangent line: y−5=−1(x−2)y - 5 = -1(x - 2) → y=−x+7y = -x + 7

AP Tip: Tangent line questions combine differentiation with algebra. Always clearly state the point and slope before writing the equation.

Particle Motion — A Complete Analysis

Problem: A particle moves along the xx-axis with position s(t)=t3−6t2+9t+2s(t) = t^3 - 6t^2 + 9t + 2 for t≥0t \geq 0.

QuestionComputationAnswer
Velocityv(t)=3t2−12t+9=3(t−1)(t−3)v(t) = 3t^2 - 12t + 9 = 3(t-1)(t-3)—
At rest when?v(t)=0v(t) = 0t=1t = 1 and t=3t = 3
Moving right when?v(t)>0v(t) > 00<t<10 < t < 1 or t>3t > 3
Moving left when?v(t)<0v(t) < 01<t<31 < t < 3
Accelerationa(t)=6t−12a(t) = 6t - 12—
Speeding up when?vv and aa same sign1<t<21 < t < 2 or t>3t > 3
Slowing down when?vv and aa opposite sign0<t<10 < t < 1 or 2<t<32 < t < 3

Key Concept: "Speeding up" means ∣v(t)∣|v(t)| is increasing, which happens when velocity and acceleration have the same sign. This is different from "accelerating" (which just means a>0a > 0).

Speed vs. Velocity

Speed=∣v(t)∣Velocity=v(t) (signed)\boxed{\text{Speed} = |v(t)| \qquad \text{Velocity} = v(t) \text{ (signed)}}

Speed is always non-negative. The particle speeds up when v(t)⋅a(t)>0v(t) \cdot a(t) > 0.

Motion & Mixed Problems 🎯

Choose the best strategy for each derivative.

Mixed problem. ✍️

Key Takeaways — Part 6

StrategyWhen to Use
Simplify firstPolynomial ÷ monomial, expandable products
Product RuleProducts with unlike functions (xexxe^x, xsin⁡xx\sin x)
Quotient RuleTrue fractions with unlike functions
RewriteConstants over powers → negative exponents
Multiple rulesNested structures (quotient of products, etc.)

Particle Motion Checklist:

  • At rest: v(t)=0v(t) = 0
  • Direction: sign of v(t)v(t)
  • Speeding up: v(t)⋅a(t)>0v(t) \cdot a(t) > 0
  • Slowing down: v(t)⋅a(t)<0v(t) \cdot a(t) < 0

Up Next: Part 7 — Comprehensive Review & AP Exam preparation.

Part 7: Comprehensive Review

📐 Review & Applications

Part 7 of 7 — Comprehensive Review & AP Exam Preparation

Complete Derivative Reference Table

RuleFormula
Powerddx[xn]=nxn−1\frac{d}{dx}[x^n] = nx^{n-1}
Constantddx[c]=0\frac{d}{dx}[c] = 0
Constant Multipleddx[cf]=cf′\frac{d}{dx}[cf] = cf'
Sum/Differenceddx[f±g]=f′±g′\frac{d}{dx}[f \pm g] = f' \pm g'
Product(fg)′=f′g+fg′(fg)' = f'g + fg'
Quotient(fg)′=f′g−fg′g2\left(\frac{f}{g}\right)' = \frac{f'g - fg'}{g^2}

Special Function Derivatives

FunctionDerivativeDomain Note
exe^xexe^xAll reals
ln⁡x\ln x1x\frac{1}{x}x>0x > 0
axa^xaxln⁡aa^x \ln aa>0,a≠1a > 0, a \neq 1
log⁡ax\log_a x1xln⁡a\frac{1}{x \ln a}x>0x > 0

Trig Derivatives (Must Memorize!)

Positive DerivativesNegative Derivatives
ddx[sin⁡x]=cos⁡x\frac{d}{dx}[\sin x] = \cos xddx[cos⁡x]=−sin⁡x\frac{d}{dx}[\cos x] = -\sin x
ddx[tan⁡x]=sec⁡2x\frac{d}{dx}[\tan x] = \sec^2 xddx[cot⁡x]=−csc⁡2x\frac{d}{dx}[\cot x] = -\csc^2 x
ddx[sec⁡x]=sec⁡xtan⁡x\frac{d}{dx}[\sec x] = \sec x \tan xddx[csc⁡x]=−csc⁡xcot⁡x\frac{d}{dx}[\csc x] = -\csc x \cot x

AP Exam Question Types for Basic Differentiation

TypeWhat They AskKey Skill
Direct computation"Find f′(x)f'(x)"Apply correct rule
Evaluate at a point"Find f′(2)f'(2)"Differentiate then substitute
From a tableGiven f(a),f′(a),g(a),g′(a)f(a), f'(a), g(a), g'(a)Plug into Product/Quotient Rule
Tangent line"Equation of tangent at x=cx = c"Need point + slope
Normal line"Equation of normal at x=cx = c"Slope = −1f′(c)-\frac{1}{f'(c)}
Horizontal tangent"Where is tangent horizontal?"Solve f′(x)=0f'(x) = 0
Particle motion"When at rest? Direction?"Analyze v(t)=s′(t)v(t) = s'(t)

Table-Based Problems — Complete Strategy

Given this table:

xxf(x)f(x)f′(x)f'(x)g(x)g(x)g′(x)g'(x)
1144−2-23355

Find each of the following at x=1x = 1:

ExpressionFormulaComputationAnswer
(f+g)′(1)(f+g)'(1)f′(1)+g′(1)f'(1)+g'(1)−2+5-2+533
(fg)′(1)(fg)'(1)f′g+fg′f'g+fg'(−2)(3)+(4)(5)(-2)(3)+(4)(5)1414
(f/g)′(1)(f/g)'(1)f′g−fg′g2\frac{f'g-fg'}{g^2}(−2)(3)−(4)(5)9\frac{(-2)(3)-(4)(5)}{9}−269-\frac{26}{9}
(3f)′(1)(3f)'(1)3f′(1)3f'(1)3(−2)3(-2)−6-6

Comprehensive Assessment 🎯

Tangent & Normal Lines — AP Exam Template

Tangent Line at x=cx = c:

y−f(c)=f′(c)(x−c)\boxed{y - f(c) = f'(c)(x - c)}

Normal Line at x=cx = c (perpendicular to tangent):

y−f(c)=−1f′(c)(x−c)\boxed{y - f(c) = -\frac{1}{f'(c)}(x - c)}

Complete Worked Example

Find the tangent and normal lines to y=x3−4xy = x^3 - 4x at x=2x = 2.

StepTangentNormal
Point: y(2)=8−8=0y(2) = 8-8 = 0(2,0)(2, 0)(2,0)(2, 0)
y′=3x2−4y' = 3x^2 - 4y′(2)=8y'(2) = 8slope =−18= -\frac{1}{8}
Equationy=8(x−2)=8x−16y = 8(x-2) = 8x-16y=−18(x−2)y = -\frac{1}{8}(x-2)

Horizontal & Vertical Tangent Lines

TypeConditionMeaning
Horizontal tangentf′(c)=0f'(c) = 0Critical point candidate
Vertical tangentf′(c)f'(c) is undefined, ff continuousCusp or vertical tangent point

AP Tip: When asked "for what values of xx is the tangent horizontal?", you are being asked to solve f′(x)=0f'(x) = 0. Always check that ff is defined at those points!

AP-Style Final Problems 🎯

Common Errors to Avoid on the AP Exam

ErrorWrongCorrect
Multiplying derivatives(fg)′=f′g′(fg)' = f'g'(fg)′=f′g+fg′(fg)' = f'g + fg'
Forgetting negative in QRf′g+fg′g2\frac{f'g + fg'}{g^2}f′g−fg′g2\frac{f'g - fg'}{g^2}
Co-function signddx[cos⁡x]=sin⁡x\frac{d}{dx}[\cos x] = \sin xddx[cos⁡x]=−sin⁡x\frac{d}{dx}[\cos x] = -\sin x
Constant derivativeddx[π2]=2π\frac{d}{dx}[\pi^2] = 2\piddx[π2]=0\frac{d}{dx}[\pi^2] = 0
Forgetting to rewriteddx[x]=12x−1\frac{d}{dx}[\sqrt{x}] = \frac{1}{2}\sqrt{x-1}x1/2→12x−1/2x^{1/2} \to \frac{1}{2}x^{-1/2}
Wrong evaluationComputing f′(x)f'(x) but forgetting to plug in x=cx = cAlways substitute AFTER differentiating

Quick fire — identify the derivative.

Final challenge problem. ✍️

Basic Differentiation Rules — Complete! ✅

You have mastered:

  • ✅ Power Rule (including negative/fractional exponents)
  • ✅ Constant, Constant Multiple, and Sum/Difference Rules
  • ✅ Product Rule: (fg)′=f′g+fg′(fg)' = f'g + fg'
  • ✅ Quotient Rule: (fg)′=f′g−fg′g2\left(\frac{f}{g}\right)' = \frac{f'g - fg'}{g^2}
  • ✅ All six trigonometric derivatives
  • ✅ Higher-order derivatives and concavity
  • ✅ Particle motion analysis
  • ✅ Tangent and normal lines
  • ✅ Table-based derivative problems

What's Next?

Next TopicWhat You'll Learn
Chain RuleDerivatives of compositions: f(g(x))f(g(x))
Implicit DifferentiationWhen yy is not explicitly solved
Related RatesHow quantities change together

The Chain Rule is arguably the most important rule in calculus — it extends everything you've learned to composite functions!