AP Calculus AB and BC

Derivative of e^2x sin x: Answer, Proof, Mistakes

The derivative of e^(2x) sin x is e^(2x)(2 sin x + cos x). In prime notation, if f(x) = e^(2x) sin x then f'(x) = e^(2x)(2 sin x + cos x). Use the product rule on e^(2x) and sin x, where the first factor needs the chain rule and contributes the extra factor of 2.

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

How to differentiate e^(2x) sin x

This is a product of u=e2xu = e^{2x} and v=sinxv = \sin x, so the product rule applies: f=uv+uvf' = u'v + uv'. Finding uu' takes a chain rule step, because the exponent is 2x2x rather than xx.

ddx(e2x)=e2x2=2e2x,ddx(sinx)=cosx\frac{d}{dx}\left(e^{2x}\right) = e^{2x}\cdot 2 = 2e^{2x}, \qquad \frac{d}{dx}(\sin x) = \cos x
ddx(e2xsinx)=2e2xsinx+e2xcosx\frac{d}{dx}\left(e^{2x}\sin x\right) = 2e^{2x}\sin x + e^{2x}\cos x

Both terms carry a factor of e2xe^{2x}, so factoring gives the compact form graders expect.

f(x)=e2x(2sinx+cosx)f'(x) = e^{2x}(2\sin x+\cos x)

Checking the answer and reading the graph

A fast check at x=0x = 0: the formula gives f(0)=e0(2sin0+cos0)=1f'(0) = e^{0}(2\sin 0+\cos 0) = 1, and the curve does leave the origin with slope 11, since sinxx\sin x \approx x there.

Because e2xe^{2x} is never zero, f(x)=0f'(x) = 0 only when 2sinx+cosx=02\sin x+\cos x = 0, that is when tanx=12\tan x = -\frac{1}{2}. Those inputs are the turning points of an oscillation whose amplitude grows with e2xe^{2x}.

On the AP exam this pairing is standard: the product rule is Topic 2.8 and the chain rule is Topic 3.1, and Unit 3 questions routinely nest one inside the other exactly like this.

Common mistakes with the derivative of e^(2x) sin x

  • Multiplying the derivatives to get 2e2xcosx2e^{2x}\cos x. The product rule adds two terms, one for each factor differentiated in turn.
  • Losing the chain rule factor and answering e2x(sinx+cosx)e^{2x}(\sin x+\cos x). That is the pattern for exsinxe^{x}\sin x; the exponent 2x2x contributes a 22 on the first term only.
  • Factoring carelessly: 2e2xsinx+e2xcosx2e^{2x}\sin x+e^{2x}\cos x becomes e2x(2sinx+cosx)e^{2x}(2\sin x+\cos x), not e2x(2sinx+2cosx)e^{2x}(2\sin x+2\cos x).

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 e2xsinxe^{2x}\sin x?

It is e2x(2sinx+cosx)e^{2x}(2\sin x+\cos x), which is the same as 2e2xsinx+e2xcosx2e^{2x}\sin x+e^{2x}\cos x before factoring.

Where does the factor of 22 come from?

From the chain rule inside the product rule. Differentiating e2xe^{2x} gives e2xe^{2x} times the derivative of the exponent 2x2x, which is 22.

Where does e2xsinxe^{2x}\sin x have its turning points?

Wherever 2sinx+cosx=02\sin x+\cos x = 0, so tanx=12\tan x = -\frac{1}{2}. The exponential factor is always positive, so it can never make the derivative zero.