Calculus · real student question

Find the indefinite integral of 1 divided by the product of (x + 1) and (ln x) raised to the power a.

Question

Find

dx(x+1)(lnx)a\int \frac{dx}{(x+1)\left(\ln x\right)^{a}}

for a constant aa and x>1x > 1.

Step-by-step solution

  1. Substitute u = ln x to put the two awkward pieces on the same footing. With x=eux = e^{u} and dx=eududx = e^{u}\,du,

    dx(x+1)(lnx)a=eu(eu+1)uadu=ua1+eudu\int \frac{dx}{(x+1)(\ln x)^{a}} = \int \frac{e^{u}}{\left(e^{u}+1\right)u^{a}}\,du = \int \frac{u^{-a}}{1+e^{-u}}\,du

    using eueu+1=11+eu\dfrac{e^{u}}{e^{u}+1} = \dfrac{1}{1+e^{-u}}. The integrand is now a power times a Fermi-type factor, which is the recognisable non-elementary shape.

  2. Expand the Fermi factor as a geometric series. For u>0u > 0 (that is, x>1x > 1) we have eu<1e^{-u} < 1, so

    11+eu=n=0(1)nenu\frac{1}{1+e^{-u}} = \sum_{n=0}^{\infty} (-1)^{n} e^{-nu}

    Splitting off the n=0n = 0 term,

    ua1+eudu=uadu+n=1(1)nuaenudu\int \frac{u^{-a}}{1+e^{-u}}\,du = \int u^{-a}\,du + \sum_{n=1}^{\infty}(-1)^{n}\int u^{-a}e^{-nu}\,du

  3. Integrate the leading term. For a1a \ne 1,

    uadu=u1a1a=(lnx)1a1a\int u^{-a}\,du = \frac{u^{1-a}}{1-a} = \frac{(\ln x)^{1-a}}{1-a}

    and for the exceptional value a=1a = 1 this term is lnu=lnlnx\ln|u| = \ln|\ln x| instead — the one case where the formula below must be replaced.

  4. Express the remaining integrals with the upper incomplete gamma function. Since Γ(s,z)=zts1etdt\Gamma(s, z) = \int_{z}^{\infty} t^{s-1}e^{-t}\,dt satisfies dduΓ(s,nu)=nsus1enu\dfrac{d}{du}\Gamma(s, nu) = -n^{s}u^{s-1}e^{-nu}, setting s=1as = 1-a (so that us1=uau^{s-1} = u^{-a}) gives

    uaenudu=na1Γ(1a,nu)\int u^{-a}e^{-nu}\,du = -n^{a-1}\,\Gamma(1-a,\, nu)

  5. Assemble the antiderivative. Substituting back u=lnxu = \ln x and absorbing the sign into the alternation:

    dx(x+1)(lnx)a=(lnx)1a1a+n=1(1)n+1na1Γ ⁣(1a, nlnx)+C\int \frac{dx}{(x+1)(\ln x)^{a}} = \frac{(\ln x)^{1-a}}{1-a} + \sum_{n=1}^{\infty}(-1)^{n+1} n^{a-1}\,\Gamma\!\left(1-a,\ n\ln x\right) + C

    for a1a \ne 1 and x>1x > 1.

  6. Verify by differentiating the closed form. Term by term, ddxΓ(1a,nlnx)=n1a(lnx)axn1\frac{d}{dx}\Gamma(1-a, n\ln x) = -n^{1-a}(\ln x)^{-a}x^{-n-1}, so the whole derivative collapses to a geometric sum:

    (lnx)ax[1+n=1(1x)n]=(lnx)ax11+1x=1(x+1)(lnx)a \frac{(\ln x)^{-a}}{x}\left[1 + \sum_{n=1}^{\infty}\left(-\tfrac1x\right)^{n}\right] = \frac{(\ln x)^{-a}}{x}\cdot\frac{1}{1+\tfrac1x} = \frac{1}{(x+1)(\ln x)^{a}} \ \checkmark

    As a second check, a=0a = 0 must return the elementary ln(x+1)\ln(x+1): the formula gives lnx+n1(1)n+1nxn=lnx+ln ⁣(1+1x)=ln(x+1)\ln x + \sum_{n\ge1}\frac{(-1)^{n+1}}{n}x^{-n} = \ln x + \ln\!\left(1+\tfrac1x\right) = \ln(x+1), confirmed numerically at x=1.5, 3, 7x = 1.5,\ 3,\ 7.

Answer

dx(x+1)(lnx)a=(lnx)1a1a+n=1(1)n+1na1Γ ⁣(1a, nlnx)+C(a1, x>1)\int \frac{dx}{(x+1)(\ln x)^{a}} = \frac{(\ln x)^{1-a}}{1-a} + \sum_{n=1}^{\infty}(-1)^{n+1} n^{a-1}\,\Gamma\!\left(1-a,\ n\ln x\right) + C \quad (a \ne 1,\ x > 1)

Need to solve a different problem like this? Open the solver →