610 words
3 min read
Python Week 1: the first filter for runtime behavior
Visual companion
Python
Type and operator map

Python Week 1: the first filter for runtime behavior

View
Revision summary

What this note is really saying

Short form

# Mathematics I · Week 8 — Derivatives and critical points Deep study for Quiz 2 week 8. Derivative measures instantaneous rate of change; critical points locate where slope is zero or undefined.

Mathematics I · Week 8 — Derivatives and critical points

Deep study for Quiz 2 week 8. Derivative measures instantaneous rate of change; critical points locate where slope is zero or undefined.

Week map

Derivative as slope → differentiation rules → tangent line → critical points → increasing/decreasing → local extrema sketch.

Derivative notation

  • f′(x)f'(x) or dydx\frac{dy}{dx} → derivative of ff at xx → instantaneous rate of change → slope of tangent line at xx.
  • (xn)′=nxn−1(x^n)' = nx^{n-1} → power rule → bring exponent down, reduce power by one.
  • (cf)′=c⋅f′(cf)' = c \cdot f' → constant multiple.
  • (f+g)′=f′+g′(f + g)' = f' + g' → sum rule.
Mini-example: if f(x)=x3−2xf(x) = x^3 - 2x, then f′(x)=3x2−2f'(x) = 3x^2 - 2. At x=1x = 1: f′(1)=1f'(1) = 1 — tangent slope is 1.

Chain and product (when needed)

  • Chain: (f(g(x)))′=f′(g(x))⋅g′(x)(f(g(x)))' = f'(g(x)) \cdot g'(x) — derivative of outside × derivative of inside.
  • Product: (fg)′=f′g+fg′(fg)' = f'g + fg'.
Mini-example: (3x2+1)4(3x^2 + 1)^4 — outer power 4, inner 3x2+13x^2+1. Derivative =4(3x2+1)3⋅6x= 4(3x^2+1)^3 \cdot 6x.

Tangent line

  • Line through (a,f(a))(a, f(a)) with slope m=f′(a)m = f'(a): y−f(a)=f′(a)(x−a)y - f(a) = f'(a)(x - a).
  • Tangent approximates curve locally near x=ax = a.
Mini-example: f(x)=x2f(x) = x^2, a=3a = 3. f(3)=9f(3) = 9, f′(x)=2xf'(x) = 2x, f′(3)=6f'(3) = 6. Tangent: y−9=6(x−3)y - 9 = 6(x - 3) → y=6x−9y = 6x - 9.

Critical points

  • Critical point → where f′(x)=0f'(x) = 0 or f′(x)f'(x) undefined.
  • First derivative test: sign of f′f' changes from ++ to −- at critical point → local max; −- to ++ → local min.
  • Increasing: f′>0f' > 0; decreasing: f′<0f' < 0.
Mini-example: f(x)=x2−4x+3f(x) = x^2 - 4x + 3. f′(x)=2x−4=0f'(x) = 2x - 4 = 0 → x=2x = 2. f′f' negative before 2, positive after → local min at x=2x = 2.

Pattern families

Easy — Power and sum rule

Differentiate term by term. Constants vanish. Rewrite roots and reciprocals as powers first: x=x1/2\sqrt{x} = x^{1/2}, 1/x=x−11/x = x^{-1}.

Medium — Tangent line and evaluate derivative

Find f′(a)f'(a), write tangent equation. Interpret f′(a)f'(a) as rate (velocity, marginal cost) in word problems.

Hard — Critical points and extrema

Solve f′(x)=0f'(x) = 0. Build sign chart. Classify max/min. Sketch behavior without full graph.

Worked mini-examples

Example 1 — Power rule.
ddx(5x4−3x+7)=20x3−3\frac{d}{dx}(5x^4 - 3x + 7) = 20x^3 - 3.
Example 2 — Rewrite then differentiate.
f(x)=1x2=x−2f(x) = \frac{1}{x^2} = x^{-2} → f′(x)=−2x−3=−2/x3f'(x) = -2x^{-3} = -2/x^3.
Example 3 — Tangent.
f(x)=x3f(x) = x^3, a=1a = 1. f(1)=1f(1) = 1, f′(1)=3f'(1) = 3. Tangent: y=3x−2y = 3x - 2.
Example 4 — Critical point.
f(x)=−x2+6xf(x) = -x^2 + 6x. f′(x)=−2x+6=0f'(x) = -2x + 6 = 0 → x=3x = 3. Max (parabola opens down).
Example 5 — Chain rule.
f(x)=(2x+1)3f(x) = (2x + 1)^3. f′(x)=3(2x+1)2⋅2=6(2x+1)2f'(x) = 3(2x+1)^2 \cdot 2 = 6(2x+1)^2.

Traps

  • Forgetting to multiply by inner derivative in chain rule.
  • Critical point assumed to be max/min without sign test.
  • Tangent uses wrong point — must pass through (a,f(a))(a, f(a)).
  • (fg)′writtenas(fg)' written as f'g'$ — product rule differs.
  • Derivative of constant not zero in long expressions.

Diagnostic (try yourself)

  1. Find f′(x)f'(x) for f(x)=4x3−5x2+x−9f(x) = 4x^3 - 5x^2 + x - 9.
  2. Differentiate g(x)=x+1/xg(x) = \sqrt{x} + 1/x (rewrite powers first).
  3. Find the equation of the tangent line to f(x)=x2f(x) = x^2 at x=−2x = -2.
  4. For f(x)=x3−3xf(x) = x^3 - 3x, find all critical points.
  5. If f′(x)>0f'(x) > 0 on an interval, is ff increasing or decreasing there?
Document outline

Keep your place and jump directly to a heading.

Table of contents

No note selected

Open a chapter to see its outline, backlinks, and sources here.