Reading history

Differentiation: First Principles and the Rules

4 min read Updated 1 views

Learn the derivative as a slope, differentiate from first principles, and use the power, product, quotient and chain rules and standard derivatives.

The speed shown on a car’s speedometer is how fast its distance is changing at that instant. Differentiation is the mathematics of such instantaneous rates of change. Geometrically, it finds the slope (gradient) of a curve at any point. This lesson defines the derivative from first principles and then gives the rules that make differentiation quick: the power rule, the rules for standard functions, and the product, quotient and chain rules.

In this lesson you will learn

  • The derivative as the slope of a tangent
  • Differentiation from first principles
  • The power, constant and sum rules
  • Derivatives of sin x, cos x, eˣ and ln x
  • The product, quotient and chain rules

You should know limits and slopes of straight lines.

Want to go deeper? Our step-by-step Calculus course covers this topic in more detail, starting with The Derivative From First Principles.

The Derivative as a Slope

The slope of a straight line is constant, but a curve’s steepness changes from point to point. To find the slope at a point P, take a nearby point Q on the curve, find the slope of the chord PQ, then let Q slide towards P. The chord becomes the tangent, and its slope is the derivative.

Definition (first principles)

f′(x) = dy/dx = limh→0 [f(x + h) − f(x)] / h

f(x) = x²
[f(x + h) − f(x)] / h = [(x + h)² − x²] / h = (2xh + h²)/h = 2x + h
As h → 0:  f′(x) = 2x

At x = 3 the slope of y = x² is 6.
-1123-1123456xy0P(1, 1)Q(2, 4)chord PQ, slope 3tangent, slope 2y = x²

Basic Rules

FunctionDerivative
c (a constant)0
xⁿ (any real n)n xⁿ⁻¹
c·f(x)c·f′(x)
f(x) ± g(x)f′(x) ± g′(x)
sin xcos x
cos x−sin x
tan xsec²x
eˣeˣ
ln x1/x
d/dx (3x⁴ − 5x² + 7x − 2) = 12x³ − 10x + 7
d/dx (√x) = d/dx (x^½) = ½ x^(−½) = 1/(2√x)
d/dx (1/x²) = d/dx (x⁻²) = −2x⁻³ = −2/x³

Slope of y = x³ − 2x at x = 2:  dy/dx = 3x² − 2 = 12 − 2 = 10

Rewrite roots and fractions as powers first, then use the power rule. The trigonometric results require x in radians.

Product and Quotient Rules

Product rule:   (uv)′ = u′v + uv′
d/dx (x² sin x) = 2x sin x + x² cos x

Quotient rule:  (u/v)′ = (u′v − uv′) / v²
d/dx [(x + 1)/(x − 1)] = [1·(x − 1) − (x + 1)·1] / (x − 1)² = −2/(x − 1)²

The Chain Rule

For a function of a function

If y = f(u) and u = g(x), then dy/dx = (dy/du) × (du/dx): differentiate the outside, keep the inside, then multiply by the derivative of the inside.

d/dx (3x + 2)⁵  = 5(3x + 2)⁴ × 3 = 15(3x + 2)⁴
d/dx sin(x²)    = cos(x²) × 2x  = 2x cos(x²)
d/dx e^(2x)     = e^(2x) × 2    = 2e^(2x)
d/dx ln(x² + 1) = 2x / (x² + 1)

Common Mistakes

  1. Differentiating a product term by term: (uv)′ is not u′v′.
  2. Forgetting the chain rule factor, for example writing 5(3x + 2)⁴ instead of 15(3x + 2)⁴.
  3. Getting the sign of d/dx cos x wrong: it is −sin x.
  4. Differentiating a constant to 1. Constants differentiate to 0.

Practice Exercises

Exercise 1. Differentiate y = x³ + 4/x.

Show answer

y = x³ + 4x⁻¹, so dy/dx = 3x² − 4x⁻² = 3x² − 4/x².

Exercise 2. Differentiate y = (2x − 1)⁴.

Show answer

dy/dx = 4(2x − 1)³ × 2 = 8(2x − 1)³.

Exercise 3. Differentiate y = x eˣ.

Show answer

Product rule: 1·eˣ + x·eˣ = eˣ(1 + x).

Frequently Asked Questions

What do dy/dx and f′(x) mean?

Both mean the derivative. dy/dx, Leibniz’s notation, reads as “the rate of change of y with respect to x”; f′(x), Lagrange’s notation, is shorter. They are used interchangeably.

Who invented calculus?

Isaac Newton in England and Gottfried Leibniz in Germany developed it independently in the late 1600s. Most modern notation, including dy/dx and the integral sign, comes from Leibniz.

Summary

  • The derivative is the slope of the tangent: f′(x) = limh→0 [f(x + h) − f(x)]/h.
  • Power rule: d/dx xⁿ = nxⁿ⁻¹; constants differentiate to 0.
  • Know the derivatives of sin, cos, tan, eˣ and ln x.
  • Use the product, quotient and chain rules for combined functions.

Next: Applications of Differentiation.

Lessons are also marked complete when you click Next.

Leave a Reply

Your email address will not be published. Required fields are marked *