Step-by-Step Differentiation

Subtopic: Derivatives
Topic: Calculus

Systematic Approach to Differentiation

Step 1: Identify the outermost operation — is it a sum, product, quotient, or composition?

Step 2: Apply the corresponding rule (sum rule, product rule, quotient rule, or chain rule)

Step 3: Differentiate the inner parts, applying rules recursively

Step 4: Simplify the result

Worked Example

Differentiate:

f⁡(x)=x2⁢sin⁡3⁢x f of x equals x squared sine 3 x

Step 1: Outermost operation is multiplication → use product rule

f⁡(x)′=(x2)′⋅sin⁡3⁢x+x2⋅(sin⁡3⁢x)′ f of x prime equals x squared prime times sine 3 x plus x squared times open paren sine 3 x close paren prime

Step 2: Differentiate x² → 2x. Differentiate sin(3x) using chain rule → cos(3x)·3

f⁡(x)′=2⁢x⁢sin⁡3⁢x+x2⋅3⁢cos⁡3⁢x=2⁢x⁢sin⁡3⁢x+3⁢x2⁢cos⁡3⁢x f of x prime equals 2 x sine 3 x plus x squared times 3 cosine 3 x equals 2 x sine 3 x plus 3 x squared cosine 3 x

Example 2: Quotient with Chain Rule

Differentiate:

Step 1: Outermost is division → quotient rule

Step 2: Top = e^(2x), derivative = 2e^(2x) (chain rule). Bottom = x² + 1, derivative = 2x

Example 3: Multiple Chain Rules

Differentiate:

h⁡(x)=sin3⁡2⁢x=[sin⁡2⁢x]3 h of x equals sine cubed 2 x equals open bracket sine 2 x close bracket cubed

Work from outside in: outer function is ( )³, inner is sin(2x), innermost is 2x.

h⁡(x)′=3⁢[sin⁡2⁢x]2⋅cos⁡2⁢x⋅2=6⁢sin2⁡(2⁢x)⁢cos⁡2⁢x h of x prime equals 3 times open bracket sine 2 x close bracket squared times cosine 2 x times 2 equals 6 sine squared 2 x cosine 2 x

Common Patterns to Recognize

Pattern: e^(f(x)) → derivative is e^(f(x)) · f'(x)

Pattern: ln(f(x)) → derivative is f'(x)/f(x)

Pattern: [f(x)]^n → derivative is n[f(x)]^(n-1) · f'(x)

Pattern: sin(f(x)) → derivative is cos(f(x)) · f'(x)

Pattern: cos(f(x)) → derivative is -sin(f(x)) · f'(x)

Verification: Always Check Your Answer

📊 More Worked Examples: Building Complexity

Example 4: Implicit function in a product

f⁡(x)=x3⋅ln⁡x f of x equals x cubed times l n x

Step 1: This is a product of x³ and ln(x). Use product rule.

f⁡(x)′=(x3)′⋅ln⁡x+x3⋅(ln⁡x)′ f of x prime equals x cubed prime times l n x plus x cubed times open paren l n x close paren prime

=3⁢x2⁢ln⁡x+x3⋅1x=3⁢x2⁢ln⁡x+x2 equals 3 x squared l n x plus x cubed times 1 over x equals 3 x squared l n x plus x squared

=x2⁢(3⁢ln⁡x+1) equals x squared times open paren 3 l n x plus 1 close paren

Example 5: Nested radicals (triple chain rule)

Label the layers: outer √, middle (1 + √), innermost (1 + x²). Work outside-in.

g⁡(x)′=12⁢1+1+x2⋅ddx⁢(1+1+x2) g of x prime equals 1 over 2 the square root of 1 plus the square root of 1 plus x squared times d over d x times open paren 1 plus the square root of 1 plus x squared close paren

=12⁢1+1+x2⋅12⁢1+x2⋅2⁢x equals 1 over 2 the square root of 1 plus the square root of 1 plus x squared times 1 over 2 the square root of 1 plus x squared times 2 x

Example 6: Logarithmic differentiation (for variable exponents)

h⁡(x)=xsin⁡x h of x equals x raised to the sine x power

Neither the power rule (fixed exponent) nor exponential rule (fixed base) applies. Take ln of both sides:

ln⁡h=sin⁡x⋅ln⁡x l n h equals sine x times l n x

Differentiate both sides (left side uses chain rule):

h′h=cos⁡(x)⁢ln⁡x+sin⁡x⋅1x the fraction with numerator h prime and denominator h equals cosine x l n x plus sine x times 1 over x

h⁡(x)′=xsin⁡x⁢(cos⁡(x)⁢ln⁡x+sin⁡xx) h of x prime equals x raised to the sine x power times open paren cosine x l n x plus sine x over x close paren

Example 7: Inverse trig with chain rule

k⁡(x)=arctan⁡x−1x+1 k of x equals the arc tangent of the fraction with numerator x minus 1 and denominator x plus 1

Chain rule with arctan (derivative 1/(1+u²)) and quotient rule inside:

Surprise! This simplifies beautifully. (In fact, arctan((x-1)/(x+1)) = arctan(x) - π/4.)

🎯 Decision Tree: Which Rule to Use?

Ask these questions in order:

  1. Can I simplify first? (Algebraic manipulation, log properties, trig identities)

  2. What's the OUTERMOST operation?
    • Sum/difference → Sum rule (differentiate term by term)
    • Product → Product rule
    • Quotient → Quotient rule (or rewrite as product with negative exponent)
    • Composition f(g(x)) → Chain rule

  3. Work inward, applying rules recursively until you reach basic functions (x, sin x, eˣ, etc.)

⚠️ Common Process Mistakes

Starting with the innermost function instead of outermost.
Wrong approach for sin(x²): "First I'll differentiate x² to get 2x..."
Right approach: "Outer is sin, inner is x². Derivative of outer at inner × derivative of inner."

Confusing function and variable.
In eˣ², think: "This is e^(something), not (e^x)^2." The something is x², so chain rule gives eˣ² · 2x.

Incomplete chain rule.
Every function inside another function needs its derivative multiplied. sin(x³) has derivative cos(x³)·3x², not cos(x³).

💡 Simplification Tricks

  • Factor before differentiating: x³ - x = x(x² - 1) might be easier as a product

  • Expand if the product is simple: (x+1)² = x² + 2x + 1 avoids product rule

  • Use log properties: ln(x²y³) = 2ln(x) + 3ln(y) splits into simpler pieces

  • Rewrite radicals as powers: √x = x^(1/2), ∛x = x^(1/3) for power rule

  • Simplify after differentiating: Factor out common terms, combine fractions

🔗 Connection: Differentiation Sets Up Integration

Every differentiation problem teaches you an integration problem backwards. When you prove that d/dx[x·sin(x)] = sin(x) + x·cos(x), you've also shown that ∫(sin(x) + x·cos(x))dx = x·sin(x) + C.

Keep a "derivative table" in your head — it doubles as an "integral table" when read backwards!