AP Calculus AB and BC

Integral of e^(sin x)cos(x): Answer and Proof

The integral of e^(sin x)cos(x) is e^(sin x) + C. Letting u = sin x gives du = cos x dx, so the integral becomes the integral of e^u du, which is e^u. Differentiating e^(sin x) by the chain rule gives e^(sin x) times cos x, the original integrand.

esinxcosxdx=esinx+C\int e^{\sin x}\cos x\,dx = e^{\sin x} + C

Substituting u = sin x

The exponent is sinx\sin x and the factor outside is cosx\cos x, exactly the derivative of that exponent. Nothing needs to be adjusted by a constant.

u=sinx,du=cosxdxu = \sin x, \qquad du = \cos x\,dx
esinxcosxdx=eudu=eu+C=esinx+C\int e^{\sin x}\cos x\,dx = \int e^{u}\,du = e^{u} + C = e^{\sin x} + C

This is the pattern eg(x)g(x)dx=eg(x)+C\int e^{g(x)}g'(x)\,dx = e^{g(x)} + C. Whenever the exponent's derivative multiplies the exponential, the antiderivative is the exponential itself.

Checking by differentiating

Differentiate esinxe^{\sin x} with the chain rule: keep the exponential, then multiply by the derivative of the exponent.

ddxesinx=esinxcosx\frac{d}{dx}e^{\sin x} = e^{\sin x}\cdot\cos x

That is the integrand, with no leftover constant, which is why the answer carries no coefficient in front.

The mistakes students make

  • Adding a coefficient such as esinxcosx\frac{e^{\sin x}}{\cos x}. Dividing by an inner derivative is only valid when that derivative is a constant, and cosx\cos x is not.
  • Answering esinxsinxe^{\sin x}\sin x by trying to antidifferentiate each factor. The cosx\cos x is consumed by dudu, not integrated on its own.
  • Reaching for integration by parts. The integrand is already in substitution form, so parts only lengthens the work.
  • Answering ecosxe^{\cos x} from a sign slip. Check by differentiating: ddxecosx=ecosxsinx\frac{d}{dx}e^{\cos x} = -e^{\cos x}\sin x, which is not the integrand.

Every answer on this page is machine checked

An automated test differentiates the antiderivative above and confirms it returns the integrand. A wrong sign or a missing factor fails the build, so it cannot reach you.

Frequently asked questions

Why is there no fraction in front of the answer?

Because du=cosxdxdu = \cos x\,dx matches the integrand exactly, with no constant left over. Coefficients like 14\frac{1}{4} appear only when dudu differs from what is present by a constant factor, as in e4xdx\int e^{4x}\,dx.

What is the integral of e^(sin x)cos(x) from 0 to pi/2?

0π/2esinxcosxdx=[esinx]0π/2=e1e0=e1\int_0^{\pi/2} e^{\sin x}\cos x\,dx = \left[e^{\sin x}\right]_0^{\pi/2} = e^1 - e^0 = e - 1.

What happens without the cos x factor?

esinxdx\int e^{\sin x}\,dx has no antiderivative in elementary functions. The cosx\cos x is what makes this integral solvable, which is why AP problems always supply it.