# Homework Help: Derivative of f(x) = sinxcosx

1. Mar 22, 2010

### Ryuk1990

1. The problem statement, all variables and given/known data

f(x) = sinxcosx

2. Relevant equations

Product Rule: f(x)g(x) = f(x)Dg(x) + g(x)Df(x)

3. The attempt at a solution

I got to sinx(-sinx) + cosxcosx

The answer is supposed to be 0

Would the next step be turning it into -(sinx)2 + (cosx)2?

2. Mar 22, 2010

### l'Hôpital

It can't be zero, because otherwise, you could integrate it and you'd obtain a constant, and clearly sinxcosx is not a constant. It's actually (sin 2x)/2

3. Mar 22, 2010

### jbunniii

Another way to solve this is to recognize that (as l'Hôpital said):

$$\sin x \cos x = \frac{1}{2} \sin 2x$$

which has derivative

$$\cos 2x$$

The answer looks different, but remembering one's trig identities pays dividends:

$$\cos 2x = \cos^2 x - \sin^2 x$$