Differentiation Techniques
Learn differentiation properly: core rules, chain rule patterns, implicit and logarithmic differentiation, plus worked physics-friendly examples.
Continue where you stopped
The core idea
On this page
Differentiation tells you how a quantity changes. In physics, that usually means:
- Velocity is the derivative of position: v = dx/dt
- Acceleration is the derivative of velocity: a = dv/dt
- Field gradients tell you “how fast something changes in space”
- Drag models: you solve dv/dt equations in UY1: Resistive Forces.
- Circuits: current is i = dq/dt in UY1: RC Circuits.
- Fields from potentials: gradients like Eₓ = -dV/dx show up in UY1: Potential Gradient.
- Forces from potentials: in 1D, Fₓ = -dU/dx (see UY1: Potential Energy & Conservative Forces).
- Math hub: Mathematics for Undergraduate Physics
1) What a derivative means
The derivative is the slope of the function at a point:
Interpretation: small changes satisfy
If x has units of meters and f has units of joules, then df/dx has units of joules per meter.
2) Core rules (the ones you must actually know)
Linearity
Product rule
Chain rule (most common source of mistakes)
If y = f(u) and u = u(x), then:
Example pattern:
If you differentiate sin(3x²) and write cos(3x²) (forgetting (d/dx)(3x²) = 6x), you are off by a factor that can break units and physics predictions.
Quotient rule
3) Method templates (what to try first)
- Simplify first: rewrite roots as powers, cancel factors, factor constants.
- Identify the outermost structure: sum, product, quotient, or composite.
- Do the derivative using the correct rule(s): product/quotient plus chain rule.
- Simplify the result (factor common terms, combine like terms).
- Sanity-check: units, sign, and a quick limit (e.g. x → 0 or t → 0).
Template A: composite functions (chain rule)
If y = f(g(x)), then
Template B: implicit relationships (constraints)
If F(x,y) = 0, then differentiate both sides:
and solve for dy/dx.
Template C: “products/powers everywhere” (log differentiation)
If y is a complicated product/quotient/power (especially with variable exponents), take logs:
differentiate, then multiply by y to get y'.
4) Techniques beyond the rules
A. Implicit differentiation
If x and y are related by an equation like F(x,y) = 0, you can differentiate both sides with respect to x and treat y as y(x).
B. Logarithmic differentiation
If y is a product/quotient/power that’s hard to differentiate directly, take ln first, differentiate, then solve for y'.
5) Worked examples
Example 1: chain rule
Differentiate y = sin(3x²):
Example 2: implicit differentiation (circle)
Given x² + y² = a², find dy/dx.
Differentiate:
Example 3: logarithmic differentiation (x^x)
Let y = x^x (for x > 0). Take logs:
Differentiate:
Example 4: a physics-friendly derivative chain
Let x(t) = A cos(ω t). Then:
and
This is the defining relationship for simple harmonic motion: a = -ω² x.
Example 5 (physics): force from potential energy
In 1D, if a conservative force comes from a potential U(x), then
For gravity (radial coordinate r), a common model is
Differentiate:
The minus sign tells you the force points toward decreasing r (attractive).
Example 6 (physics): electric field from a 1D potential
If a potential varies with position as V(x) = V₀e^(-x/a) (with a > 0), then in 1D:
Units check: volts per meter.
6) Practice (with solutions)
1) Differentiate y = e^{2x} sin(3x)
Use product rule + chain rule:
2) Differentiate implicitly: xy + y^2 = 1
Differentiate:
Collect dy/dx terms:
3) Differentiate (physics): U(r) = -GMm/r and give F_r
Hint: Fᵣ = -dU/dr.
Answer:
4) Use log differentiation: if PV^γ = constant, find dP/dV
Hint: Take logs: ln P + γ ln V = constant.
Answer: Differentiate with respect to V:
Related pages
Table of Derivatives
Use as a cheat sheet once you know the rules.
Integration Techniques
The complementary skill: antidifferentiation and methods.
Taylor Series
Approximations from derivatives.
Physics pages where derivatives are the main tool: