Calculus · real student question

Integrate sin(a * ln(x)) / x^b with respect to x, where a and b are constants.

Question

Evaluate

sin(alnx)xbdx\int\frac{\sin\left(a\ln x\right)}{x^{b}}\,dx

where aa and bb are constants.

Step-by-step solution

  1. Substitute u=lnxu=\ln x to remove the logarithm from inside the sine. Then x=eux=e^{u} and dx=eududx=e^{u}du, so

    sin(alnx)xbdx=sin(au)ebueudu=e(1b)usin(au)du\int\frac{\sin(a\ln x)}{x^{b}}dx=\int\frac{\sin(au)}{e^{bu}}e^{u}\,du=\int e^{(1-b)u}\sin(au)\,du

    What was an awkward mix of a logarithm and a power has become the classic exponential-times-sine integral.

  2. Recall the standard result. For constants kk and aa not both zero,

    ekusin(au)du=eku(ksin(au)acos(au))k2+a2+C\int e^{ku}\sin(au)\,du=\frac{e^{ku}\left(k\sin(au)-a\cos(au)\right)}{k^{2}+a^{2}}+C

    It is proved by integrating by parts twice and solving the resulting equation for the integral — the integral reappears on the right, which is why no third integration is needed.

  3. Apply it with k=1bk=1-b.

    e(1b)usin(au)du=e(1b)u[(1b)sin(au)acos(au)](1b)2+a2+C\int e^{(1-b)u}\sin(au)\,du=\frac{e^{(1-b)u}\left[(1-b)\sin(au)-a\cos(au)\right]}{(1-b)^{2}+a^{2}}+C

  4. Substitute back, using e(1b)u=x1be^{(1-b)u}=x^{1-b} and u=lnxu=\ln x.

    sin(alnx)xbdx=x1b[(1b)sin(alnx)acos(alnx)](1b)2+a2+C\int\frac{\sin(a\ln x)}{x^{b}}dx=\frac{x^{1-b}\left[(1-b)\sin\left(a\ln x\right)-a\cos\left(a\ln x\right)\right]}{(1-b)^{2}+a^{2}}+C

    The formula requires (1b)2+a20(1-b)^2+a^2\ne 0, that is, not both a=0a=0 and b=1b=1.

  5. Check the special case and verify numerically. When b=1b=1 the integral reduces to sin(alnx)xdx\int\tfrac{\sin(a\ln x)}{x}dx, and the formula gives acos(alnx)a2=cos(alnx)a\tfrac{-a\cos(a\ln x)}{a^2}=-\tfrac{\cos(a\ln x)}{a}, exactly what u=lnxu=\ln x gives directly \checkmark. Numerically, differentiating the general antiderivative at a=1.7a=1.7, b=0.4b=0.4 and x=0.7,1.3,2.5,4.0x=0.7,\,1.3,\,2.5,\,4.0 reproduces the integrand to eight decimal places \checkmark.

Answer

x1b[(1b)sin(alnx)acos(alnx)](1b)2+a2+C\frac{x^{1-b}\left[(1-b)\sin\left(a\ln x\right)-a\cos\left(a\ln x\right)\right]}{(1-b)^{2}+a^{2}}+C

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