Derivative of $x\,\mathrm{e}^{x}\,\sin\left(x\right)$

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

Step-by-step solution

Input function
$$x\,\mathrm{e}^{x}\,\sin\left(x\right)$$

Start of the differentiation
$$\frac{d}{dx}{\left[x\,\mathrm{e}^{x}\,\sin\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 = x\,\mathrm{e}^{x}$
  • $v = \sin\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[x\,\mathrm{e}^{x}\,\sin\left(x\right)\right]}\,}}}$$
✨ After: Product Rule
$$\bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\frac{d}{dx}{\left[x\,\mathrm{e}^{x}\right]}\,\sin\left(x\right) + x\,\mathrm{e}^{x}\,\frac{d}{dx}{\left[\sin\left(x\right)\right]}\,}}}$$
Step 2 — Product Rule Differentiation rule
📖 Rule
$$\frac{d}{dx}(u \cdot v)=u'v+uv'$$
With:
  • $u = x$
  • $v = \mathrm{e}^{x}$

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.

Changed part: $\frac{d}{dx}{\left[x\,\mathrm{e}^{x}\right]} \;\Longrightarrow\; \frac{d}{dx}{\left[x\right]}\,\mathrm{e}^{x} + x\,\frac{d}{dx}{\left[\mathrm{e}^{x}\right]}$
🧮 Current expression
$$\bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\frac{d}{dx}{\left[x\,\mathrm{e}^{x}\right]}\,}}}\,\sin\left(x\right) + x\,\mathrm{e}^{x}\,\frac{d}{dx}{\left[\sin\left(x\right)\right]}$$
✨ After: Product Rule
$$\bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\left(\frac{d}{dx}{\left[x\right]}\,\mathrm{e}^{x} + x\,\frac{d}{dx}{\left[\mathrm{e}^{x}\right]}\right)\,}}}\,\sin\left(x\right) + x\,\mathrm{e}^{x}\,\frac{d}{dx}{\left[\sin\left(x\right)\right]}$$
Step 3 — Derivative of a Variable Differentiation rule
📖 Rule
$$\frac{d}{dx}(x)=1$$

Why: When x increases by one, the value of this term also increases by one. Its derivative is therefore one.

Changed part: $\frac{d}{dx}{\left[x\right]} \;\Longrightarrow\; 1$
🧮 Current expression
$$\left(\bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\frac{d}{dx}{\left[x\right]}\,}}}\,\mathrm{e}^{x} + x\,\frac{d}{dx}{\left[\mathrm{e}^{x}\right]}\right)\,\sin\left(x\right) + x\,\mathrm{e}^{x}\,\frac{d}{dx}{\left[\sin\left(x\right)\right]}$$
✨ After: Derivative of a Variable
$$\left(\bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,1\,}}}\,\mathrm{e}^{x} + x\,\frac{d}{dx}{\left[\mathrm{e}^{x}\right]}\right)\,\sin\left(x\right) + x\,\mathrm{e}^{x}\,\frac{d}{dx}{\left[\sin\left(x\right)\right]}$$
Step 4 — Remove a factor of one Simplification
📖 Rule
$$1\cdot a=a,\quad \frac{a}{1}=a$$

Why: Multiplication or division by one leaves the value unchanged.

Changed part: $1\,\mathrm{e}^{x} \;\Longrightarrow\; \mathrm{e}^{x}$
🧮 Current expression
$$\left(\bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,1\,\mathrm{e}^{x}\,}}} + x\,\frac{d}{dx}{\left[\mathrm{e}^{x}\right]}\right)\,\sin\left(x\right) + x\,\mathrm{e}^{x}\,\frac{d}{dx}{\left[\sin\left(x\right)\right]}$$
✨ After: Remove a factor of one
$$\left(\bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\mathrm{e}^{x}\,}}} + x\,\frac{d}{dx}{\left[\mathrm{e}^{x}\right]}\right)\,\sin\left(x\right) + x\,\mathrm{e}^{x}\,\frac{d}{dx}{\left[\sin\left(x\right)\right]}$$
Step 5 — Exponential Rule Differentiation rule
📖 Rule
$$\frac{d}{dx}(e^{u})=e^{u}\cdot u'$$
With:
  • $u = x$

Why: The exponential with base e remains unchanged. For a composite exponent, multiply by its derivative using the chain rule.

Changed part: $\frac{d}{dx}{\left[\mathrm{e}^{x}\right]} \;\Longrightarrow\; \mathrm{e}^{x}\,\frac{d}{dx}{\left[x\right]}$
🧮 Current expression
$$\left(\mathrm{e}^{x} + x\,\bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\frac{d}{dx}{\left[\mathrm{e}^{x}\right]}\,}}}\right)\,\sin\left(x\right) + x\,\mathrm{e}^{x}\,\frac{d}{dx}{\left[\sin\left(x\right)\right]}$$
✨ After: Exponential Rule
$$\left(\mathrm{e}^{x} + x\,\bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\mathrm{e}^{x}\,\frac{d}{dx}{\left[x\right]}\,}}}\right)\,\sin\left(x\right) + x\,\mathrm{e}^{x}\,\frac{d}{dx}{\left[\sin\left(x\right)\right]}$$
Step 6 — Derivative of a Variable Differentiation rule
📖 Rule
$$\frac{d}{dx}(x)=1$$

Why: When x increases by one, the value of this term also increases by one. Its derivative is therefore one.

Changed part: $\frac{d}{dx}{\left[x\right]} \;\Longrightarrow\; 1$
🧮 Current expression
$$\left(\mathrm{e}^{x} + x\,\mathrm{e}^{x}\,\bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\frac{d}{dx}{\left[x\right]}\,}}}\right)\,\sin\left(x\right) + x\,\mathrm{e}^{x}\,\frac{d}{dx}{\left[\sin\left(x\right)\right]}$$
✨ After: Derivative of a Variable
$$\left(\mathrm{e}^{x} + x\,\mathrm{e}^{x} \cdot \bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,1\,}}}\right)\,\sin\left(x\right) + x\,\mathrm{e}^{x}\,\frac{d}{dx}{\left[\sin\left(x\right)\right]}$$
Step 7 — Remove a factor of one Simplification
📖 Rule
$$1\cdot a=a,\quad \frac{a}{1}=a$$

Why: Multiplication or division by one leaves the value unchanged.

Changed part: $\mathrm{e}^{x} \cdot 1 \;\Longrightarrow\; \mathrm{e}^{x}$
🧮 Current expression
$$\left(\mathrm{e}^{x} + x\,\bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\mathrm{e}^{x} \cdot 1\,}}}\right)\,\sin\left(x\right) + x\,\mathrm{e}^{x}\,\frac{d}{dx}{\left[\sin\left(x\right)\right]}$$
✨ After: Remove a factor of one
$$\left(\mathrm{e}^{x} + x\,\bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\mathrm{e}^{x}\,}}}\right)\,\sin\left(x\right) + x\,\mathrm{e}^{x}\,\frac{d}{dx}{\left[\sin\left(x\right)\right]}$$
Step 8 — 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
$$\left(\mathrm{e}^{x} + x\,\mathrm{e}^{x}\right)\,\sin\left(x\right) + x\,\mathrm{e}^{x}\,\bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\frac{d}{dx}{\left[\sin\left(x\right)\right]}\,}}}$$
✨ After: Derivative of Sine
$$\left(\mathrm{e}^{x} + x\,\mathrm{e}^{x}\right)\,\sin\left(x\right) + x\,\mathrm{e}^{x}\,\bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\cos\left(x\right)\,}}}$$
Final result
$$\left(\mathrm{e}^{x} + x\,\mathrm{e}^{x}\right)\,\sin\left(x\right) + x\,\mathrm{e}^{x}\,\cos\left(x\right)$$
Copy link to this solution
Cross-check with a computer algebra system

The derivative computed directly by the computer algebra system Maxima:

$$\mathrm{e}^{x}\,x\,\sin\left(x\right) + \mathrm{e}^{x}\,\sin\left(x\right) + \mathrm{e}^{x}\,x\,\cos\left(x\right)$$

Step-by-step result ↔ Maxima: identical ✓