Why every integral ∫R(x,ax2+2bx+c)dx can be rationalised (a line through a point of a conic meets it once more), and the standard forms for 1/X and (λx+μ)/X.
The most common algebraical integrands contain a square root of a quadratic, y=ax2+2bx+c. Hardy shows that such integrals can always be rationalised, for a geometric reason: the graph of y is a conic, and a conic can be traced out by points whose coordinates are rational functions of one parameter. In practice the theory boils down to three standard integrals, ∫dt/t2+α2, ∫dt/t2−α2 and ∫dt/α2−t2, and the routine of completing the square to reach them.
The idea
Let y2=1−x2: the unit circle. We want x and y as rational functions of a parameter t. The angle θ is no good: x=cosθ is not rational in θ. Here is a better parameter. Fix one point of the circle, S=(−1,0), and draw the line through S with slope t. It meets the circle in exactly one more point P. To find P, substitute y=t(x+1) into x2+y2=1:
x2+t2(x+1)2=1⟺(x+1){(1+t2)x−(1−t2)}=0.
One root, x=−1, is the known point S. The other comes from a linear equation, so it is a rational function of t:
x=1+t21−t2,y=t(x+1)=1+t22t.
The same works for any conic and any point on it: the equation for the intersections is quadratic, one root is known, so the other is rational.
ExploreLines through a point of a conic
Try this.Move t and watch the second intersection P(t) run round the circle. Where is P when t=0? When t is large and positive, or large and negative? Then choose the hyperbola, and the parabola, and look for values of t that give no second point.
x2+y2=1 cut by the line y=t(x+1)
xy
the conic
fixed point (ξ, η)
line of slope t
the other intersection P(t)
x=1+t21−t2,y=1+t22t. At t=0.6, P=(0.4706,0.8824).
What to notice
Each t gives one point P(t), and every point of the circle except S itself is reached; S is the limit as t→±∞. For the hyperbola the line has no second intersection when its slope is ±1, the slopes of the asymptotes; there the denominator 1−t2 vanishes. For the parabola it is t=0, the direction of its axis.
Precise statements
TheoremRationalising integrals connected with a conicHardy: §137
Let x and y be connected by ax2+2hxy+by2+2gx+2fy+c=0, and let (ξ,η) be a point of this conic. Put X=x−ξ, Y=y−η, G=aξ+hη+g and F=hξ+bη+f. Then on the line Y=tX the second point of the conic is
X=−a+2ht+bt22(G+Ft),Y=−a+2ht+bt22t(G+Ft).
So x and y are rational functions of t, and ∫R(x,y)dx is the integral of a rational function of t.
When the conic is a hyperbola there is a second, often neater, choice: instead of lines through a point, take lines parallel to an asymptote. Each meets the hyperbola in just one finite point (the other intersection has gone to infinity), which is again rational in the line’s intercept. Hardy applies this to the case that matters most.
ExploreLines parallel to an asymptote
Try this.This is the hyperbola y2=x2+1 cut by the lines y+x=t, which are parallel to the asymptote y=−x. Move t through positive and negative values, and towards 0.
y2=x2+1 cut by the line y+x=t
xy
the conic
line parallel to the asymptote y = −x
the other intersection P(t)
x=2tt2−1,y=2tt2+1. At t=1.8, P=(0.6222,1.178).
What to notice
Each line meets the curve exactly once: positive t give the upper branch, negative t the lower one, and as t→0 the point runs off to infinity along the asymptote. From t2−2tx=1 we get x=(t2−1)/2t and y=(t2+1)/2t, rational in t; moreover t=x+y, which explains the log(x+y) in the next theorem.
TheoremThe integral of 1/ax2+2bx+c, a>0Hardy: §138 (1)
The third looks quite unlike the first two. Hardy remarks that the connection (logarithms and inverse sines are the same function in the complex plane) will only be clear after Chapter X.
Reducing to the standard forms (§139). For any quadratic X=ax2+2bx+c, complete the square. If a>0, put t=xa+b/a, so that X=t2+κ with κ=(ac−b2)/a, and ∫dx/X=a−1/2∫dt/t2+κ. If a<0, put A=−a and t=xA−b/A; then X=−κ−t2 and we reach ∫dt/α2−t2. For a numerator λx+μ, split off a multiple of X′:
TheoremLinear numerator over XHardy: §139
With X=ax2+2bx+c,
∫Xλx+μdx=aλX+(μ−aλb)∫Xdx.
In the same way (§140), ∫(λx+μ)Xdx=3aλX3/2+(μ−aλb)∫Xdx, and ∫Xdx reduces to ∫t2±α2dt or ∫α2−t2dt. Those three need one more tool, integration by parts, and are done in the next lesson.
Proofs
ProofRationalising a conic (§137)
Strategy
Move the origin to the known point, so that the equation has no constant term. On a line through the new origin the equation then has the root X=0 and one other root, which we find by dividing by X.
Shift to (ξ,η)
Substituting x=ξ+X, y=η+Y gives aX2+2hXY+bY2+2GX+2FY+k=0, where k is the left side of the conic’s equation at (ξ,η), which is 0 because the point lies on the conic. The linear coefficients are 2G and 2F as defined.
Restrict to the line Y=tX
We get X2(a+2ht+bt2)+2X(G+Ft)=0.
Divide by X
Apart from X=0 (the point we started from), the solution is X=−2(G+Ft)/(a+2ht+bt2), and Y=tX. Both are rational in t, and so are x=ξ+X, y=η+Y and dx/dt.
Apply rationalisation
By the rationalisation theorem of §136, ∫R(x,y)dx=∫R{x(t),y(t)}x′(t)dt, the integral of a rational function of t. (Where a+2ht+bt2=0 the line has no second finite intersection: these are the asymptotic directions, finitely many values of t.)
∎
ProofThe integral of 1/y (§138)
Strategy
Use lines parallel to an asymptote: put t=y+xa. Find x, y and dx/dt in terms of t; the integrand 1/y times dx/dt will turn out to be a simple rational function. (Alternatively, just differentiate the answer.)
Solve for x
From y=t−xa and y2=ax2+2bx+c: t2−2txa=2bx+c, so x=2(ta+b)t2−c.
Compute y and dx/dt
Then y=t−xa=2(ta+b)t2a+2bt+ca, and differentiating x by the quotient rule, dtdx=2(ta+b)2t2a+2bt+ca.
The integrand in t
So y1dtdx=ta+b1, and ∫ydx=∫ta+bdt=a1log∣ta+b∣.
Back to x
ta+b=a(xa+y+b/a), and log∣au∣=loga+log∣u∣ differs from log∣u∣ by a constant. This gives the formula.
∎
The standard forms follow: a=1, b=0, c=±α2 gives the two logarithms, and arcsin(x/α) is checked by differentiating, α1⋅1−x2/α21=α2−x21 for α>0.
ProofLinear numerator over X (§139)
Strategy
Write the numerator as a multiple of X′ plus a constant.
Split the numerator
X′=2(ax+b), and λx+μ=aλ(ax+b)+μ−aλb.
Integrate the first part
dxdX=2XX′=Xax+b, so ∫Xax+bdx=X. The constant part is left as ∫dx/X.
∎
Worked examples and exercises
ExerciseRationalising the circle by hand●●○Hardy: §137
Use x=1+t21−t2, y=1+t22t to compute ∫1−x2dx for −1<x<1, and reconcile your answer with arcsinx.
Hint
Compute dx/dt and simplify y1dtdx. Here t>0 corresponds to y>0.
Hint
To return to x: t=y/(x+1)=(1−x)/(1+x).
Solution
dtdx=(1+t2)2−2t(1+t2)−(1−t2)2t=(1+t2)2−4t, so y1dtdx=1+t2−2 and the integral is −2arctant=−2arctan1+x1−x.
This should differ from arcsinx by a constant on (−1,1). At x=0 it equals −2⋅41π=−21π, while arcsin0=0. So −2arctan(1−x)/(1+x)=arcsinx−21π. Two correct methods, two different-looking answers, one constant apart.
ExerciseChecking the standard forms●○○Hardy: §138
Verify by differentiation that log{x+x2+α2} is an integral of 1/x2+α2.
Hint
The derivative of x+x2+α2 is 1+x2+α2x. Put it over a common denominator.
Solution
Write s=x2+α2, so x+s>0. Then
dxdlog(x+s)=x+s1+x/s=x+s(s+x)/s=s1.
The same computation, with ∣⋅∣ inside the logarithm, handles log∣x+x2−α2∣ for ∣x∣>α.
ExerciseCompleting the square●○○Hardy: §139
Find (a) ∫3+2x−x2dx and (b) ∫x2+2x+52x+3dx.
Hint
(a) 3+2x−x2=4−(x−1)2. (b) Here X′=2x+2, so 2x+3=X′+1.
Solution
(a) With t=x−1 the integral is ∫dt/4−t2=arcsin2t, so the answer is arcsin2x−1 (for −1<x<3). The conic y2=3+2x−x2 is a circle of radius 2 centred at (1,0): it is the second example in the first widget.
(b) ∫XX′+1dx=2X+∫(x+1)2+4dx=2x2+2x+5+log{x+1+x2+2x+5}. This agrees with the formula of §139: λ=2, μ=3, a=b=1, so λ/a=2 and μ−λb/a=1.
ExerciseRationalising the denominator●○○Hardy: Examples XLIX, 7
If a>b, show that ∫x+a+x+bdx=3(a−b)2{(x+a)3/2−(x+b)3/2}.
Hint
Multiply numerator and denominator by x+a−x+b.
Solution
(x+a+x+b)(x+a−x+b)=(x+a)−(x+b)=a−b. So the integrand equals a−bx+a−x+b, and since ∫(x+a)1/2dx=32(x+a)3/2 the result follows. Sometimes an algebraic trick beats the general theory.
ExerciseTwo methods for 1/(x−a)(b−x)●●○Hardy: Examples XLIX, 4
Let a<b. Find ∫(x−a)(b−x)dx for a<x<b (i) by completing the square and (ii) by the substitution x=acos2θ+bsin2θ, 0<θ<21π, and show that the answers agree up to a constant.
Hint
(i) (x−a)(b−x)=41(b−a)2−{x−21(a+b)}2.
Hint
(ii) x−a=(b−a)sin2θ, b−x=(b−a)cos2θ, dx=2(b−a)sinθcosθdθ.
Solution
(i) With t=x−21(a+b) and α=21(b−a) the integral is ∫dt/α2−t2=arcsin(t/α)=arcsinb−a2x−a−b.
(ii) The integrand times dx/dθ is (b−a)sinθcosθ2(b−a)sinθcosθ=2, so the integral is 2θ=2arcsinb−ax−a.
Agreement: put s=(x−a)/(b−a)=sinθ. Then b−a2x−a−b=2s2−1=−cos2θ=sin(2θ−21π), and 2θ−21π lies in (−21π,21π), so the first answer is 2θ−21π. The two differ by the constant 21π.
Check yourself
Check yourselfChoose one
Why is the second intersection of a line Y=tX through a point of a conic a rational function of t?
Why
After shifting the known point to the origin there is no constant term, so X factors out and what remains is linear in X with coefficients polynomial in t. A conic is not in general the graph of a rational function (y=1−x2 is not), and a tangent line would meet it only at the known point.
Check yourselfEnter a number
Compute the increase of ∫dx/x2+1 from x=0 to x=1, to three decimals.
Why
log(x+x2+1) goes from log1=0 to log(1+2)≈0.8814.
Check yourselfChoose one
After completing the square, ∫x2−6x+5dx (for x>5) is
Why
x2−6x+5=(x−3)2−4, of the form t2−α2, so the logarithmic form with t2−α2 applies. Arcsin needs α2−t2; arctan belongs to 1/(t2+α2) without a root; the last option completes the square wrongly.
Check yourselfTrue or false?
For the hyperbola y2=x2+1, the parameter of the line y+x=t is simply t=x+x2+1, which is why log{x+x2+1} appears in ∫dx/x2+1.
Why
True. In the proof of §138 with a=1, b=0 the integral in t is ∫dt/t=log∣t∣, and t=y+x.
Hardy’s language
The formula (3) appears very different from the formulae (2): the reader will hardly be in a position to appreciate the connection between them until he has read Ch. X.
— G. H. Hardy, §138
Summary
Summary
A line through a known point of a conic meets it in one more point, rational in the slope t. So ∫R(x,ax2+2bx+c)dx can always be rationalised.
For a hyperbola, lines parallel to an asymptote do the same job and lead to Hardy’s formula ∫dx/y=a−1/2log∣xa+y+b/a∣.
The working forms: ∫dx/x2±α2=log∣x+x2±α2∣ and ∫dx/α2−x2=arcsin(x/α).
In practice: complete the square to reach one of these; with a numerator λx+μ, first split off a multiple of X′, which integrates to a multiple of X.
Different methods give answers that differ by constants; check by differentiating.