Derivative of $\sin\left(x\right)\,\cos\left(x\right)$

Differentiated with respect to x. Edit the function · Differentiation rules

Step-by-step solution

Input function
$$\sin\left(x\right)\,\cos\left(x\right)$$

Start of the differentiation
$$\frac{d}{dx}{\left[\sin\left(x\right)\,\cos\left(x\right)\right]}$$

Yellow: the expression being replaced. Green: its replacement.

Step 1 — Product Rule Differentiation rule
📖 Rule
$$\frac{d}{dx}(u \cdot v)=u'v+uv'$$
With:
  • $u = \sin\left(x\right)$
  • $v = \cos\left(x\right)$

Why: First, differentiate the first factor and multiply by the unchanged second factor. Add the unchanged first factor times the derivative of the second. Do not simply multiply the two derivatives.

🧮 Current expression
$$\bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\frac{d}{dx}{\left[\sin\left(x\right)\,\cos\left(x\right)\right]}\,}}}$$
✨ After: Product Rule
$$\bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\frac{d}{dx}{\left[\sin\left(x\right)\right]}\,\cos\left(x\right) + \sin\left(x\right)\,\frac{d}{dx}{\left[\cos\left(x\right)\right]}\,}}}$$
Step 2 — Derivative of Sine Differentiation rule
📖 Rule
$$\frac{d}{dx}\sin\left(x\right)=\cos\left(x\right)$$

Why: The argument is exactly x. Apply the known elementary derivative.

Changed part: $\frac{d}{dx}{\left[\sin\left(x\right)\right]} \;\Longrightarrow\; \cos\left(x\right)$
🧮 Current expression
$$\bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\frac{d}{dx}{\left[\sin\left(x\right)\right]}\,}}}\,\cos\left(x\right) + \sin\left(x\right)\,\frac{d}{dx}{\left[\cos\left(x\right)\right]}$$
✨ After: Derivative of Sine
$$\bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\cos\left(x\right)\,}}}\,\cos\left(x\right) + \sin\left(x\right)\,\frac{d}{dx}{\left[\cos\left(x\right)\right]}$$
Step 3 — Write identical factors as a square Simplification
📖 Rule
$$a\cdot a=a^2$$

Why: An expression multiplied by itself is its square.

Changed part: $\cos\left(x\right)\,\cos\left(x\right) \;\Longrightarrow\; \cos\left(x\right)^{2}$
🧮 Current expression
$$\bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\cos\left(x\right)\,\cos\left(x\right)\,}}} + \sin\left(x\right)\,\frac{d}{dx}{\left[\cos\left(x\right)\right]}$$
✨ After: Write identical factors as a square
$$\bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\cos\left(x\right)^{2}\,}}} + \sin\left(x\right)\,\frac{d}{dx}{\left[\cos\left(x\right)\right]}$$
Step 4 — Derivative of Cosine Differentiation rule
📖 Rule
$$\frac{d}{dx}\cos\left(x\right)=-\sin\left(x\right)$$

Why: The argument is exactly x. Apply the known elementary derivative.

Changed part: $\frac{d}{dx}{\left[\cos\left(x\right)\right]} \;\Longrightarrow\; -\sin\left(x\right)$
🧮 Current expression
$$\cos\left(x\right)^{2} + \sin\left(x\right)\,\bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\frac{d}{dx}{\left[\cos\left(x\right)\right]}\,}}}$$
✨ After: Derivative of Cosine
$$\cos\left(x\right)^{2} + \sin\left(x\right)\,\bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\left(-\sin\left(x\right)\right)\,}}}$$
Step 5 — Determine the sign of the product Simplification
📖 Rule
$$a\cdot(-b)=-(a\cdot b),\quad (-a)\cdot(-b)=a\cdot b$$

Why: Move the minus signs of the factors in front of the product. An even number of minus signs gives plus, an odd number gives minus.

Changed part: $\sin\left(x\right)\,\left(-\sin\left(x\right)\right) \;\Longrightarrow\; -\sin\left(x\right)\,\sin\left(x\right)$
🧮 Current expression
$$\cos\left(x\right)^{2} + \bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\sin\left(x\right)\,\left(-\sin\left(x\right)\right)\,}}}$$
✨ After: Determine the sign of the product
$$\cos\left(x\right)^{2} + \bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\left(-\sin\left(x\right)\,\sin\left(x\right)\right)\,}}}$$
Step 6 — Write identical factors as a square Simplification
📖 Rule
$$a\cdot a=a^2$$

Why: An expression multiplied by itself is its square.

Changed part: $-\sin\left(x\right)\,\sin\left(x\right) \;\Longrightarrow\; -\sin\left(x\right)^{2}$
🧮 Current expression
$$\cos\left(x\right)^{2} + \bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\left(-\sin\left(x\right)\,\sin\left(x\right)\right)\,}}}$$
✨ After: Write identical factors as a square
$$\cos\left(x\right)^{2} + \bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\left(-\sin\left(x\right)^{2}\right)\,}}}$$
Step 7 — Combine plus and minus Simplification
📖 Rule
$$a+(-b)=a-b$$

Why: Adding a negative expression is the same as subtracting the positive expression.

🧮 Current expression
$$\bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\cos\left(x\right)^{2} + \left(-\sin\left(x\right)^{2}\right)\,}}}$$
✨ After: Combine plus and minus
$$\bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\cos\left(x\right)^{2} - \sin\left(x\right)^{2}\,}}}$$
Final result
$$\cos\left(x\right)^{2} - \sin\left(x\right)^{2}$$
Copy link to this solution
Cross-check with a computer algebra system

The derivative computed directly by the computer algebra system Maxima:

$$\cos\left(x\right)^{2} - \sin\left(x\right)^{2}$$

Step-by-step result ↔ Maxima: identical ✓