Derivative of $x^{2}\,\mathrm{e}^{3\,x}$

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

Step-by-step solution

Input function
$$x^{2}\,\mathrm{e}^{3\,x}$$

Start of the differentiation
$$\frac{d}{dx}{\left[x^{2}\,\mathrm{e}^{3\,x}\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^{2}$
  • $v = \mathrm{e}^{3\,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.

🧮 Current expression
$$\bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\frac{d}{dx}{\left[x^{2}\,\mathrm{e}^{3\,x}\right]}\,}}}$$
✨ After: Product Rule
$$\bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\frac{d}{dx}{\left[x^{2}\right]}\,\mathrm{e}^{3\,x} + x^{2}\,\frac{d}{dx}{\left[\mathrm{e}^{3\,x}\right]}\,}}}$$
Step 2 — Power Rule (special case) Differentiation rule
📖 Rule
$$\frac{d}{dx}\left(u^{c}\right)=c\,u^{c-1}$$
With:
  • $u = x$
  • $c = 2$

Why: Bring the current exponent down as a multiplier and subtract one from the exponent. Evaluate that small calculation in a separate step.

Changed part: $\frac{d}{dx}{\left[x^{2}\right]} \;\Longrightarrow\; 2\,x^{2 - 1}$
🧮 Current expression
$$\bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\frac{d}{dx}{\left[x^{2}\right]}\,}}}\,\mathrm{e}^{3\,x} + x^{2}\,\frac{d}{dx}{\left[\mathrm{e}^{3\,x}\right]}$$
✨ After: Power Rule (special case)
$$\bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,2\,x^{2 - 1}\,}}}\,\mathrm{e}^{3\,x} + x^{2}\,\frac{d}{dx}{\left[\mathrm{e}^{3\,x}\right]}$$
Step 3 — Evaluate numbers Simplification
📖 Rule

Why: Evaluate only the highlighted numeric expression, preserving exact fractions and decimals.

Changed part: $2 - 1 \;\Longrightarrow\; 1$
🧮 Current expression
$$2\,x^{\bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,2 - 1\,}}}}\,\mathrm{e}^{3\,x} + x^{2}\,\frac{d}{dx}{\left[\mathrm{e}^{3\,x}\right]}$$
✨ After: Evaluate numbers
$$2\,x^{\bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,1\,}}}}\,\mathrm{e}^{3\,x} + x^{2}\,\frac{d}{dx}{\left[\mathrm{e}^{3\,x}\right]}$$
Step 4 — Power with exponent one Simplification
📖 Rule
$$a^1=a$$

Why: An expression to the first power is the expression itself.

Changed part: $x^{1} \;\Longrightarrow\; x$
🧮 Current expression
$$2\,\bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,x^{1}\,}}}\,\mathrm{e}^{3\,x} + x^{2}\,\frac{d}{dx}{\left[\mathrm{e}^{3\,x}\right]}$$
✨ After: Power with exponent one
$$2\,\bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,x\,}}}\,\mathrm{e}^{3\,x} + x^{2}\,\frac{d}{dx}{\left[\mathrm{e}^{3\,x}\right]}$$
Step 5 — Exponential Rule Differentiation rule
📖 Rule
$$\frac{d}{dx}(e^{u})=e^{u}\cdot u'$$
With:
  • $u = 3\,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}^{3\,x}\right]} \;\Longrightarrow\; \mathrm{e}^{3\,x}\,\frac{d}{dx}{\left[3\,x\right]}$
🧮 Current expression
$$2\,x\,\mathrm{e}^{3\,x} + x^{2}\,\bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\frac{d}{dx}{\left[\mathrm{e}^{3\,x}\right]}\,}}}$$
✨ After: Exponential Rule
$$2\,x\,\mathrm{e}^{3\,x} + x^{2}\,\bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\mathrm{e}^{3\,x}\,\frac{d}{dx}{\left[3\,x\right]}\,}}}$$
Step 6 — Constant Factor Rule Differentiation rule
📖 Rule
$$\frac{d}{dx}(c\,u)=c\,u'$$
With:
  • $c = 3$
  • $u = x$

Why: Keep the constant multiplier outside the derivative. Next, differentiate only the part depending on x.

Changed part: $\frac{d}{dx}{\left[3\,x\right]} \;\Longrightarrow\; 3\,\frac{d}{dx}{\left[x\right]}$
🧮 Current expression
$$2\,x\,\mathrm{e}^{3\,x} + x^{2}\,\mathrm{e}^{3\,x}\,\bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\frac{d}{dx}{\left[3\,x\right]}\,}}}$$
✨ After: Constant Factor Rule
$$2\,x\,\mathrm{e}^{3\,x} + x^{2}\,\mathrm{e}^{3\,x} \cdot \bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,3\,\frac{d}{dx}{\left[x\right]}\,}}}$$
Step 7 — 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
$$2\,x\,\mathrm{e}^{3\,x} + x^{2}\,\mathrm{e}^{3\,x} \cdot 3\,\bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\frac{d}{dx}{\left[x\right]}\,}}}$$
✨ After: Derivative of a Variable
$$2\,x\,\mathrm{e}^{3\,x} + x^{2}\,\mathrm{e}^{3\,x} \cdot 3 \cdot \bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,1\,}}}$$
Step 8 — 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: $3 \cdot 1 \;\Longrightarrow\; 3$
🧮 Current expression
$$2\,x\,\mathrm{e}^{3\,x} + x^{2}\,\mathrm{e}^{3\,x} \cdot \bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,3 \cdot 1\,}}}$$
✨ After: Remove a factor of one
$$2\,x\,\mathrm{e}^{3\,x} + x^{2}\,\mathrm{e}^{3\,x} \cdot \bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,3\,}}}$$
Step 9 — Order the factors Simplification
📖 Rule
$$u\cdot c=c\cdot u$$

Why: The order of factors may be changed (commutative law). Usual order: number, constants, powers of the variable, other factors.

Changed part: $x^{2}\,\mathrm{e}^{3\,x} \cdot 3 \;\Longrightarrow\; 3\,x^{2}\,\mathrm{e}^{3\,x}$
🧮 Current expression
$$2\,x\,\mathrm{e}^{3\,x} + \bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,x^{2}\,\mathrm{e}^{3\,x} \cdot 3\,}}}$$
✨ After: Order the factors
$$2\,x\,\mathrm{e}^{3\,x} + \bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,3\,x^{2}\,\mathrm{e}^{3\,x}\,}}}$$
Final result
$$2\,x\,\mathrm{e}^{3\,x} + 3\,x^{2}\,\mathrm{e}^{3\,x}$$
Copy link to this solution
Cross-check with a computer algebra system

The derivative computed directly by the computer algebra system Maxima:

$$3\,\mathrm{e}^{3\,x}\,x^{2} + 2\,\mathrm{e}^{3\,x}\,x$$

Step-by-step result ↔ Maxima: identical ✓