Đại học Kinh tế Quốc dân – National Economics UniversityMICRO4ASIA
🏆 Arena
Sign inSign up
MICRO4ASIAThe six micro-credentials

Courses are delivered on the Limio learning platform. Limio

← Mathematical Foundations for Data Science

You are viewing a public preview

Sign in to save your progress, do assignments, join discussions and get feedback.

Sign in
Part II — Calculus and Optimization

Topic 7 · Derivatives, the Chain Rule and Marginal Effects

Print / Save as PDF
Lecture video — Topic 7: Derivatives, the Chain Rule and Marginal Effects

Limits, continuity, derivatives as local slopes, tangent lines, derivative rules and the chain rule.

Flashcards · Derivatives, the chain rule and marginal effects

10 words
WordMeaningExample
  • Limit

    lim f(x) = L as x → a means f(x) can be made as close to L as we like with x close to a (x ≠ a). The two-sided limit exists iff both one-sided limits agree.

    (x² − 1)/(x − 1) → 2 as x → 1.

  • Continuity at a

    f(a) is defined and lim f(x) = f(a) as x → a.

    Defining f(1) = 2 makes (x² − 1)/(x − 1) continuous at 1.

  • Derivative

    f′(a) = lim (f(a + h) − f(a))/h as h → 0: the local rate of change and the tangent slope.

    For x², f′(a) = 2a.

  • Differentiable vs continuous

    Differentiable at a implies continuous at a. The converse fails.

    |x| is continuous at 0, but its quotient is −1 on the left and +1 on the right.

  • Tangent line / linear approximation

    y = f(a) + f′(a)(x − a); for small h, f(a + h) ≈ f(a) + f′(a)h.

    x² at 3: f(3.02) ≈ 9 + 6(0.02) = 9.12.

  • Derivative rules

    (xᵖ)′ = pxᵖ⁻¹, (fg)′ = f′g + fg′, (f/g)′ = (f′g − fg′)/g², (eˣ)′ = eˣ, (ln x)′ = 1/x.

  • Chain rule

    (f∘g)′(x) = f′(g(x))·g′(x): outer derivative at the inner value, times the inner derivative.

    (3x + 1)² → 2(3x + 1)·3 = 6(3x + 1); ln u → u′/u.

  • Marginal effect

    A derivative read in context: the change in the output per extra unit of input, for small changes near a point. Δf ≈ f′(a)Δx.

    C′(10) = 7: about 7 more cost per extra unit at q = 10.

  • Second-order Taylor

    f(a + h) ≈ f(a) + f′(a)h + ½f″(a)h². The second derivative tells how the slope changes.

    ln 1.1 ≈ 0.1 − ½(0.1)² = 0.095.

  • Sigmoid derivative

    σ′(z) = σ(z)(1 − σ(z)); the maximum is 1/4 at z = 0 and it vanishes as σ approaches 0 or 1.

Practice in Python

Work through Section 2 of Lab 2 (Calculus and Optimization, MFDS_Lab2_Calculus_Optimization.ipynb), attached to the Part II materials lesson at the start of this part.