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[exsin⁡x]=ex(sin⁡x+cos⁡x)\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 sin⁡x\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)=sin⁡xg(x) = \sin x, so f′(x)=exf'(x) = e^{x} and g′(x)=cos⁡xg'(x) = \cos x.

ddx(exsin⁡x)=exsin⁡x+excos⁡x\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.

exsin⁡x+excos⁡x=ex(sin⁡x+cos⁡x)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 sin⁡x\sin x differentiates to +cos⁡x+\cos x. Contrast excos⁡xe^{x}\cos x, whose derivative is ex(cos⁡x−sin⁡x)e^{x}(\cos x - \sin x), where the minus sign comes from differentiating cosine.

The reverse operation is ∫exsin⁡x dx=ex(sin⁡x−cos⁡x)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(sin⁡x+cos⁡x)e^{x}(\sin x + \cos x) is the answer keys usually expect.

Common mistakes with the derivative of e^x sin x

  • Answering excos⁡xe^{x}\cos x, multiplying the derivatives instead of using the product rule.
  • Answering ex(sin⁡x−cos⁡x)e^{x}(\sin x - \cos x), adding a wrong minus sign; sin⁡x\sin x differentiates to +cos⁡x+\cos x.
  • Answering ex(cos⁡x−sin⁡x)e^{x}(\cos x - \sin x), which is the derivative of excos⁡xe^{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(exsin⁡x)=ex(sin⁡x+cos⁡x)\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 sin⁡x\sin x differentiates to +cos⁡x+\cos x; neither derivative brings a minus sign.

What is the integral of e^x sin x?

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