Chapter VI · Derivatives and integrals

Integrals connected with conics

§§137–140 40 min

Why every integral ∫R(x,ax2+2bx+c) dx\int R(x, \sqrt{ax^2+2bx+c})\,dx can be rationalised (a line through a point of a conic meets it once more), and the standard forms for 1/X1/\sqrt{X} and (λx+μ)/X(\lambda x + \mu)/\sqrt{X}.

Why this matters

The most common algebraical integrands contain a square root of a quadratic, y=ax2+2bx+cy = \sqrt{ax^2 + 2bx + c}. Hardy shows that such integrals can always be rationalised, for a geometric reason: the graph of yy 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\int dt/\sqrt{t^2 + \alpha^2}, ∫dt/t2−α2\int dt/\sqrt{t^2 - \alpha^2} and ∫dt/α2−t2\int dt/\sqrt{\alpha^2 - t^2}, and the routine of completing the square to reach them.

The idea

Let y2=1−x2y^2 = 1 - x^2: the unit circle. We want xx and yy as rational functions of a parameter tt. The angle θ\theta is no good: x=cos⁡θx = \cos\theta is not rational in θ\theta. Here is a better parameter. Fix one point of the circle, S=(−1,0)S = (-1, 0), and draw the line through SS with slope tt. It meets the circle in exactly one more point PP. To find PP, substitute y=t(x+1)y = t(x+1) into x2+y2=1x^2 + y^2 = 1:

x2+t2(x+1)2=1  ⟺  (x+1){(1+t2)x−(1−t2)}=0.x^2 + t^2(x+1)^2 = 1 \iff (x + 1)\{(1+t^2)x - (1 - t^2)\} = 0 .

One root, x=−1x = -1, is the known point SS. The other comes from a linear equation, so it is a rational function of tt:

x=1−t21+t2,y=t(x+1)=2t1+t2.x = \frac{1-t^2}{1+t^2}, \qquad y = t(x + 1) = \frac{2t}{1+t^2} .

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.

Explore Lines through a point of a conic

Try this. Move tt and watch the second intersection P(t)P(t) run round the circle. Where is PP when t=0t = 0? When tt is large and positive, or large and negative? Then choose the hyperbola, and the parabola, and look for values of tt that give no second point.

x2+y2=1x^2 + y^2 = 1 cut by the line y=t(x+1)y = t(x+1)
xy
  • the conic
  • fixed point (ξ, η)
  • line of slope t
  • the other intersection P(t)
x=1−t21+t2,y=2t1+t2x = \dfrac{1-t^2}{1+t^2},\quad y = \dfrac{2t}{1+t^2}. At t=0.6t = 0.6, P=(0.4706, 0.8824)P = (0.4706,\ 0.8824).
What to notice

Each tt gives one point P(t)P(t), and every point of the circle except SS itself is reached; SS is the limit as t→±∞t \to \pm\infty. For the hyperbola the line has no second intersection when its slope is ±1\pm 1, the slopes of the asymptotes; there the denominator 1−t21 - t^2 vanishes. For the parabola it is t=0t = 0, the direction of its axis.

Precise statements

Theorem Rationalising integrals connected with a conic Hardy: §137

Let xx and yy be connected by ax2+2hxy+by2+2gx+2fy+c=0ax^2 + 2hxy + by^2 + 2gx + 2fy + c = 0, and let (ξ,η)(\xi, \eta) be a point of this conic. Put X=x−ξX = x - \xi, Y=y−ηY = y - \eta, G=aξ+hη+gG = a\xi + h\eta + g and F=hξ+bη+fF = h\xi + b\eta + f. Then on the line Y=tXY = tX the second point of the conic is

X=−2(G+Ft)a+2ht+bt2,Y=−2t(G+Ft)a+2ht+bt2.X = -\frac{2(G + Ft)}{a + 2ht + bt^2}, \qquad Y = -\frac{2t(G + Ft)}{a + 2ht + bt^2} .

So xx and yy are rational functions of tt, and ∫R(x,y) dx\int R(x, y)\,dx is the integral of a rational function of tt.

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.

Explore Lines parallel to an asymptote

Try this. This is the hyperbola y2=x2+1y^2 = x^2 + 1 cut by the lines y+x=ty + x = t, which are parallel to the asymptote y=−xy = -x. Move tt through positive and negative values, and towards 00.

y2=x2+1y^2 = x^2 + 1 cut by the line y+x=ty + x = t
xy
  • the conic
  • line parallel to the asymptote y = −x
  • the other intersection P(t)
x=t2−12t,y=t2+12tx = \dfrac{t^2-1}{2t},\quad y = \dfrac{t^2+1}{2t}. At t=1.8t = 1.8, P=(0.6222, 1.178)P = (0.6222,\ 1.178).
What to notice

Each line meets the curve exactly once: positive tt give the upper branch, negative tt the lower one, and as t→0t \to 0 the point runs off to infinity along the asymptote. From t2−2tx=1t^2 - 2tx = 1 we get x=(t2−1)/2tx = (t^2 - 1)/2t and y=(t2+1)/2ty = (t^2+1)/2t, rational in tt; moreover t=x+yt = x + y, which explains the log⁡(x+y)\log(x + y) in the next theorem.

Theorem The integral of 1/ax2+2bx+c1/\sqrt{ax^2+2bx+c}, a>0a > 0 Hardy: §138 (1)

If y=ax2+2bx+cy = \sqrt{ax^2 + 2bx + c} with a>0a > 0, then

∫dxy=1alog⁡∣xa+y+ba∣.\int \frac{dx}{y} = \frac{1}{\sqrt a}\log\left|x\sqrt a + y + \frac{b}{\sqrt a}\right| .
Corollary Three standard forms Hardy: §138 (2), (3)

For α>0\alpha > 0,

∫dxx2+α2=log⁡{x+x2+α2},∫dxx2−α2=log⁡∣x+x2−α2∣,\int\frac{dx}{\sqrt{x^2+\alpha^2}} = \log\left\{x + \sqrt{x^2+\alpha^2}\right\}, \qquad \int\frac{dx}{\sqrt{x^2-\alpha^2}} = \log\left|x + \sqrt{x^2-\alpha^2}\right|,∫dxα2−x2=arcsin⁡xα.\int\frac{dx}{\sqrt{\alpha^2-x^2}} = \arcsin\frac{x}{\alpha} .

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+cX = ax^2 + 2bx + c, complete the square. If a>0a > 0, put t=xa+b/at = x\sqrt a + b/\sqrt a, so that X=t2+κX = t^2 + \kappa with κ=(ac−b2)/a\kappa = (ac - b^2)/a, and ∫dx/X=a−1/2∫dt/t2+κ\int dx/\sqrt X = a^{-1/2}\int dt/\sqrt{t^2 + \kappa}. If a<0a < 0, put A=−aA = -a and t=xA−b/At = x\sqrt A - b/\sqrt A; then X=−κ−t2X = -\kappa - t^2 and we reach ∫dt/α2−t2\int dt/\sqrt{\alpha^2 - t^2}. For a numerator λx+μ\lambda x + \mu, split off a multiple of X′X':

Theorem Linear numerator over X\sqrt X Hardy: §139

With X=ax2+2bx+cX = ax^2 + 2bx + c,

∫λx+μX dx=λaX+(μ−λba)∫dxX.\int\frac{\lambda x + \mu}{\sqrt X}\,dx = \frac{\lambda}{a}\sqrt{X} + \left(\mu - \frac{\lambda b}{a}\right)\int\frac{dx}{\sqrt X} .

In the same way (§140), ∫(λx+μ)X dx=λ3aX3/2+(μ−λba)∫X dx\displaystyle\int(\lambda x + \mu)\sqrt X\,dx = \frac{\lambda}{3a}X^{3/2} + \left(\mu - \frac{\lambda b}{a}\right)\int\sqrt X\,dx, and ∫X dx\int\sqrt X\,dx reduces to ∫t2±α2 dt\int\sqrt{t^2\pm\alpha^2}\,dt or ∫α2−t2 dt\int\sqrt{\alpha^2 - t^2}\,dt. Those three need one more tool, integration by parts, and are done in the next lesson.

Proofs

Proof Rationalising 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=0X = 0 and one other root, which we find by dividing by XX.

Shift to (ξ,η)(\xi, \eta)

Substituting x=ξ+Xx = \xi + X, y=η+Yy = \eta + Y gives aX2+2hXY+bY2+2GX+2FY+k=0aX^2 + 2hXY + bY^2 + 2GX + 2FY + k = 0, where kk is the left side of the conic’s equation at (ξ,η)(\xi,\eta), which is 00 because the point lies on the conic. The linear coefficients are 2G2G and 2F2F as defined.

Restrict to the line Y=tXY = tX

We get X2(a+2ht+bt2)+2X(G+Ft)=0X^2(a + 2ht + bt^2) + 2X(G + Ft) = 0.

Divide by XX

Apart from X=0X = 0 (the point we started from), the solution is X=−2(G+Ft)/(a+2ht+bt2)X = -2(G + Ft)/(a + 2ht + bt^2), and Y=tXY = tX. Both are rational in tt, and so are x=ξ+Xx = \xi + X, y=η+Yy = \eta + Y and dx/dtdx/dt.

Apply rationalisation

By the rationalisation theorem of §136, ∫R(x,y) dx=∫R{x(t),y(t)} x′(t) dt\int R(x, y)\,dx = \int R\{x(t), y(t)\}\,x'(t)\,dt, the integral of a rational function of tt. (Where a+2ht+bt2=0a + 2ht + bt^2 = 0 the line has no second finite intersection: these are the asymptotic directions, finitely many values of tt.)

Proof The integral of 1/y1/y (§138)
Strategy

Use lines parallel to an asymptote: put t=y+xat = y + x\sqrt a. Find xx, yy and dx/dtdx/dt in terms of tt; the integrand 1/y1/y times dx/dtdx/dt will turn out to be a simple rational function. (Alternatively, just differentiate the answer.)

Solve for xx

From y=t−xay = t - x\sqrt a and y2=ax2+2bx+cy^2 = ax^2 + 2bx + c: t2−2txa=2bx+ct^2 - 2tx\sqrt a = 2bx + c, so x=t2−c2(ta+b)x = \dfrac{t^2 - c}{2(t\sqrt a + b)}.

Compute yy and dx/dtdx/dt

Then y=t−xa=t2a+2bt+ca2(ta+b)y = t - x\sqrt a = \dfrac{t^2\sqrt a + 2bt + c\sqrt a}{2(t\sqrt a + b)}, and differentiating xx by the quotient rule, dxdt=t2a+2bt+ca2(ta+b)2\dfrac{dx}{dt} = \dfrac{t^2\sqrt a + 2bt + c\sqrt a}{2(t\sqrt a + b)^2}.

The integrand in tt

So 1ydxdt=1ta+b\dfrac1y\dfrac{dx}{dt} = \dfrac{1}{t\sqrt a + b}, and ∫dxy=∫dtta+b=1alog⁡∣ta+b∣\displaystyle\int\frac{dx}{y} = \int\frac{dt}{t\sqrt a + b} = \frac{1}{\sqrt a}\log|t\sqrt a + b|.

Back to xx

ta+b=a (xa+y+b/a)t\sqrt a + b = \sqrt a\,(x\sqrt a + y + b/\sqrt a), and log⁡∣a u∣=log⁡a+log⁡∣u∣\log|\sqrt a\,u| = \log\sqrt a + \log|u| differs from log⁡∣u∣\log|u| by a constant. This gives the formula.

The standard forms follow: a=1a = 1, b=0b = 0, c=±α2c = \pm\alpha^2 gives the two logarithms, and arcsin⁡(x/α)\arcsin(x/\alpha) is checked by differentiating, 1α⋅11−x2/α2=1α2−x2\dfrac{1}{\alpha}\cdot\dfrac{1}{\sqrt{1 - x^2/\alpha^2}} = \dfrac{1}{\sqrt{\alpha^2 - x^2}} for α>0\alpha > 0.

Proof Linear numerator over X\sqrt X (§139)
Strategy

Write the numerator as a multiple of X′X' plus a constant.

Split the numerator

X′=2(ax+b)X' = 2(ax + b), and λx+μ=λa(ax+b)+μ−λba\lambda x + \mu = \dfrac{\lambda}{a}(ax + b) + \mu - \dfrac{\lambda b}{a}.

Integrate the first part

ddxX=X′2X=ax+bX\dfrac{d}{dx}\sqrt X = \dfrac{X'}{2\sqrt X} = \dfrac{ax+b}{\sqrt X}, so ∫ax+bX dx=X\int\dfrac{ax+b}{\sqrt X}\,dx = \sqrt X. The constant part is left as ∫dx/X\int dx/\sqrt X.

Worked examples and exercises

Exercise Rationalising the circle by hand ●●○ Hardy: §137

Use x=1−t21+t2x = \dfrac{1-t^2}{1+t^2}, y=2t1+t2y = \dfrac{2t}{1+t^2} to compute ∫dx1−x2\displaystyle\int\frac{dx}{\sqrt{1-x^2}} for −1<x<1-1 < x < 1, and reconcile your answer with arcsin⁡x\arcsin x.

Hint
Compute dx/dtdx/dt and simplify 1ydxdt\dfrac{1}{y}\dfrac{dx}{dt}. Here t>0t > 0 corresponds to y>0y > 0.
Hint
To return to xx: t=y/(x+1)=(1−x)/(1+x)t = y/(x+1) = \sqrt{(1-x)/(1+x)}.

Solution

dxdt=−2t(1+t2)−(1−t2)2t(1+t2)2=−4t(1+t2)2\dfrac{dx}{dt} = \dfrac{-2t(1+t^2) - (1-t^2)2t}{(1+t^2)^2} = \dfrac{-4t}{(1+t^2)^2}, so 1ydxdt=−21+t2\dfrac1y\dfrac{dx}{dt} = \dfrac{-2}{1+t^2} and the integral is −2arctan⁡t=−2arctan⁡1−x1+x-2\arctan t = -2\arctan\sqrt{\dfrac{1-x}{1+x}}.

This should differ from arcsin⁡x\arcsin x by a constant on (−1,1)(-1, 1). At x=0x = 0 it equals −2⋅14π=−12π-2\cdot\tfrac14\pi = -\tfrac12\pi, while arcsin⁡0=0\arcsin 0 = 0. So −2arctan⁡(1−x)/(1+x)=arcsin⁡x−12π-2\arctan\sqrt{(1-x)/(1+x)} = \arcsin x - \tfrac12\pi. Two correct methods, two different-looking answers, one constant apart.

Exercise Checking the standard forms ●○○ Hardy: §138

Verify by differentiation that log⁡{x+x2+α2}\log\{x + \sqrt{x^2+\alpha^2}\} is an integral of 1/x2+α21/\sqrt{x^2+\alpha^2}.

Hint
The derivative of x+x2+α2x + \sqrt{x^2+\alpha^2} is 1+xx2+α21 + \dfrac{x}{\sqrt{x^2+\alpha^2}}. Put it over a common denominator.

Solution

Write s=x2+α2s = \sqrt{x^2+\alpha^2}, so x+s>0x + s > 0. Then

ddxlog⁡(x+s)=1+x/sx+s=(s+x)/sx+s=1s.\frac{d}{dx}\log(x + s) = \frac{1 + x/s}{x + s} = \frac{(s + x)/s}{x + s} = \frac1s .

The same computation, with ∣⋅∣|\cdot| inside the logarithm, handles log⁡∣x+x2−α2∣\log|x + \sqrt{x^2 - \alpha^2}| for ∣x∣>α|x| > \alpha.

Exercise Completing the square ●○○ Hardy: §139

Find (a) ∫dx3+2x−x2\displaystyle\int\frac{dx}{\sqrt{3 + 2x - x^2}} and (b) ∫2x+3x2+2x+5 dx\displaystyle\int\frac{2x+3}{\sqrt{x^2+2x+5}}\,dx.

Hint
(a) 3+2x−x2=4−(x−1)23 + 2x - x^2 = 4 - (x-1)^2. (b) Here X′=2x+2X' = 2x + 2, so 2x+3=X′+12x + 3 = X' + 1.

Solution

(a) With t=x−1t = x - 1 the integral is ∫dt/4−t2=arcsin⁡t2\int dt/\sqrt{4 - t^2} = \arcsin\dfrac t2, so the answer is arcsin⁡x−12\arcsin\dfrac{x-1}{2} (for −1<x<3-1 < x < 3). The conic y2=3+2x−x2y^2 = 3 + 2x - x^2 is a circle of radius 22 centred at (1,0)(1, 0): it is the second example in the first widget.

(b) ∫X′+1X dx=2X+∫dx(x+1)2+4=2x2+2x+5+log⁡{x+1+x2+2x+5}\displaystyle\int\frac{X' + 1}{\sqrt X}\,dx = 2\sqrt X + \int\frac{dx}{\sqrt{(x+1)^2 + 4}} = 2\sqrt{x^2+2x+5} + \log\left\{x + 1 + \sqrt{x^2+2x+5}\right\}. This agrees with the formula of §139: λ=2\lambda = 2, μ=3\mu = 3, a=b=1a = b = 1, so λ/a=2\lambda/a = 2 and μ−λb/a=1\mu - \lambda b/a = 1.

Exercise Rationalising the denominator ●○○ Hardy: Examples XLIX, 7

If a>ba > b, show that ∫dxx+a+x+b=23(a−b){(x+a)3/2−(x+b)3/2}\displaystyle\int\frac{dx}{\sqrt{x+a} + \sqrt{x+b}} = \frac{2}{3(a-b)}\left\{(x+a)^{3/2} - (x+b)^{3/2}\right\}.

Hint
Multiply numerator and denominator by x+a−x+b\sqrt{x+a} - \sqrt{x+b}.

Solution

(x+a+x+b)(x+a−x+b)=(x+a)−(x+b)=a−b(\sqrt{x+a} + \sqrt{x+b})(\sqrt{x+a} - \sqrt{x+b}) = (x+a) - (x+b) = a - b. So the integrand equals x+a−x+ba−b\dfrac{\sqrt{x+a} - \sqrt{x+b}}{a-b}, and since ∫(x+a)1/2dx=23(x+a)3/2\int (x+a)^{1/2}dx = \tfrac23(x+a)^{3/2} the result follows. Sometimes an algebraic trick beats the general theory.

Exercise Two methods for 1/(x−a)(b−x)1/\sqrt{(x-a)(b-x)} ●●○ Hardy: Examples XLIX, 4

Let a<ba < b. Find ∫dx(x−a)(b−x)\displaystyle\int\frac{dx}{\sqrt{(x-a)(b-x)}} for a<x<ba < x < b (i) by completing the square and (ii) by the substitution x=acos⁡2θ+bsin⁡2θx = a\cos^2\theta + b\sin^2\theta, 0<θ<12π0 < \theta < \tfrac12\pi, and show that the answers agree up to a constant.

Hint
(i) (x−a)(b−x)=14(b−a)2−{x−12(a+b)}2(x-a)(b-x) = \tfrac14(b-a)^2 - \{x - \tfrac12(a+b)\}^2.
Hint
(ii) x−a=(b−a)sin⁡2θx - a = (b-a)\sin^2\theta, b−x=(b−a)cos⁡2θb - x = (b-a)\cos^2\theta, dx=2(b−a)sin⁡θcos⁡θ dθdx = 2(b-a)\sin\theta\cos\theta\,d\theta.

Solution

(i) With t=x−12(a+b)t = x - \tfrac12(a+b) and α=12(b−a)\alpha = \tfrac12(b - a) the integral is ∫dt/α2−t2=arcsin⁡(t/α)=arcsin⁡2x−a−bb−a\int dt/\sqrt{\alpha^2 - t^2} = \arcsin(t/\alpha) = \arcsin\dfrac{2x - a - b}{b - a}.

(ii) The integrand times dx/dθdx/d\theta is 2(b−a)sin⁡θcos⁡θ(b−a)sin⁡θcos⁡θ=2\dfrac{2(b-a)\sin\theta\cos\theta}{(b-a)\sin\theta\cos\theta} = 2, so the integral is 2θ=2arcsin⁡x−ab−a2\theta = 2\arcsin\sqrt{\dfrac{x-a}{b-a}}.

Agreement: put s=(x−a)/(b−a)=sin⁡θs = \sqrt{(x-a)/(b-a)} = \sin\theta. Then 2x−a−bb−a=2s2−1=−cos⁡2θ=sin⁡(2θ−12π)\dfrac{2x-a-b}{b-a} = 2s^2 - 1 = -\cos 2\theta = \sin(2\theta - \tfrac12\pi), and 2θ−12π2\theta - \tfrac12\pi lies in (−12π,12π)(-\tfrac12\pi, \tfrac12\pi), so the first answer is 2θ−12π2\theta - \tfrac12\pi. The two differ by the constant 12π\tfrac12\pi.

Check yourself

Check yourself Choose one

Why is the second intersection of a line Y=tXY = tX through a point of a conic a rational function of tt?

Why

After shifting the known point to the origin there is no constant term, so XX factors out and what remains is linear in XX with coefficients polynomial in tt. A conic is not in general the graph of a rational function (y=1−x2y = \sqrt{1-x^2} is not), and a tangent line would meet it only at the known point.

Check yourself Enter a number

Compute the increase of ∫dx/x2+1\int dx/\sqrt{x^2+1} from x=0x = 0 to x=1x = 1, to three decimals.

Why

log⁡(x+x2+1)\log(x + \sqrt{x^2+1}) goes from log⁡1=0\log 1 = 0 to log⁡(1+2)≈0.8814\log(1 + \sqrt2) \approx 0.8814.

Check yourself Choose one

After completing the square, ∫dxx2−6x+5\displaystyle\int\frac{dx}{\sqrt{x^2 - 6x + 5}} (for x>5x > 5) is

Why

x2−6x+5=(x−3)2−4x^2 - 6x + 5 = (x-3)^2 - 4, of the form t2−α2t^2 - \alpha^2, so the logarithmic form with t2−α2\sqrt{t^2 - \alpha^2} applies. Arcsin needs α2−t2\alpha^2 - t^2; arctan belongs to 1/(t2+α2)1/(t^2 + \alpha^2) without a root; the last option completes the square wrongly.

Check yourself True or false?

For the hyperbola y2=x2+1y^2 = x^2 + 1, the parameter of the line y+x=ty + x = t is simply t=x+x2+1t = x + \sqrt{x^2+1}, which is why log⁡{x+x2+1}\log\{x + \sqrt{x^2+1}\} appears in ∫dx/x2+1\int dx/\sqrt{x^2+1}.

Why

True. In the proof of §138 with a=1a = 1, b=0b = 0 the integral in tt is ∫dt/t=log⁡∣t∣\int dt/t = \log|t|, and t=y+xt = 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 tt. So ∫R(x,ax2+2bx+c) dx\int R(x, \sqrt{ax^2+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∣\int dx/y = a^{-1/2}\log|x\sqrt a + y + b/\sqrt a|.
  • The working forms: ∫dx/x2±α2=log⁡∣x+x2±α2∣\int dx/\sqrt{x^2\pm\alpha^2} = \log|x + \sqrt{x^2\pm\alpha^2}| and ∫dx/α2−x2=arcsin⁡(x/α)\int dx/\sqrt{\alpha^2 - x^2} = \arcsin(x/\alpha).
  • In practice: complete the square to reach one of these; with a numerator λx+μ\lambda x + \mu, first split off a multiple of X′X', which integrates to a multiple of X\sqrt X.
  • Different methods give answers that differ by constants; check by differentiating.