1. Home
  2. Explore
  3. Mathematics
  4. Differential Calculus

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Differential Calculus

Differential Calculus: A Complete Guide

The Central Problem: Instantaneous Rate of Change

Consider a car's position function: P(t)=t2P(t) = t^2P(t)=t2, where PPP is position in meters and ttt is time in seconds. At t=1t=1t=1, position is 111 m; at t=2t=2t=2, 444 m; at t=3t=3t=3, 999 m. The question: what is the car's exact speed at the single instant t=2t=2t=2 seconds?

Speed normally equals distance divided by time. If the time interval is zero, this becomes division by zero — an undefined operation. This is the central problem of differential calculus: finding the rate of change at an instant.

The Limit: Calculus's Microscope

The limit solves this problem by examining what happens as the interval gets infinitely close to zero. Instead of instantaneous speed directly, we compute average speed over shrinking intervals.

Average speed=ΔPΔt=P(t2)−P(t1)t2−t1\text{Average speed} = \frac{\Delta P}{\Delta t} = \frac{P(t_2) - P(t_1)}{t_2 - t_1}Average speed=ΔtΔP​=t2​−t1​P(t2​)−P(t1​)​

For P(t)=t2P(t) = t^2P(t)=t2, average speed between t=2t=2t=2 and t=3t=3t=3 is 9−41=5\frac{9 - 4}{1} = 519−4​=5 m/s. As the interval shrinks:

  • From 222 to 2.12.12.1: Δt=0.1\Delta t = 0.1Δt=0.1, ΔP=4.41−4=0.41\Delta P = 4.41 - 4 = 0.41ΔP=4.41−4=0.41, average speed =4.1= 4.1=4.1 m/s

  • From 222 to 2.012.012.01: Δt=0.01\Delta t = 0.01Δt=0.01, ΔP=4.0401−4=0.0401\Delta P = 4.0401 - 4 = 0.0401ΔP=4.0401−4=0.0401, average speed =4.01= 4.01=4.01 m/s

The pattern shows the average speed approaching 444 m/s. This is expressed as:

Limit: The value a function approaches as the input gets arbitrarily close to a specified point.

lim⁡Δt→0P(2+Δt)−P(2)Δt=4\lim_{\Delta t \to 0} \frac{P(2 + \Delta t) - P(2)}{\Delta t} = 4limΔt→0​ΔtP(2+Δt)−P(2)​=4

Geometric Interpretation: From Secant to Tangent

The average speed between two points on a curve equals the slope of the secant line connecting them. As the interval shrinks, the second point slides closer to the first, and the secant line pivots. In the limit, it becomes the tangent line — the line that just skims the curve at a single point. The slope of this tangent line is the instantaneous rate of change.


The Derivative: Formal Definition

The derivative is a function that gives the instantaneous rate of change at any point. It is defined using the limit:

Definition: The derivative of f(x)f(x)f(x) with respect to xxx is

f′(x)=lim⁡h→0f(x+h)−f(x)hf'(x) = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h}f′(x)=limh→0​hf(x+h)−f(x)​

provided the limit exists.

Interpretation of the formula:

  • hhh: a tiny change in the input (like Δt\Delta tΔt)

  • f(x+h)−f(x)f(x+h) - f(x)f(x+h)−f(x): the change in the output (the "rise")

  • f(x+h)−f(x)h\frac{f(x+h) - f(x)}{h}hf(x+h)−f(x)​: the average rate of change (rise over run)

  • lim⁡h→0\lim_{h \to 0}limh→0​: the squeeze to instantaneous rate

  • f′(x)f'(x)f′(x): the resulting derivative function


Derivative from First Principles: f(x)=x2f(x) = x^2f(x)=x2

  1. Set up the limit: f′(x)=lim⁡h→0(x+h)2−x2hf'(x) = \lim_{h \to 0} \frac{(x+h)^2 - x^2}{h}f′(x)=limh→0​h(x+h)2−x2​

  2. Expand the numerator: (x2+2xh+h2)−x2=2xh+h2(x^2 + 2xh + h^2) - x^2 = 2xh + h^2(x2+2xh+h2)−x2=2xh+h2

  3. Simplify: lim⁡h→02xh+h2h=lim⁡h→0h(2x+h)h\lim_{h \to 0} \frac{2xh + h^2}{h} = \lim_{h \to 0} \frac{h(2x + h)}{h}limh→0​h2xh+h2​=limh→0​hh(2x+h)​

  4. Cancel hhh: lim⁡h→0(2x+h)\lim_{h \to 0} (2x + h)limh→0​(2x+h)

  5. Evaluate the limit: 2x+0=2x2x + 0 = 2x2x+0=2x

Thus, if f(x)=x2f(x) = x^2f(x)=x2, then f′(x)=2xf'(x) = 2xf′(x)=2x. For the car example, P(t)=t2P(t) = t^2P(t)=t2 gives velocity v(t)=P′(t)=2tv(t) = P'(t) = 2tv(t)=P′(t)=2t, so at t=2t=2t=2, speed is 444 m/s.


Foundational Derivative Library

Derivative of a Constant

If f(x)=cf(x) = cf(x)=c (a constant), then f′(x)=0f'(x) = 0f′(x)=0.

  • Proof: f′(x)=lim⁡h→0c−ch=lim⁡h→00=0f'(x) = \lim_{h \to 0} \frac{c - c}{h} = \lim_{h \to 0} 0 = 0f′(x)=limh→0​hc−c​=limh→0​0=0

  • Intuition: A horizontal line has zero slope everywhere.

Derivative of a Linear Function

If f(x)=mxf(x) = mxf(x)=mx, then f′(x)=mf'(x) = mf′(x)=m.

  • Proof: f′(x)=lim⁡h→0m(x+h)−mxh=lim⁡h→0mhh=mf'(x) = \lim_{h \to 0} \frac{m(x+h) - mx}{h} = \lim_{h \to 0} \frac{mh}{h} = mf′(x)=limh→0​hm(x+h)−mx​=limh→0​hmh​=m

  • Intuition: A line has constant slope mmm.

Derivative of exe^xex

If f(x)=exf(x) = e^xf(x)=ex, then f′(x)=exf'(x) = e^xf′(x)=ex.

The number e≈2.718e \approx 2.718e≈2.718 is the unique base where the function is its own derivative. For the graph y=exy = e^xy=ex, the slope of the tangent line at any point xxx equals the function's value at that point:

  • At x=0x = 0x=0, y=1y = 1y=1, slope =1= 1=1

  • At x=1x = 1x=1, y≈2.718y \approx 2.718y≈2.718, slope ≈2.718\approx 2.718≈2.718

  • At x=−1x = -1x=−1, y≈0.367y \approx 0.367y≈0.367, slope ≈0.367\approx 0.367≈0.367

This property makes eee the fundamental language of continuous growth.

Derivative of ln⁡x\ln xlnx

If f(x)=ln⁡xf(x) = \ln xf(x)=lnx, then f′(x)=1xf'(x) = \frac{1}{x}f′(x)=x1​.

  • At x=0.1x = 0.1x=0.1, slope ≈10\approx 10≈10 (very steep)

  • At x=1x = 1x=1, slope =1= 1=1 (unit slope)

  • At x=10x = 10x=10, slope =0.1= 0.1=0.1 (almost flat)

Derivatives of Trigonometric Functions

  • ddxsin⁡x=cos⁡x\frac{d}{dx} \sin x = \cos xdxd​sinx=cosx

  • ddxcos⁡x=−sin⁡x\frac{d}{dx} \cos x = -\sin xdxd​cosx=−sinx

How cos⁡x\cos xcosx describes the slope of sin⁡x\sin xsinx:

  • At x=0x = 0x=0, sin⁡0=0\sin 0 = 0sin0=0, steepest rise, cos⁡0=1\cos 0 = 1cos0=1 ✓

  • At x=π/2x = \pi/2x=π/2, sin⁡(π/2)=1\sin (\pi/2) = 1sin(π/2)=1 (peak), flat slope, cos⁡(π/2)=0\cos (\pi/2) = 0cos(π/2)=0 ✓

  • At x=πx = \pix=π, sin⁡π=0\sin \pi = 0sinπ=0, steepest fall, cos⁡π=−1\cos \pi = -1cosπ=−1 ✓

  • At x=3π/2x = 3\pi/2x=3π/2, sin⁡(3π/2)=−1\sin (3\pi/2) = -1sin(3π/2)=−1 (trough), flat slope, cos⁡(3π/2)=0\cos (3\pi/2) = 0cos(3π/2)=0 ✓


Basic Differentiation Rules

The Power Rule

Power Rule: ddxxn=nxn−1\frac{d}{dx} x^n = n x^{n-1}dxd​xn=nxn−1

Two steps:

  1. Bring the exponent down as a multiplier

  2. Subtract 1 from the exponent

Examples:

  • x2→2xx^2 \rightarrow 2xx2→2x

  • x5→5x4x^5 \rightarrow 5x^4x5→5x4

  • x=x1→1⋅x0=1x = x^1 \rightarrow 1 \cdot x^0 = 1x=x1→1⋅x0=1

  • x=x1/2→12x−1/2\sqrt{x} = x^{1/2} \rightarrow \frac{1}{2} x^{-1/2}x​=x1/2→21​x−1/2

  • 1x2=x−2→−2x−3\frac{1}{x^2} = x^{-2} \rightarrow -2x^{-3}x21​=x−2→−2x−3

The Constant Multiple Rule

Constant Multiple Rule: ddx[c⋅f(x)]=c⋅f′(x)\frac{d}{dx} [c \cdot f(x)] = c \cdot f'(x)dxd​[c⋅f(x)]=c⋅f′(x)

The constant simply tags along.

Examples:

  • 5x3→5⋅3x2=15x25x^3 \rightarrow 5 \cdot 3x^2 = 15x^25x3→5⋅3x2=15x2

  • −2cos⁡x→−2⋅(−sin⁡x)=2sin⁡x-2 \cos x \rightarrow -2 \cdot (-\sin x) = 2 \sin x−2cosx→−2⋅(−sinx)=2sinx

The Sum and Difference Rule

Sum/Difference Rule: ddx[f(x)±g(x)]=f′(x)±g′(x)\frac{d}{dx} [f(x) \pm g(x)] = f'(x) \pm g'(x)dxd​[f(x)±g(x)]=f′(x)±g′(x)

Differentiate each term independently.

Example: h(x)=x4−7xh(x) = x^4 - 7xh(x)=x4−7x

  • Derivative of x4x^4x4: 4x34x^34x3

  • Derivative of −7x-7x−7x: −7-7−7

  • Result: h′(x)=4x3−7h'(x) = 4x^3 - 7h′(x)=4x3−7

Applying the Toolkit to a Complex Function

Find P′(t)P'(t)P′(t) for P(t)=4t3−5t2+7t+10P(t) = 4t^3 - 5t^2 + 7t + 10P(t)=4t3−5t2+7t+10:

  1. Term 4t34t^34t3: 4⋅3t2=12t24 \cdot 3t^2 = 12t^24⋅3t2=12t2

  2. Term −5t2-5t^2−5t2: −5⋅2t=−10t-5 \cdot 2t = -10t−5⋅2t=−10t

  3. Term 7t7t7t: 7⋅1=77 \cdot 1 = 77⋅1=7

  4. Term 101010: 000

  5. Result: P′(t)=12t2−10t+7P'(t) = 12t^2 - 10t + 7P′(t)=12t2−10t+7


The Product Rule

When two functions are multiplied, the derivative is not simply the product of their derivatives.

Product Rule: ddx[f(x)⋅g(x)]=f′(x)⋅g(x)+f(x)⋅g′(x)\frac{d}{dx} [f(x) \cdot g(x)] = f'(x) \cdot g(x) + f(x) \cdot g'(x)dxd​[f(x)⋅g(x)]=f′(x)⋅g(x)+f(x)⋅g′(x)

Memory aid: "derivative of the first times the second, plus the first times derivative of the second."

Example: h(x)=x2sin⁡xh(x) = x^2 \sin xh(x)=x2sinx

  1. Identify f(x)=x2f(x) = x^2f(x)=x2, g(x)=sin⁡xg(x) = \sin xg(x)=sinx

  2. f′(x)=2xf'(x) = 2xf′(x)=2x, g′(x)=cos⁡xg'(x) = \cos xg′(x)=cosx

  3. Apply rule: h′(x)=2x⋅sin⁡x+x2⋅cos⁡xh'(x) = 2x \cdot \sin x + x^2 \cdot \cos xh′(x)=2x⋅sinx+x2⋅cosx


The Quotient Rule

For division of functions:

Quotient Rule: ddx[f(x)g(x)]=f′(x)g(x)−f(x)g′(x)[g(x)]2\frac{d}{dx} \left[ \frac{f(x)}{g(x)} \right] = \frac{f'(x)g(x) - f(x)g'(x)}{[g(x)]^2}dxd​[g(x)f(x)​]=[g(x)]2f′(x)g(x)−f(x)g′(x)​

Memory aid (the famous mnemonic): "Low d high minus high d low, over the square of what's below."

  • Low = bottom function g(x)g(x)g(x)

  • d high = derivative of top f′(x)f'(x)f′(x)

  • High = top function f(x)f(x)f(x)

  • d low = derivative of bottom g′(x)g'(x)g′(x)

Example: h(x)=exx3h(x) = \frac{e^x}{x^3}h(x)=x3ex​

  1. High = exe^xex, Low = x3x^3x3

  2. d high = exe^xex, d low = 3x23x^23x2

  3. Apply: x3⋅ex−ex⋅3x2(x3)2=ex(x3−3x2)x6=ex(x−3)x4\frac{x^3 \cdot e^x - e^x \cdot 3x^2}{(x^3)^2} = \frac{e^x (x^3 - 3x^2)}{x^6} = \frac{e^x (x - 3)}{x^4}(x3)2x3⋅ex−ex⋅3x2​=x6ex(x3−3x2)​=x4ex(x−3)​ (after canceling x2x^2x2)

Proving the Derivative of tan⁡x\tan xtanx

Since tan⁡x=sin⁡xcos⁡x\tan x = \frac{\sin x}{\cos x}tanx=cosxsinx​, apply the quotient rule:

  • High = sin⁡x\sin xsinx, d high = cos⁡x\cos xcosx

  • Low = cos⁡x\cos xcosx, d low = −sin⁡x-\sin x−sinx

  • ddxtan⁡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{\cos x \cdot \cos x - \sin x \cdot (-\sin x)}{\cos^2 x} = \frac{\cos^2 x + \sin^2 x}{\cos^2 x} = \frac{1}{\cos^2 x} = \sec^2 xdxd​tanx=cos2xcosx⋅cosx−sinx⋅(−sinx)​=cos2xcos2x+sin2x​=cos2x1​=sec2x

Thus, ddxtan⁡x=sec⁡2x\frac{d}{dx} \tan x = \sec^2 xdxd​tanx=sec2x is derived, not memorized.


The Chain Rule: The Master Key

For composite functions (a function inside another function):

Chain Rule: If h(x)=f(g(x))h(x) = f(g(x))h(x)=f(g(x)), then h′(x)=f′(g(x))⋅g′(x)h'(x) = f'(g(x)) \cdot g'(x)h′(x)=f′(g(x))⋅g′(x)

In words: derivative of the outside, times derivative of the inside.

  • Outer function: the "shell" (e.g., sin⁡(⋅)\sin(\cdot)sin(⋅), (⋅)7(\cdot)^7(⋅)7)

  • Inner function: the "core" (e.g., x2x^2x2, x3+5xx^3 + 5xx3+5x)

Example 1: Polynomial Power

h(x)=(x3+5x)7h(x) = (x^3 + 5x)^7h(x)=(x3+5x)7

  • Outer: (⋅)7(\cdot)^7(⋅)7, derivative 7(⋅)67(\cdot)^67(⋅)6

  • Inner: x3+5xx^3 + 5xx3+5x, derivative 3x2+53x^2 + 53x2+5

  • Result: h′(x)=7(x3+5x)6⋅(3x2+5)h'(x) = 7(x^3 + 5x)^6 \cdot (3x^2 + 5)h′(x)=7(x3+5x)6⋅(3x2+5)

Example 2: Trigonometric Composite

h(x)=sin⁡(x2)h(x) = \sin(x^2)h(x)=sin(x2)

  • Outer: sin⁡(⋅)\sin(\cdot)sin(⋅), derivative cos⁡(⋅)\cos(\cdot)cos(⋅)

  • Inner: x2x^2x2, derivative 2x2x2x

  • Result: h′(x)=cos⁡(x2)⋅2x=2xcos⁡(x2)h'(x) = \cos(x^2) \cdot 2x = 2x \cos(x^2)h′(x)=cos(x2)⋅2x=2xcos(x2)


Implicit Differentiation

When xxx and yyy are mixed together in an equation (implicit relationship) and cannot be easily solved for yyy, we use implicit differentiation — a clever application of the chain rule.

The Key Idea

  • Differentiate every term with respect to xxx.

  • When differentiating a term with yyy, treat yyy as a function of xxx and multiply by dydx\frac{dy}{dx}dxdy​ (by the chain rule).

Algorithm

  1. Differentiate both sides of the equation with respect to xxx.

  2. For any term containing yyy, differentiate normally and then multiply by dydx\frac{dy}{dx}dxdy​.

  3. Collect all dydx\frac{dy}{dx}dxdy​ terms on one side.

  4. Solve for dydx\frac{dy}{dx}dxdy​ algebraically.

Example: Slope of a Circle x2+y2=25x^2 + y^2 = 25x2+y2=25

  1. Differentiate both sides: ddx(x2)+ddx(y2)=ddx(25)\frac{d}{dx}(x^2) + \frac{d}{dx}(y^2) = \frac{d}{dx}(25)dxd​(x2)+dxd​(y2)=dxd​(25)

  2. Term-by-term:

    • ddx(x2)=2x\frac{d}{dx}(x^2) = 2xdxd​(x2)=2x

    • ddx(y2)=2y⋅dydx\frac{d}{dx}(y^2) = 2y \cdot \frac{dy}{dx}dxd​(y2)=2y⋅dxdy​ (chain rule on yyy)

    • ddx(25)=0\frac{d}{dx}(25) = 0dxd​(25)=0

  3. Equation: 2x+2ydydx=02x + 2y \frac{dy}{dx} = 02x+2ydxdy​=0

  4. Solve: dydx=−xy\frac{dy}{dx} = -\frac{x}{y}dxdy​=−yx​

Test points:

  • At (3,4)(3, 4)(3,4): slope =−34= -\frac{3}{4}=−43​ (reasonable tangent direction)

  • At (0,5)(0, 5)(0,5) (top): slope =0= 0=0 (horizontal tangent) ✓

  • At (5,0)(5, 0)(5,0) (rightmost): slope undefined (vertical tangent) ✓

Deriving the Derivative of arcsin⁡x\arcsin xarcsinx (Victory Lap)

Given y=arcsin⁡xy = \arcsin xy=arcsinx, rewrite implicitly: sin⁡y=x\sin y = xsiny=x.

  1. Differentiate both sides with respect to xxx: ddx(sin⁡y)=ddx(x)  ⟹  cos⁡y⋅dydx=1\frac{d}{dx}(\sin y) = \frac{d}{dx}(x) \implies \cos y \cdot \frac{dy}{dx} = 1dxd​(siny)=dxd​(x)⟹cosy⋅dxdy​=1

  2. Solve for dydx\frac{dy}{dx}dxdy​: dydx=1cos⁡y\frac{dy}{dx} = \frac{1}{\cos y}dxdy​=cosy1​

  3. Express cos⁡y\cos ycosy in terms of xxx: Since sin⁡y=x\sin y = xsiny=x, draw a right triangle with angle yyy, opposite side xxx, hypotenuse 111. By Pythagoras, adjacent side =1−x2= \sqrt{1 - x^2}=1−x2​, so cos⁡y=1−x2\cos y = \sqrt{1 - x^2}cosy=1−x2​.

  4. Substitute: dydx=11−x2\frac{dy}{dx} = \frac{1}{\sqrt{1 - x^2}}dxdy​=1−x2​1​

Thus, ddxarcsin⁡x=11−x2\frac{d}{dx} \arcsin x = \frac{1}{\sqrt{1 - x^2}}dxd​arcsinx=1−x2​1​ is a logical consequence of implicit differentiation and the chain rule.


The Complete Differentiation Toolbox

From a single question about a car's speed, the entire machine of differential calculus has been built:

Rule / Function

Derivative

Constant ccc

000

Linear mxmxmx

mmm

Power xnx^nxn

nxn−1n x^{n-1}nxn−1

exe^xex

exe^xex

ln⁡x\ln xlnx

1x\frac{1}{x}x1​

sin⁡x\sin xsinx

cos⁡x\cos xcosx

cos⁡x\cos xcosx

−sin⁡x-\sin x−sinx

tan⁡x\tan xtanx

sec⁡2x\sec^2 xsec2x

arcsin⁡x\arcsin xarcsinx

11−x2\frac{1}{\sqrt{1 - x^2}}1−x2​1​

Constant multiple c⋅f(x)c \cdot f(x)c⋅f(x)

c⋅f′(x)c \cdot f'(x)c⋅f′(x)

Sum/Difference f(x)±g(x)f(x) \pm g(x)f(x)±g(x)

f′(x)±g′(x)f'(x) \pm g'(x)f′(x)±g′(x)

Product f(x)⋅g(x)f(x) \cdot g(x)f(x)⋅g(x)

f′(x)g(x)+f(x)g′(x)f'(x)g(x) + f(x)g'(x)f′(x)g(x)+f(x)g′(x)

Quotient f(x)g(x)\frac{f(x)}{g(x)}g(x)f(x)​

f′(x)g(x)−f(x)g′(x)[g(x)]2\frac{f'(x)g(x) - f(x)g'(x)}{[g(x)]^2}[g(x)]2f′(x)g(x)−f(x)g′(x)​

Chain Rule f(g(x))f(g(x))f(g(x))

f′(g(x))⋅g′(x)f'(g(x)) \cdot g'(x)f′(g(x))⋅g′(x)

Implicit Differentiation

Differentiate with respect to xxx; multiply yyy terms by dydx\frac{dy}{dx}dxdy​

Every rule follows logically from the definition of the derivative and the limit. There is no magic — only mechanics. The mastery of differentiation opens the door to integral calculus, the second half of the story, and to applications across physics, engineering, economics, and data science.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent