BetaFree coursewareRewritten from MIT OpenCourseWareCC BY-NC-SA 4.0
Open CosmologyPhysics & cosmology, from high school to a graduate year

Differentials and antiderivatives

Leibniz's differentials, dy = f′(x) dx, give a compact way to write linear approximations and are the language of integration. An antiderivative of f is a function whose derivative is f; it is written ∫f(x) dx and is fixed only up to an added constant, and that is the only freedom. Substitution, or guessing and checking by differentiating, finds most antiderivatives in this part of the course.

You need this first

Full reading path (12 pages)
  1. The derivative: slope of the tangent line and rate of change (18.01)
  2. Limits and continuity (18.01)
  3. Derivatives of sine and cosine, and the product and quotient rules (18.01)
  4. The chain rule and higher derivatives (18.01)
  5. Implicit differentiation and the derivatives of inverse functions (18.01)
  6. Exponentials and logarithms: the number e and its derivatives (18.01)
  7. Linear and quadratic approximations (18.01)
  8. Curve sketching with the first and second derivative (18.01)
  9. Sketching strategy and maximum–minimum problems (18.01)
  10. More max–min, and related rates (18.01)
  11. A ring on a string, and Newton's method (18.01)
  12. The mean value theorem and inequalities (18.01)
On this page · 9 sections
  1. Differentials
  2. Linear approximation in differentials
  3. Antiderivatives
  4. A table read backwards
  5. Only a constant
  6. The method of substitution
  7. Advanced guessing
  8. Two answers, one family
  9. Summary

After the mean value theorem, the course turns to what fills its second half: integration. This lecture brings in the notation for it, Leibniz's differentials, and the first kind of integral, the antiderivative.

Differentials#

For y=f(x)y = f(x), the differential of yy is defined as (transcript, p. 1; notes, p. 1)

Differential
dy=f′(x) dxdy = f'(x)\,dx
In words

d y equals f prime (x) d x

Divide formally by dxdx and you get dy/dx=f′(x)dy/dx = f'(x): the derivative as a ratio of two differentials, which is how Leibniz thought of it. Both dydy and f′(x) dxf'(x)\,dx are called differentials (notes, p. 1). The lecture stresses how much good notation matters: Leibniz's was adopted on the continent, Newton's in Britain, and the lecturer argues that Britain fell behind by one or two hundred years in calculus as a result (p. 1).

Linear approximation in differentials#

dxdx takes the place of Δx\Delta x, and dydy that of Δy\Delta y (transcript, pp. 1–2). The lecture's example: approximate 64.11/364.1^{1/3}. With y=x1/3y = x^{1/3} at x=64x = 64, y=4y = 4 and

The differential at 64
dy=13 x−2/3 dx=13⋅116 dx=148 dxdy = \tfrac13\,x^{-2/3}\,dx = \tfrac13\cdot\tfrac{1}{16}\,dx = \tfrac{1}{48}\,dx
In words

d y equals one third x to the power minus two thirds, end of power, d x equals one third times 1 over 16 d x equals 1 over 48 d x

With dx=1/10dx = 1/10, 64.11/3≈y+dy=4+1/480≈4.00264.1^{1/3} \approx y + dy = 4 + 1/480 \approx 4.002 (pp. 2–3). Strictly, dydy is how far you rise along the tangent line, not along the curve, so this is only approximate; that small ambiguity in the notation is something to live with (p. 2). It is the same calculation as the linear approximation f(x)≈f(a)+f′(a)(x−a)f(x) \approx f(a) + f'(a)(x - a) with a=64a = 64 (p. 3). The notes do 651/3≈4+1/4865^{1/3} \approx 4 + 1/48 three ways and get the same answer each time (notes, pp. 1–2).

Worked example

√101 again

Use differentials to approximate 101\sqrt{101}.

Differential

y=xy = \sqrt x, so dy=dx2xdy = \dfrac{dx}{2\sqrt x}. At x=100x = 100: y=10y = 10 and dy=dx/20dy = dx/20.

Approximate

With dx=1dx = 1: 101≈10+1/20=10.05\sqrt{101} \approx 10 + 1/20 = 10.05. The true value is 10.0498810.04988, inside the bounds the mean value theorem gave, and just below the estimate, because the curve bends below its tangent line.

Antiderivatives#

The new idea is reading derivatives backwards (transcript, p. 3; notes, p. 2):

Antiderivative
G(x)=∫g(x) dxmeansG′(x)=g(x)G(x) = \int g(x)\,dx \quad\text{means}\quad G'(x) = g(x)
In words

capital G (x) equals the integral of g(x) d x means capital G prime (x) equals g(x)

GG is an antiderivative of gg, also called the indefinite integral; ∫\int is the integral sign, and the differential dxdx is part of the notation. "Indefinite" because a constant can always be added: the derivative of a constant is zero. For example, −cos⁡x-\cos x has derivative sin⁡x\sin x, so (p. 3)

Sine
∫sin⁡x dx=−cos⁡x+c\int \sin x\,dx = -\cos x + c
In words

the integral of sine x d x equals minus cos x plus c

Three antiderivatives of sin⁡x\sin x, drawn from the formula y=−cos⁡x+cy = -\cos x + c. Each curve is another shifted up or down by a constant: at every xx they have the same slope, sin⁡x\sin x.

A table read backwards#

Each differentiation rule gives an antiderivative (transcript, pp. 4–5; notes, p. 2):

Powers
∫xa dx=xa+1a+1+c(a≠−1)\int x^a\,dx = \frac{x^{a+1}}{a+1} + c \qquad (a \ne -1)
In words

the integral of x to the power a d x equals x to the power a plus 1, end of power, over the quantity a plus 1, plus c the quantity a is not equal to minus 1

It comes from d(xa+1)=(a+1) xa dxd(x^{a+1}) = (a+1)\,x^a\,dx, divided by a+1a + 1, which fails at a=−1a = -1 (the transcript says "a=1a = 1" at that point; it means −1-1). That exceptional case is the logarithm (p. 4):

The exceptional power
∫dxx=ln⁡∣x∣+c\int \frac{dx}{x} = \ln|x| + c
In words

the integral of d x over x equals log the absolute value of x plus c

The absolute value makes it right for negative xx too: for x<0x < 0, ln⁡∣x∣=ln⁡(−x)\ln|x| = \ln(-x), and by the chain rule ddxln⁡(−x)=1−x⋅(−1)=1x\frac{d}{dx}\ln(-x) = \frac{1}{-x}\cdot(-1) = \frac1x (p. 4; notes, p. 2, which label this the proof of "Property 2" but mean the logarithm formula). The rest of the lecture's list (p. 5; notes, p. 2):

Three more
∫sec⁡2x dx=tan⁡x+c,∫dx1−x2=sin⁡−1x+c,∫dx1+x2=tan⁡−1x+c\int \sec^2 x\,dx = \tan x + c, \qquad \int\frac{dx}{\sqrt{1 - x^2}} = \sin^{-1}x + c, \qquad \int\frac{dx}{1 + x^2} = \tan^{-1}x + c
In words

the integral of secant squared x d x equals tan x plus c, the integral of d x over the square root of 1 minus x squared, end of root, equals inverse sine x plus c, the integral of d x over the quantity 1 plus x squared, equals inverse tan x plus c

For a while you will sometimes integrate when you meant to differentiate, and the other way round; practice fixes it, and helps you remember the derivative formulas too (p. 5).

Only a constant#

Adding a constant is not just one freedom: it is the only one (transcript, pp. 5–6; notes, p. 3).

Uniqueness up to a constant
F′=G′  ⇒  F(x)=G(x)+cF' = G' \;\Rightarrow\; F(x) = G(x) + c
In words

capital F prime equals capital G prime which gives capital F (x) equals capital G (x) plus c

Source: 18.01 Lecture 15 transcript, pp. 5–6

Proof: (F−G)′=F′−G′=0(F - G)' = F' - G' = 0, and by the previous lecture a function with zero derivative is constant. The lecture calls this the reason calculus makes sense: the rate of change determines the function, once you know where it starts (p. 6).

The method of substitution#

Integration is much harder than differentiation, and sometimes impossible in formulas; for now there is one method (transcript, p. 6). Take ∫x3(x4+2)5 dx\int x^3(x^4 + 2)^5\,dx. Expanding the fifth power would be a mess. Instead let uu be the messiest part (pp. 6–7; notes, p. 3):

Substitution
u=x4+2,  du=4x3 dx:∫x3(x4+2)5 dx=∫u5 du4=u624+c=(x4+2)624+cu = x^4 + 2,\ \ du = 4x^3\,dx: \quad \int x^3(x^4 + 2)^5\,dx = \int u^5\,\frac{du}{4} = \frac{u^6}{24} + c = \frac{(x^4 + 2)^6}{24} + c
In words

u equals x to the power 4 plus 2, d u equals 4 x cubed d x: the integral of x cubed the quantity x to the power 4 plus 2, all to the power 5 d x equals the integral of u to the power 5 d u over 4 equals u to the power 6 over 24 plus c equals the quantity x to the power 4 plus 2, all to the power 6 over 24 plus c

Source: 18.01 Lecture 15 transcript, pp. 6–7

The last step matters: the problem was posed in xx, so the answer must be too. (The lecturer first says 120\tfrac1{20}, then corrects it to 124\tfrac1{24}.)

Advanced guessing#

With practice you can see two steps ahead: guess the answer, differentiate it, and fix the constant factor (transcript, pp. 7–8; notes, pp. 3–4). The lecture recommends this over substitution for simple cases:

  • ∫x dx1+x2\int \dfrac{x\,dx}{\sqrt{1 + x^2}}: guess (1+x2)1/2(1 + x^2)^{1/2}; its derivative is 12(1+x2)−1/2⋅2x\tfrac12(1 + x^2)^{-1/2}\cdot 2x, exactly right, so the answer is 1+x2+c\sqrt{1 + x^2} + c (p. 7).
  • ∫e6x dx\int e^{6x}\,dx: the guess e6xe^{6x} differentiates to 6e6x6e^{6x}, so the answer is 16e6x+c\tfrac16 e^{6x} + c (p. 7).
  • ∫xe−x2 dx\int x e^{-x^2}\,dx: the guess e−x2e^{-x^2} differentiates to −2xe−x2-2x e^{-x^2}, off by −2-2, so the answer is −12e−x2+c-\tfrac12 e^{-x^2} + c. Write the check out: people who skip it make sign and factor mistakes (pp. 7–8).
Worked example

Three antiderivatives

Find ∫x2(x3+1)4 dx\int x^2(x^3 + 1)^4\,dx, ∫cos⁡3x dx\int \cos 3x\,dx and ∫xx2+4 dx\int \dfrac{x}{x^2 + 4}\,dx.

Substitution

u=x3+1u = x^3 + 1, du=3x2 dxdu = 3x^2\,dx: ∫u4 du3=u515+c=(x3+1)515+c\int u^4\,\dfrac{du}{3} = \dfrac{u^5}{15} + c = \dfrac{(x^3 + 1)^5}{15} + c.

Guess and check

Guess sin⁡3x\sin 3x: its derivative is 3cos⁡3x3\cos 3x, so ∫cos⁡3x dx=13sin⁡3x+c\int\cos 3x\,dx = \tfrac13\sin 3x + c.

A logarithm

Guess ln⁡(x2+4)\ln(x^2 + 4): its derivative is 2xx2+4\dfrac{2x}{x^2 + 4}, twice too big, so the answer is 12ln⁡(x2+4)+c\tfrac12\ln(x^2 + 4) + c (no absolute value needed, as x2+4>0x^2 + 4 > 0).

Two answers, one family#

∫sin⁡xcos⁡x dx\int \sin x\cos x\,dx has two natural guesses (transcript, pp. 8–9; notes, p. 4). 12sin⁡2x\tfrac12\sin^2 x differentiates to sin⁡xcos⁡x\sin x\cos x, and so does −12cos⁡2x-\tfrac12\cos^2 x. Both are right. Their difference is

The two answers differ by a constant
12sin⁡2x−(−12cos⁡2x)=12(sin⁡2x+cos⁡2x)=12\tfrac12\sin^2 x - \left(-\tfrac12\cos^2 x\right) = \tfrac12\left(\sin^2 x + \cos^2 x\right) = \tfrac12
In words

one half sine squared x minus (- one half cos squared x ) equals one half the quantity sine squared x plus cos squared x, equals one half

not zero but a constant, so the two families 12sin⁡2x+c1\tfrac12\sin^2 x + c_1 and −12cos⁡2x+c2-\tfrac12\cos^2 x + c_2 are the same set of functions, with c2−c1=12c_2 - c_1 = \tfrac12 (p. 9; the lecture says c1−c2=12c_1 - c_2 = \tfrac12, but setting the two equal gives c2−c1=12c_2 - c_1 = \tfrac12, as in the notes' 12sin⁡2x−12=−12cos⁡2x\tfrac12\sin^2 x - \tfrac12 = -\tfrac12\cos^2 x). Two antiderivatives that look different may still be the same; checking can take a trigonometric identity.

The lecture ends with a substitution: in ∫dxxln⁡x\int \dfrac{dx}{x\ln x}, u=ln⁡xu = \ln x has the simpler differential du=dx/xdu = dx/x, so the integral is ∫du/u=ln⁡u+c=ln⁡(ln⁡x)+c\int du/u = \ln u + c = \ln(\ln x) + c (transcript, p. 9; notes, p. 4). This needs x>1x > 1, so that ln⁡x>0\ln x > 0 (the notes say x>0x > 0); otherwise write ln⁡∣ln⁡x∣\ln|\ln x|, as the lecture remarks.

Summary#

  • Differentials: dy=f′(x) dxdy = f'(x)\,dx. In a linear approximation, Δy≈dy\Delta y \approx dy when dx=Δxdx = \Delta x; for example 64.11/3≈4+1/48064.1^{1/3} \approx 4 + 1/480.
  • ∫g(x) dx=G(x)\int g(x)\,dx = G(x) means G′=gG' = g: the antiderivative or indefinite integral, defined up to + c+\,c.
  • Basic antiderivatives: ∫sin⁡x dx=−cos⁡x\int\sin x\,dx = -\cos x, ∫xa dx=xa+1/(a+1)\int x^a\,dx = x^{a+1}/(a+1) for a≠−1a \ne -1, ∫dx/x=ln⁡∣x∣\int dx/x = \ln|x|, ∫sec⁡2x dx=tan⁡x\int\sec^2 x\,dx = \tan x, ∫dx/1−x2=sin⁡−1x\int dx/\sqrt{1 - x^2} = \sin^{-1}x, ∫dx/(1+x2)=tan⁡−1x\int dx/(1 + x^2) = \tan^{-1}x.
  • If F′=G′F' = G', then F=G+cF = G + c: the constant is the only ambiguity (from the mean value theorem).
  • Substitution: uu = the messiest part, rewrite in uu, integrate, return to xx. Or guess, differentiate, and fix the factor.

Symbols on this page

Show the 31 symbols used here
Δ\Delta capital delta.
A change or difference in a quantity, e.g. Δx = x₂ − x₁. Say it: “capital delta”.
≈\approx approximately equal.
Is approximately equal to. Say it: “is approximately”.
∝\propto proportional to.
Is proportional to: doubling one doubles the other. Say it: “is proportional to”.
≠\neq not equal.
Is not equal to. Say it: “is not equal to”.
⇒\Rightarrow implies.
Implies: what follows is a consequence of what came before. Say it: “which gives”.
⋅\cdot dot.
Times (multiplication). Between two vectors: the dot product. Say it: “times”.
∫\int integral.
Integral: the sum of infinitely many small pieces, such as the area under a curve. Say it: “the integral of”.
sin⁡\sin sine.
Sine of an angle. Say it: “sine”.
cos⁡\cos cosine.
Cosine of an angle. Say it: “cos”.
tan⁡\tan tangent.
Tangent of an angle, sin/cos. Say it: “tan”.
ln⁡\ln natural logarithm.
Natural logarithm (base e ≈ 2.718). Say it: “log”.
aa a.
The exponent in x^a (or, in the linear approximation, the base point a = 64); in the cosmology note, a(t) is the scale factor of the universe. Say it: “a”.
GG G.
An antiderivative of g: G′ = g. Say it: “capital G”.
cc c.
An arbitrary constant added to an antiderivative. Say it: “c”.
xx x.
The variable. Say it: “x”.
yy y.
The value of the function, y = f(x). Say it: “y”.
tt t.
In the cosmology note, cosmic time since the big bang. Say it: “t”.
dd d.
As in dx and dy: a differential, an infinitesimally small change; dy = f′(x) dx. In ∫ g(x) dx the dx names the variable of integration. Say it: “d”.
ee e.
Euler's number, e ≈ 2.718, the base of the exponential eˣ. Say it: “e”.
ff f.
A function of x. Say it: “f”.
gg g.
The function being integrated (the integrand). Say it: “g”.
FF F.
An antiderivative; F′ = G′ means F and G are antiderivatives of the same function. Say it: “capital F”.
CC C.
In the cosmology note, the constant in ȧ = C/√a. Say it: “capital C”.
f′f' f prime.
The derivative of f. Say it: “f prime”.
uu u.
The new variable in a substitution, usually the messiest part of the integrand. Say it: “u”.
a˙\dot{a} a dot.
The rate of change of a with time, ȧ = da/dt: how fast the scale factor grows. Say it: “a dot”.
sec⁡\sec secant.
The secant, sec x = 1/cos x. Say it: “secant”.
G′G' G prime.
The derivative of G. Say it: “capital G prime”.
F′F' F prime.
The derivative of F. Say it: “capital F prime”.
c1c_{1} c one.
The constant of the first answer, ½ sin²x + c₁. Say it: “c one”.
c2c_{2} c two.
The constant of the second answer, −½ cos²x + c₂. Say it: “c two”.

Tap or click a symbol in a formula to see the same explanation. All symbols: symbols and notation.

Words on this page

Show the 25 words used here

New here

integration.
Finding an integral: adding up very many small pieces, or finding an antiderivative.
differential.
A tiny change in a variable, such as dx, or the matching change in a function along its tangent line, dy = f′(x) dx.
antiderivative.
A function whose derivative is the given function; any two antiderivatives differ only by a constant.
indefinite integral.
The family of all antiderivatives of a function, written ∫ f(x) dx = F(x) + c with an arbitrary constant c.

Also used

mean value theorem.
If a function is smooth between two points, somewhere between them its slope equals its average slope over the whole interval. Explained in The mean value theorem and inequalities.
integral.
A sum of very many very small pieces, such as the area under a graph; it undoes taking a derivative. Explained in Rates of change and area under a graph.
p..
Page, in a reference to a source; pp. means pages, as in pp. 3–5.
derivative.
The rate at which a function changes as its input changes: the slope of its graph at a point. Explained in Position and velocity in one dimension.
tangent.
A straight line that touches a curve at a point and runs in the same direction as the curve there. Explained in Angles, radians and trigonometry.
linear approximation.
Replacing a function near a point by the straight line, or flat plane, that best matches it there, using its first derivatives. Explained in Change of variables in double integrals.
differentiation.
Finding a derivative: working out how fast a function changes. Explained in The derivative: slope of the tangent line and rate of change.
logarithm.
The power to which a fixed base must be raised to give a number: log₁₀ 1000 = 3 because 10³ = 1000. Explained in Exponentials and logarithms.
chain rule.
The rule for the derivative of a function of a function: multiply the derivative of the outer one by that of the inner one. Explained in Circular motion: polar coordinates, position and velocity.
proof.
A chain of reasoning showing beyond doubt that a statement follows from definitions and results already known. Explained in Limits and continuity.
rate of change.
How fast one quantity changes compared with another, often time: the change in the first divided by the change in the second. Explained in Rates of change and area under a graph.
flat universe.
A universe with exactly the critical density, whose space has no curvature and which expands forever, ever more slowly. Explained in Open, closed and flat universes.
Friedmann equation.
The equation that gives the expansion rate of a uniform universe from its density and the curvature of space. Explained in Towards the universe: will an expanding ball of matter stop?.
matter-dominated.
Of a universe or era: one in which matter supplies most of the energy density, so it controls the expansion. Explained in Matter–radiation equality and the pressure of light.
power rule.
The rule that the derivative of xⁿ is n xⁿ⁻¹; read backwards, it integrates powers of x.

Academic

notation.
A system of symbols used to write ideas down briefly, such as dy/dx for a derivative.
transcript.
A written record of exactly what was said in a recorded lecture, word for word.
formally.
Following the rules or symbols exactly as written, sometimes without checking that each step makes sense.
approximation.
Close to, but not exactly, the true value; an approximation is such a value or formula, chosen because it is simpler.
ambiguous.
Open to more than one meaning, so it is unclear which is intended.
messy.
In calculations, long and complicated, with many terms, though not hard in principle.

Tap or click a word, here or in the text, for its meaning in this lesson. All words: the glossary. How many words are marked in the text: Reading options (the “Aa” button).

Where this leads

In cosmology

34 more cosmology pages that build on this

Pages that build on this

Practise

Check your understanding

  1. With y=xy = \sqrt x, what is dydy at x=100x = 100?
  2. ∫xa dx=xa+1a+1+c\int x^a\,dx = \dfrac{x^{a+1}}{a+1} + c holds for…
  3. F′=G′F' = G' on an interval. Then…
  4. ∫xe−x2 dx=\int x e^{-x^2}\,dx =
  5. One student finds ∫sin⁡xcos⁡x dx=12sin⁡2x+c\int \sin x\cos x\,dx = \tfrac12\sin^2 x + c, another −12cos⁡2x+c-\tfrac12\cos^2 x + c. Who is right?
0 of 5 answered

Flashcards

1 / 4