girgit.org

Limits and Derivatives

Derivatives from first principles

The big ideaDo the derivative calculation at a general point \( x \) instead of one number, and you get a whole new function, \( f'(x) = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h} \), that gives the slope everywhere at once.

In simple words

Working out the steepness of a hill at one spot is useful. Working out a rule that tells you the steepness at every spot is much better, because then you never have to start again. You do the hard work once, with a letter instead of a number, and get a rule that answers every question about steepness.

The derivative function (Definition 2)

For a real valued function \( f \), the new function given by

\[ f'(x) = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h} \]

wherever this limit exists is the derivative of \( f \). Finding it straight from this limit is called finding the derivative from first principles (the textbook's "first principle of derivative"). The domain of \( f' \) is the set of points where the limit exists, which may be smaller than the domain of \( f \).

Many names for one thing

NotationRead as
\( f'(x) \)f dash x (Lagrange's style)
\( \dfrac{d}{dx} f(x) \), or \( \dfrac{dy}{dx} \) if \( y = f(x) \)d by dx of f of x; dy by dx (Leibniz's style)
\( D(f(x)) \)D of f of x
\( f'(a) \), \( \left. \dfrac{df}{dx} \right|_a \), \( \left( \dfrac{df}{dx} \right)_{x = a} \)the derivative at the point \( x = a \)

All of them mean the same thing: the derivative of \( f(x) \), or of \( y \), with respect to \( x \). "With respect to \( x \)" means \( x \) is the input we are nudging. In \( \frac{dy}{dx} \), think "a tiny change in \( y \) for a tiny change in \( x \)"; it is one symbol, not a fraction you may cancel.

The four-step recipe

  1. Write \( f(x + h) \).
  2. Subtract \( f(x) \) and simplify the top until a factor \( h \) shows up.
  3. Divide by \( h \) (allowed, since \( h \ne 0 \)).
  4. Let \( h \to 0 \).

Worked example 1: the cube

\( f(x) = x^3 \). Expanding, \( (x + h)^3 - x^3 = 3x^2 h + 3x h^2 + h^3 = h(3x^2 + 3xh + h^2) \). Divide by \( h \): \( 3x^2 + 3xh + h^2 \). As \( h \to 0 \): \( f'(x) = 3x^2 \).

Worked example 2: a fraction

Find the derivative of \( f(x) = \dfrac{1}{x + 2} \) from first principles.

  1. \( f(x + h) - f(x) = \dfrac{1}{x + h + 2} - \dfrac{1}{x + 2} = \dfrac{(x + 2) - (x + h + 2)}{(x + h + 2)(x + 2)} = \dfrac{-h}{(x + h + 2)(x + 2)} \).
  2. Divide by \( h \): \( \dfrac{-1}{(x + h + 2)(x + 2)} \).
  3. As \( h \to 0 \): \( f'(x) = -\dfrac{1}{(x + 2)^2} \). Like \( f \) itself, \( f' \) is not defined at \( x = -2 \).

Worked example 3: a square root

Find the derivative of \( f(x) = \sqrt{x} \), \( x \gt 0 \).

  1. \( \dfrac{\sqrt{x + h} - \sqrt{x}}{h} \). Multiply top and bottom by \( \sqrt{x + h} + \sqrt{x} \) (rationalise).
  2. The top becomes \( (x + h) - x = h \), so the quotient is \( \dfrac{1}{\sqrt{x + h} + \sqrt{x}} \).
  3. As \( h \to 0 \): \( f'(x) = \dfrac{1}{2\sqrt{x}} \).

The same steps as example 2 give a result worth remembering: for \( f(x) = \frac{1}{x} \), \( f'(x) = -\frac{1}{x^2} \) (for \( x \ne 0 \)). And any straight line \( f(x) = mx + c \) has \( f'(x) = m \), its slope.

Guess first: steepness of a cube

The graph of \( y = x^3 \) climbs from bottom left to top right. Guess: is it steepest at the origin, where it crosses the axes?

Commit to an answer, then drag along the curve and watch the slope function build up underneath.

See what happens
It is flattest there. \( f'(x) = 3x^2 \) gives \( f'(0) = 0 \): the tangent at the origin is the x-axis itself, even though the curve passes straight through it. Away from 0 the slope \( 3x^2 \) grows fast: 3 at \( x = 1 \), 12 at \( x = 2 \). A tangent can cross the curve, and "crossing the axis" says nothing about steepness.

Try it. From first principles, find the derivatives of (a) \( x^2 + 3x \), (b) \( 3x - 7 \).

Answer
(a) \( \frac{(x + h)^2 + 3(x + h) - x^2 - 3x}{h} = \frac{2xh + h^2 + 3h}{h} = 2x + h + 3 \to 2x + 3 \). (b) \( \frac{3(x + h) - 7 - 3x + 7}{h} = \frac{3h}{h} = 3 \), so the derivative is 3 everywhere.

Just remember

Notation is pure convention: four symbols for one limit, named after the people who used them. The three results below do have reasons, but they come up so often that you should know them on sight. Each line says how to rebuild it.

Who wrote which
\( \dfrac{dy}{dx} \) is Leibniz: "Leibniz loves little d's". \( f'(x) \) is the dash notation, made popular by Lagrange (Euler used it first). \( D \) is the operator form. Newton's own \( \dot{y} \), a speck of motion on top, survives in physics for rates in time. Rebuild: all of them mean \( \lim_{h \to 0} \frac{f(x + h) - f(x)}{h} \).
\( \dfrac{d}{dx}\dfrac{1}{x} = -\dfrac{1}{x^2} \)
"Flip, square, add a minus." Check the sign on the graph: both branches of \( y = \frac{1}{x} \) always slope down, so the slope must be negative everywhere. Rebuild: it is \( x^n \to nx^{n-1} \) with \( n = -1 \).
\( \dfrac{d}{dx}\sqrt{x} = \dfrac{1}{2\sqrt{x}} \)
"Half over root." Check on the graph: \( \sqrt{x} \) is very steep near 0 (huge slope, small root on the bottom) and flattens out later. Rebuild: \( n = \frac{1}{2} \) in the power rule, or rationalise as in worked example 3.
\( \dfrac{d}{dx}(mx + c) = m \)
A straight line has one steepness everywhere, its slope \( m \); the \( c \) only lifts it and changes no steepness.

Words to know

Derivative (function)
\( f'(x) = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h} \), wherever the limit exists.
First principles
Finding a derivative directly from this limit, without rules.
\( \frac{dy}{dx} \)
The derivative of \( y \) with respect to \( x \); one symbol, not a fraction.
With respect to \( x \)
\( x \) is the input being changed.
Rationalise
Multiply top and bottom by the "conjugate" to clear square roots.

Using first principles, what is the derivative of \( x^3 \) at \( x = 2 \)?

  1. 8
  2. 12
  3. 6

In a first-principles calculation, why are we allowed to divide by \( h \)?

  1. Because \( h = 0 \)
  2. Because \( h \) tends to 0 but is never equal to 0
  3. Because \( h \) is always positive

The derivative of \( \frac{1}{x} \) is \( -\frac{1}{x^2} \). What does the minus sign tell you about the graph of \( y = \frac{1}{x} \)?

  1. It slopes downwards everywhere it is defined
  2. The graph lies below the x-axis
  3. The graph is flat for large \( x \)

Deep dive · optional

Two inventors, two notations, one fight

Why one idea has four symbols, how Newton's "speeds" and Leibniz's "little differences" give the same number, and the bitter quarrel over who came first. The exam needs only the table above; this is the story behind it.

  1. The roots
  2. The story
  3. See it
  4. Solve it
  5. Connect it
  6. Still confused?

The roots: each symbol is a picture

  1. Why are there so many ways to write one derivative?Because the derivative was invented twice, by two people who pictured it differently, and later writers added their own shorthand. Each symbol carries its inventor's picture.
  2. What did Newton picture?Motion. Every quantity "flows" in time, like water. He called a flowing quantity a fluent and its speed a fluxion, and marked the speed with a dot: \( \dot{x} \), \( \dot{y} \). The steepness of a curve is then a ratio of two speeds, \( \dot{y} / \dot{x} \): how fast the height grows compared with how fast you move across.
  3. What did Leibniz picture?Tiny steps. Move a tiny step \( dx \) across; the height changes by a tiny step \( dy \). The steepness is the ratio \( \frac{dy}{dx} \), the chord's rise over run when the run is as small as can be. No time anywhere.
  4. Why do the two give the same number?If the point moves along the curve, in a short time it goes \( \Delta x \) across and \( \Delta y \) up. Then \( \frac{\Delta y / \Delta t}{\Delta x / \Delta t} = \frac{\Delta y}{\Delta x} \): the time cancels. Go faster and both speeds grow together, so their ratio does not move. The slope belongs to the curve, not to the journey.
  5. And underneath?The limit. \( \dot{y}/\dot{x} \), \( \frac{dy}{dx} \), \( f'(x) \) and \( D f(x) \) are four names for \( \lim_{h \to 0} \frac{f(x + h) - f(x)}{h} \). The limit is what Berkeley demanded (page 9) and what Cauchy finally supplied.

Why did Leibniz's symbol win? Because it behaves so much like a fraction that rules become easy to remember. In Class 12 the chain rule reads \( \frac{dy}{dx} = \frac{dy}{du} \cdot \frac{du}{dx} \), as if the \( du \) cancelled. It is not really a fraction (it is the limit of one), but the notation never leads you wrong in these rules. Newton's dots, meanwhile, need a time. They survive where there is one: in physics, \( \dot{x} \) is still a common way to write a velocity.

The story: the quarrel over who came first

An old printed paragraph: Newton names growing quantities fluents (v, x, y, z) and their speeds fluxions, written as the same letters with a dot on top; a reader's handwritten notes in the marginfluxions: speeds, written with a dot
Newton's own definitions, from The Method of Fluxions (written 1671, printed in English in 1736). A quantity that flows is a fluent; its speed is a fluxion, marked with a dot. A reader has copied the rule into the margin.
Title page: The Method of Fluxions and Infinite Series, by the Inventor Sir Isaac Newton, translated by John Colson, London 1736
Printed nine years after Newton's death, the title page still takes sides: "By the Inventor Sir Isaac Newton".

See it: Newton's speeds give Leibniz's slope

The point flows along \( y = \frac{x^2}{2} \). Its two fluxions are drawn on it as arrows: \( \dot{x} \) across, \( \dot{y} \) up. Their ratio is printed under the picture beside the tangent's slope. Guess first, then change the speed, make the flow uneven, or show every speed at once.

Notice the ghosts: at an uneven speed they bunch up where the point is slow and spread out where it is fast. The arrows change length all the time, yet the ratio \( \dot{y}/\dot{x} \) always equals the slope \( x \) at that spot. Only when the point stops (\( \dot{x} = 0 \)) does Newton's ratio fail, which is one reason the time-free \( \frac{dy}{dx} \) is the better definition.

Solve it

Solve it: Newton's way

A circular ripple spreads on a pond. Its radius \( r \) grows at \( \dot{r} = 0.5 \) m/s. How fast is its area \( A = \pi r^2 \) growing at the moment \( r = 4 \) m?

Hint
Use the idea from the widget: the ratio of the two speeds is the slope, \( \frac{\dot{A}}{\dot{r}} = \frac{dA}{dr} \). Find \( \frac{dA}{dr} \) first.
Answer
\( \frac{dA}{dr} = 2\pi r = 8\pi \) at \( r = 4 \). So \( \dot{A} = 8\pi \times 0.5 = 4\pi \approx 12.6 \) m² per second. (The slope \( 2\pi r \) is the ripple's circumference: a thin ring of width \( \Delta r \) has area about circumference × width. In Class 12 this is called a related rate.)

Spot the error

A student says: "\( \frac{dy}{dx} \) is a fraction, so cancel the d's: \( \frac{dy}{dx} = \frac{y}{x} \)." Test the claim on \( y = x^2 \) at \( x = 3 \).

Answer
\( \frac{y}{x} = \frac{9}{3} = 3 \), but \( \frac{dy}{dx} = 2x = 6 \). The \( d \) is not a number multiplying \( y \); \( dy \) is one symbol for "the tiny change in \( y \)". \( \frac{y}{x} \) is the slope of the line from the origin to the point, a different line from the tangent.

Solve it (first principles)

Find the derivative of \( f(x) = \frac{1}{x^2} \) from first principles, and check it against the power rule.

Answer
\( f(x + h) - f(x) = \frac{x^2 - (x + h)^2}{x^2 (x + h)^2} = \frac{-h(2x + h)}{x^2 (x + h)^2} \). Divide by \( h \): \( \frac{-(2x + h)}{x^2 (x + h)^2} \). As \( h \to 0 \): \( \frac{-2x}{x^4} = -\frac{2}{x^3} \). Power rule: \( x^{-2} \to -2x^{-3} \). They agree.

In physics you see \( \dot{x} \). What does it mean?

  1. \( x \) times something
  2. \( \frac{dx}{dt} \), how fast \( x \) changes with time
  3. \( \frac{dx}{dx} \)

Connect it

Connect it

  • Berkeley, page 9. The "ghosts of departed quantities" were Newton's fluxions: the bishop's attack.
  • The product rule, page 11. It is printed on the first page of Leibniz's 1684 paper, in his \( d \) notation: Leibniz's wrong guess.
  • Physics: velocity. \( v = \frac{dx}{dt} = \dot{x} \) is a derivative in time, Newton's own picture: how fast right now.
  • Class 12: the chain rule. Where Leibniz's notation shines, \( \frac{dy}{dx} = \frac{dy}{du}\frac{du}{dx} \): peeling an onion.
  • Class 12: rates. The ripple problem above, done properly: related rates.

Still confused?

So who invented calculus?

Both, separately. Newton had the method first (1665 to 1666) but kept it to himself; Leibniz found his own version (1675) and published first (1684). Historians now agree Leibniz's notebooks show an independent path, even though he had seen some of Newton's results.

Why "differential" calculus?

Because Leibniz built it on differences: \( dy \) is the difference in \( y \) between two very close points, and he called such a tiny difference a differential. "Calculus" is Latin for a pebble: Romans counted with pebbles on a counting board. So the name means, roughly, "counting with differences".

If \( \frac{dy}{dx} \) is not a fraction, why does it act like one?

Because it is the limit of a real fraction, \( \frac{\Delta y}{\Delta x} \), and limits respect multiplication and division (the algebra of limits, page 4). So rules that are true for \( \frac{\Delta y}{\Delta x} \) often survive in the limit. Each such rule still needs its own proof.