Integration as the inverse of differentiation, why every integral carries an arbitrary constant, the first standard forms, and the logarithm as the integral of 1/x.
So far in this chapter we have been given a function ϕ and asked for its derivative ϕ′. Now Hardy turns the question round: given a function ψ, find a function ϕ with ϕ′=ψ. This is integration in Hardy’s first sense. The question has three separate parts (does a solution exist, how many are there, and how do we write one down), and they have very different answers. One of them forces a new function on us: the logarithm.
The idea
Differentiation is a machine that always runs forward. Feed it x3/3−x and out comes x2−1. Integration asks the machine to run backwards: we see the output x2−1 and want an input. Two difficulties appear at once.
The first is that the machine forgets constants. The functions x3/3−x, x3/3−x+1 and x3/3−x−7 all have the same derivative, because adding a constant shifts a graph up or down without changing its slope anywhere. So the backwards question never has just one answer. The real question is whether it has only these answers.
ExploreA family of integrals
Try this.The upper plot shows ψ(x)=x2−1. The lower plot shows several functions whose derivative is ψ. Drag the black anchor point anywhere: the bold curve is the integral that passes through it. Then move the probe p with the slider, and compare the purple tangents.
ψ(x)=x2−1 and its integrals ϕ(x)+C=31x3−x+C
xψ(x)
xφ(x) + C
ψ, the given function
integrals φ + C (bold: yours)
anchor (drag)
tangents at x = p
The curve through (0,0.5) is 31x3−x+0.5. At x=1.5 every member has slope ψ(1.5)=1.25.
What to notice
Every curve in the family is a vertical translate of every other, so at a given x they all have the same slope ψ(p): the tangents are parallel. Choosing one point the curve must pass through picks out exactly one member. Switch to cosx and 1/(1+x2): the same picture every time.
The second difficulty is that running the machine backwards may be impossible, or possible only with functions we have not met yet. We know (Ex. XLII. 4 in Hardy) that 1/x is not the derivative of any polynomial or rational function. If 1/x has an integral at all, it must be a new kind of function.
Precise statements
DefinitionIntegral, integrationHardy: §130
If ϕ′(x)=ψ(x), then ϕ is called an integral (or integral function) of ψ, and the process of finding ϕ from ψ is called integration. We write
ϕ(x)=∫ψ(x)dx.
The symbol ∫…dx is, for now, purely an operator, like d/dx. Neither ∫ nor dx means anything by itself. Its connection with areas and sums comes in §148 and Chapter VII.
Hardy splits the problem into three questions.
Existence. Is there any ϕ with ϕ′=ψ? Not always. A function with a jump, such as one equal to a for x<0, b at 0 and c for x>0 with a,b,c not all equal, is the derivative of nothing: by Darboux’s theorem (§129) a derivative cannot jump. But if ψ is continuous, an integral always exists. Hardy proves this in Chapter VII, by way of the definite integral; until then we take it on trust.
Uniqueness. If ϕ is one integral, every other has the form ϕ+C. This is the next theorem.
Finding a formula. This is the practical art that fills the rest of the chapter. It is much harder than differentiation, and sometimes impossible with the functions available.
TheoremIntegrals differ by constantsHardy: §130 (2)
Let ϕ be an integral of ψ on an interval I. Then ϕ+C is an integral of ψ on I for every constant C, and every integral of ψ on I is of this form.
The words “on an interval” matter. The function ψ(x)=1/x is defined on two intervals, x<0 and x>0, and on each of them separately its integrals are fixed up to a constant, but the two constants have nothing to do with each other.
The standard forms
Reading the derivatives of §§117–120 backwards gives the first table of integrals. Each formula gives one integral; the most general one adds an arbitrary constantC.
Here m is rational, and for fractional m we work where xm is defined, for instance x>0. Each formula is checked by differentiating the right-hand side.
The first formula breaks down for m=−1, where it would divide by zero. This is not an accident of notation: no polynomial or rational function has derivative 1/x.
The logarithmic function
Hardy now assumes, until Chapter VII proves it, that some function has derivative 1/x for x>0. The area under 1/t from 1 to x is a natural candidate, and the widget below shows numerically that its slope is 1/x.
ExploreA function whose slope is 1/x
Try this.Drag x along the axis and compare the slope of the lower curve with the height of the upper one. Then drag x to the left of 1.
F(x)=∫axt1dt, a=1
tf(t)
xF(x)
f(t)
counts +
counts −
F(x)
x (drag)
F(2.5)=∫12.5t1dt=0.91629. Slope of F at x: F′(x)=f(x)=0.4.
What to notice
The lower curve F(x) is 0 at x=1 and has slope exactly 1/x everywhere, so it is an integral of 1/x. For x<1 the area is counted negatively, so F(x)<0 there. This F is the logarithm. Hardy only assumes, here, that such a function exists; Chapter IX builds it this way.
DefinitionThe logarithmic functionHardy: §131
For x>0, logx denotes the integral of 1/x (fixed so that log1=0):
∫xdx=logx(x>0).
For negative x, the chain rule gives dxdlog(−x)=−x−1=x1, so log(−x) is an integral of 1/x on x<0. The two cases combine into one formula:
TheoremThe integral of 1/xHardy: §131 (4), (5)
For every real x=0,
∫xdx=log∣x∣,
in the sense that dxdlog∣x∣=x1 for all x=0.
Hardy also quotes, ahead of their proof in Chapter IX, the rules log1=0, log(1/x)=−logx and logxy=logx+logy. Nothing in this chapter depends on them; they only make answers shorter.
ExploreTwo intervals, two constants
Try this.Here ψ(x)=1/x. There is an anchor on each side of the axis. Drag them independently, so that the bold curve on the left and the bold curve on the right come from different members of the family.
ψ(x)=x1 and its integrals ϕ(x)+C=log∣x∣+C
xψ(x)
xφ(x) + C
ψ, the given function
integrals φ + C (bold: yours)
anchor (drag)
tangents at x = p
Your integral is log∣x∣+0 for x<0 and log∣x∣+1.5 for x>0. The two constants differ, yet its derivative is 1/x at every x ≠ 0. At x=2 every member has slope ψ(2)=0.5.
What to notice
The function you have built is differentiable at every x=0 with derivative 1/x, so it is an integral of 1/x. But it is not log∣x∣+C for any single C. The uniqueness theorem holds on each interval separately, and R∖{0} is not an interval.
Proofs
ProofIntegrals differ by constants
Strategy
One direction is a one-line check. For the other, look at the difference of two integrals: its derivative is zero, and the mean value theorem says a function with zero derivative on an interval is constant (§127).
ϕ+C is an integral
The derivative of a constant is 0, so (ϕ+C)′=ϕ′=ψ on I.
Take any other integral χ and form δ=χ−ϕ
Both χ and ϕ are differentiable on I with derivative ψ, so δ′=ψ−ψ=0 at every point of I.
δ is constant on I
Take any two points a<b of I. Because I is an interval, all of [a,b] lies in I, so δ is continuous on [a,b] and differentiable inside. The mean value theorem gives δ(b)−δ(a)=(b−a)δ′(ξ)=0 for some ξ between a and b.
Conclude
So δ takes the same value C at every point of I, and χ=ϕ+C.
∎
The third step is where “interval” is used. For 1/x on R∖{0} the points a=−1, b=1 do not have [a,b] inside the domain, and the argument (rightly) fails.
Prooflog∣x∣ is an integral of 1/x for every x=0
Strategy
Treat the two signs of x separately; on each side ∣x∣ is a simple formula.
x>0
Then ∣x∣=x near x, so dxdlog∣x∣=dxdlogx=x1 by the definition of log.
x<0
Then ∣x∣=−x near x. By the chain rule (§114), with u=−x>0, dxdlog(−x)=u1⋅(−1)=−x−1=x1.
∎
Worked examples and exercises
ExerciseA jump has no integral●●○Hardy: §130; Examples XLVII, 5
Let ψ(x)=a for x<0, ψ(0)=b, ψ(x)=c for x>0. Show that there is a function ϕ with ϕ′=ψ everywhere only when a=b=c.
Hint
If a=b=c, write one down. Otherwise, suppose ϕ exists and look at ϕ on x>0 and on x<0 separately.
Hint
On x>0, ϕ(x)=cx+C1; on x<0, ϕ(x)=ax+C2. Continuity at 0 and the one-sided difference quotients do the rest.
Solution
If a=b=c, then ϕ(x)=ax works.
Conversely, suppose ϕ′=ψ everywhere. On the interval x>0, ϕ and cx have the same derivative, so ϕ(x)=cx+C1 there; likewise ϕ(x)=ax+C2 for x<0. A differentiable function is continuous, so ϕ(0)=limx→0+ϕ(x)=C1 and ϕ(0)=limx→0−ϕ(x)=C2. Hence for h>0, {ϕ(h)−ϕ(0)}/h=c, and for h<0 it equals a. The derivative at 0 exists only if these agree, so a=c, and then ϕ′(0)=c, which must equal b. So a=b=c.
(Darboux’s theorem, §129, gives the same conclusion at once: a derivative takes every value between any two of its values, and ψ does not.)
Exercise1/x is not the derivative of a rational function●●●Hardy: §131; Examples XLII, 4
Show that there is no rational function R with R′(x)=1/x.
Hint
Write R in partial fractions, as in §118: a polynomial plus terms A/(x−α)p with p≥1 (the α may be complex).
Hint
Differentiate term by term. Can a term with p=1 appear in R′?
Solution
Write R(x)=Π(x)+∑Aα,p/(x−α)p, with Π a polynomial, the sum finite, p≥1 and every Aα,p=0. Then
R′(x)=Π′(x)−∑(x−α)p+1pAα,p.
This is again a partial-fraction expression: a polynomial plus terms with exponents p+1≥2. The expression of a rational function in partial fractions is unique, so the expression for R′ contains no term with exponent 1. But 1/xis a single term with exponent 1 and α=0. Hence R′=1/x.
ExerciseTwo answers that look different●○○Hardy: §131
Show that arcsinx and −arccosx are both integrals of 1/1−x2 on −1<x<1, and find the constant by which they differ.
Hint
Differentiate both. Then compare their values at one convenient point.
Solution
For −1<x<1 we have dxdarcsinx=1−x21 and dxdarccosx=−1−x21 (principal values). So both are integrals, and on the interval (−1,1) they differ by a constant. At x=0: arcsin0−(−arccos0)=0+21π. So arcsinx=−arccosx+21π, the familiar identity arcsinx+arccosx=21π.
ExerciseDifferent constants on different intervals●●○Hardy: §130 (2)
Show that arctan(−1/x) is an integral of 1/(1+x2) for x=0. By how much does it differ from arctanx on x>0, and on x<0?
Hint
Chain rule: the derivative of −1/x is 1/x2.
Hint
To find each constant, evaluate both functions at x=1 and at x=−1.
Solution
For x=0,
dxdarctan(−x1)=1+1/x21⋅x21=x2+11.
So on each of the intervals x>0 and x<0, arctanx−arctan(−1/x) is constant. At x=1 it is 41π−(−41π)=21π; at x=−1 it is −41π−41π=−21π. The two “constants of integration” differ. The function arctan(−1/x) even has a jump of size π at 0, where it is undefined, while arctanx is smooth across 0.
ExerciseFixing the constant●○○Hardy: §131
Find the integral ϕ of ψ(x)=3x2−2sinx with ϕ(0)=4.
Hint
Use the standard forms and add C; then put x=0.
Solution
The general integral is x3+2cosx+C. At x=0 this is 2+C, so C=2 and ϕ(x)=x3+2cosx+2. Check: ϕ′(x)=3x2−2sinx and ϕ(0)=0+2+2=4.
Check yourself
Check yourselfTrue or false?
The function equal to log∣x∣ for x<0 and to log∣x∣+5 for x>0 is an integral of 1/x.
Why
True. At every x=0 it is differentiable with derivative 1/x, which is all the definition asks. It is not of the form log∣x∣+C, but that does not contradict the uniqueness theorem, which applies on an interval.
Check yourselfChoose one
Which of these is not an integral of 2sinxcosx?
Why
The first three differ from each other by constants (−cos2x=sin2x−1 and −21cos2x=sin2x−21), and sin2x has derivative 2sinxcosx. But dxdsin2x=2cos2x. Different-looking answers to an integration problem are often all correct: differentiate to check.
Check yourselfEnter a number
ϕ is an integral of 3x2 whose graph passes through (1,5). What is ϕ(2)?
Why
ϕ(x)=x3+C and 1+C=5, so C=4 and ϕ(2)=8+4=12.
Check yourselfChoose one
Which statement about ψ(x)=[x] (the integral part of x) is correct?
Why
At an integer n, [x] jumps from n−1 to n. A derivative cannot jump (Darboux’s theorem, or the exercise on jumps above), so no ϕ has ϕ′=[x] across such a point. Boundedness is not enough; Hardy’s existence theorem needs continuity. (The area under [x] still makes sense; it is a continuous function that fails to be differentiable at the integers.)
Hardy’s language
If ψ(x) is the derivative of ϕ(x), then we call ϕ(x) an integral or integral function of ψ(x). The operation of forming ϕ(x) from ψ(x) we call integration.
— G. H. Hardy, §130
Summary
Summary
An integral of ψ is a function ϕ with ϕ′=ψ. Existence, uniqueness and finding a formula are three separate questions.
A function with a jump has no integral; a continuous function always has one (proved in Chapter VII).
On an interval, any two integrals differ by a constant: the mean value theorem in disguise. On a union of intervals, each piece has its own constant.
The standard forms come from reading derivatives backwards. xm integrates to xm+1/(m+1) except when m=−1.
∫dx/x=log∣x∣, where log is a new function, not rational and not algebraical, whose existence Hardy assumes for now.