Back to the Electrical Engineering roadmap

Calculus I · Derivative rules and the chain rule

Choose a differentiation rule from the structure of a formula and check the result against its domain and a numerical slope.

Before you start

Review derivatives as limits, polynomial algebra, and composition.

Rates of change

Choose the rule by the outermost operation

For functions differentiable at the point, derivatives distribute over addition and subtraction and pull out constant factors. A constant has derivative zero. For an integer exponent n, the derivative of xⁿ is nxⁿ⁻¹ for n ≠ 0 wherever the power is defined, with x ≠ 0 required for negative n. Treat a constant power x⁰ as the constant function on its domain. For products and quotients use the formulas below. A quotient also requires a nonzero denominator at the point.

(fg)′ = f′g + fg′
(f/g)′ = (f′g − fg′)/g²

To see why the product rule has two terms, write the product increment as the change in f times the new g plus the old f times the change in g. Divide by the input increment and take the limit. Differentiability makes the new g tend to the old g.

OpenStax Calculus §3.3 · Differentiation Rules

Composition and the chain rule

If g is differentiable at x and f is differentiable at g(x), differentiate the outer function at the inner value, then multiply by the inner derivative. Local changes multiply: near the point, g changes by about g′(x) times the input change, and f changes by about f′(g(x)) times that inner change. The differentiability conditions make the discarded errors small compared with the original input change.

  1. Input x enters the inner function g.
  2. Inner value g(x) enters the outer function f.
  3. (f ∘ g)′(x) = f′(g(x)) · g′(x)
The outer derivative is evaluated at the intermediate value g(x). The last line multiplies the two local rates.

OpenStax Calculus §3.6 · The Chain Rule

Worked examples

  1. For (x²+1)(3x−2), keep each undifferentiated factor in its term: 2x(3x−2)+3(x²+1) = 9x²−4x+3. Expanding first gives 3x³−2x²+3x−2, which confirms the result.
  2. For (x+1)/(x−1), x ≠ 1. The numerator of the derivative is (x−1)−(x+1) = −2, so the result is −2/(x−1)².
  3. For (3x+1)², the square contributes 2(3x+1) and the inner derivative is 3. The slope is 6(3x+1), so at x = 1 it is 24.

Common mistakes

Multiplying derivatives misses both terms of the product rule. Reversing the subtraction in the quotient rule changes the sign. Dropping the inner derivative changes the scale, and algebraic cancellation never restores an excluded point of the original domain.

Practice

  1. Differentiate 5x³−2x+7.
  2. Differentiate x²/(x+1) and state its domain.
  3. Differentiate x(x²+1)³ using two rules.
Worked practice solutions
  1. The derivative of each term is 15x², −2, and 0, so the sum is 15x²−2.
  2. For x ≠ −1, the quotient rule gives [2x(x+1)−x²]/(x+1)² = (x²+2x)/(x+1)².
  3. The product rule gives (x²+1)³ + x·3(x²+1)²·2x. Factoring yields (x²+1)²(7x²+1).

Assessment · Open book · 16 points

Open book: use books, lesson notes, cited readings, calculators, and relevant free software. Explain your own reasoning, assumptions, units, and checks; identify references or software you use. Attempt the questions before opening the answer key. Suggested study time: 40–60 minutes; this is a self-study guide, not a timed restriction.

Differentiate (2x−1)³ (4 points). Then differentiate (x²+1)/(x−2), state its domain, and evaluate its derivative at x=0 (6 points).

Application and reasoning · 6 points

A program differentiates g(x)=(x+1)/(x²+1) as 1/(2x). Derive the correct derivative and domain (2). Produce a decisive check at x=0 (2). Explain the conceptual error and give a second independent way to verify the slope at 0 (2).

Complete answer key and scoring rubric
  1. Two points for 3(2x−1)², one for inner slope 2, one for 6(2x−1)².
  2. One point for x ≠ 2, two for numerator 2x(x−2)−(x²+1), one for denominator (x−2)², and two for substitution at 0 giving −1/4.

Application and reasoning · 6 points

g′=(1−2x−x²)/(x²+1)² on all real x (1 each). It gives g′(0)=1 whereas the proposed expression is undefined there (1 each). Derivatives of a quotient are not quotients of derivatives (1). Directly [g(h)−g(0)]/h=(1−h)/(1+h²)→1 (1).

Scoring: existing questions 10 + application problem 6 = 16 points. Award the stated method and reasoning marks, not only final answers.

Slope lab · Check the chain rule

Compare a forward secant slope with the chain-rule derivative of (3x+1)².

Free tool built into this page. Use it in your browser without an account or download.

Procedure

Set x to 1. Predict the slopes, then run h = 1, 0.1, and 0.01. Compare with the exact slope 24. Expand the numerator to derive the error. Finally try x = 0 at h = 0.1.

Expected results and answer check

At x = 1 the secants are 33, 24.9, and 24.09. Expanding (3x+1+3h)² gives a forward slope of 6(3x+1)+9h, so the error is 9h. At x = 0 and h = 0.1 the secant is 6.9 and the derivative is 6.

The built-in calculator samples a known polynomial. It provides a numerical check at selected points. A proof requires the limit argument, and physical measurements would introduce uncertainty.