AP Calculus AB and BC

Derivative of e^x sin x: Answer, Product Rule, Mistakes

The derivative of e^x times sin x with respect to x is e^x(sin x + cos x). The product rule gives e^x times sin x plus e^x times cos x, and factoring out the common e^x leaves e^x(sin x + cos x). Both terms add because sin x differentiates to cos x, with no minus sign.

ddx[exsinx]=ex(sinx+cosx)\frac{d}{dx}\left[e^x\sin x\right] = e^x(\sin x+\cos x)

How to differentiate e^x sin x

This is a product of exe^{x} and sinx\sin x, so the product rule differentiates each factor once, holding the other fixed, and adds.

ddx[f(x)g(x)]=f(x)g(x)+f(x)g(x)\frac{d}{dx}\left[f(x)g(x)\right] = f'(x)g(x) + f(x)g'(x)

Take f(x)=exf(x) = e^{x} and g(x)=sinxg(x) = \sin x, so f(x)=exf'(x) = e^{x} and g(x)=cosxg'(x) = \cos x.

ddx(exsinx)=exsinx+excosx\frac{d}{dx}\left(e^{x}\sin x\right) = e^{x}\sin x + e^{x}\cos x

Both terms share a factor of exe^{x}, so factor it out.

exsinx+excosx=ex(sinx+cosx)e^{x}\sin x + e^{x}\cos x = e^{x}(\sin x + \cos x)

Why both terms add

Here neither derivative brings a minus sign: exe^{x} differentiates to exe^{x} and sinx\sin x differentiates to +cosx+\cos x. Contrast excosxe^{x}\cos x, whose derivative is ex(cosxsinx)e^{x}(\cos x - \sin x), where the minus sign comes from differentiating cosine.

The reverse operation is exsinxdx=ex(sinxcosx)2+C\int e^{x}\sin x\,dx = \frac{e^{x}(\sin x - \cos x)}{2} + C, found by integration by parts twice and solving for the original integral.

Where the derivative of e^x sin x shows up on the AP exam

The product rule is Topic 2.8, on both AB and BC. Pairing exe^{x} with a trigonometric function is common, and the factored form ex(sinx+cosx)e^{x}(\sin x + \cos x) is the answer keys usually expect.

Common mistakes with the derivative of e^x sin x

  • Answering excosxe^{x}\cos x, multiplying the derivatives instead of using the product rule.
  • Answering ex(sinxcosx)e^{x}(\sin x - \cos x), adding a wrong minus sign; sinx\sin x differentiates to +cosx+\cos x.
  • Answering ex(cosxsinx)e^{x}(\cos x - \sin x), which is the derivative of excosxe^{x}\cos x, not this one.

Check yourself, not just the answer

Type derivatives and get graded on mathematical equivalence, with rule-level hints when you miss, in the Derivative Practice Checker.

Frequently asked questions

What is the derivative of e^x sin x?

ddx(exsinx)=ex(sinx+cosx)\frac{d}{dx}(e^{x}\sin x) = e^{x}(\sin x + \cos x), from the product rule after factoring out exe^{x}.

Why are both terms added?

Because exe^{x} differentiates to exe^{x} and sinx\sin x differentiates to +cosx+\cos x; neither derivative brings a minus sign.

What is the integral of e^x sin x?

exsinxdx=ex(sinxcosx)2+C\int e^{x}\sin x\,dx = \frac{e^{x}(\sin x - \cos x)}{2} + C, by integration by parts applied twice.