Derivative of $\left(x^{2} + 1\right)\,\left(x^{3} - 2\right)$

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

Step-by-step solution

Input function
$$\left(x^{2} + 1\right)\,\left(x^{3} - 2\right)$$

Start of the differentiation
$$\frac{d}{dx}{\left[\left(x^{2} + 1\right)\,\left(x^{3} - 2\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^{2} + 1$
  • $v = x^{3} - 2$

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[\left(x^{2} + 1\right)\,\left(x^{3} - 2\right)\right]}\,}}}$$
✨ After: Product Rule
$$\bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\frac{d}{dx}{\left[x^{2} + 1\right]}\,\left(x^{3} - 2\right) + \left(x^{2} + 1\right)\,\frac{d}{dx}{\left[x^{3} - 2\right]}\,}}}$$
Step 2 — Sum/Difference Rule Differentiation rule
📖 Rule
$$\frac{d}{dx}(u \pm v \pm \dots) = \frac{d}{dx}(u) \pm \frac{d}{dx}(v) \pm \dots$$
With:
  • $u = x^{2}$
  • $v = 1$

Why: Differentiate every term separately and keep the plus and minus signs between them. Even a constant term first receives its own derivative symbol.

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

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

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

Why: This term does not depend on x. Its value stays unchanged when x changes, so its derivative is zero. Other letters are treated as constant parameters.

Changed part: $\frac{d}{dx}{\left[1\right]} \;\Longrightarrow\; 0$
🧮 Current expression
$$\left(2\,x + \bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\frac{d}{dx}{\left[1\right]}\,}}}\right)\,\left(x^{3} - 2\right) + \left(x^{2} + 1\right)\,\frac{d}{dx}{\left[x^{3} - 2\right]}$$
✨ After: Constant Rule
$$\left(2\,x + \bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,0\,}}}\right)\,\left(x^{3} - 2\right) + \left(x^{2} + 1\right)\,\frac{d}{dx}{\left[x^{3} - 2\right]}$$
Step 7 — Remove a zero term Simplification
📖 Rule
$$a+0=a,\quad a-0=a$$

Why: Adding or subtracting zero leaves the value unchanged. Remove that zero term.

Changed part: $2\,x + 0 \;\Longrightarrow\; 2\,x$
🧮 Current expression
$$\bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\left(2\,x + 0\right)\,}}}\,\left(x^{3} - 2\right) + \left(x^{2} + 1\right)\,\frac{d}{dx}{\left[x^{3} - 2\right]}$$
✨ After: Remove a zero term
$$\bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,2\,x\,}}}\,\left(x^{3} - 2\right) + \left(x^{2} + 1\right)\,\frac{d}{dx}{\left[x^{3} - 2\right]}$$
Step 8 — Sum/Difference Rule Differentiation rule
📖 Rule
$$\frac{d}{dx}(u \pm v \pm \dots) = \frac{d}{dx}(u) \pm \frac{d}{dx}(v) \pm \dots$$
With:
  • $u = x^{3}$
  • $v = 2$

Why: Differentiate every term separately and keep the plus and minus signs between them. Even a constant term first receives its own derivative symbol.

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

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

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

Changed part: $3 - 1 \;\Longrightarrow\; 2$
🧮 Current expression
$$2\,x\,\left(x^{3} - 2\right) + \left(x^{2} + 1\right)\,\left(3\,x^{\bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,3 - 1\,}}}} - \frac{d}{dx}{\left[2\right]}\right)$$
✨ After: Evaluate numbers
$$2\,x\,\left(x^{3} - 2\right) + \left(x^{2} + 1\right)\,\left(3\,x^{\bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,2\,}}}} - \frac{d}{dx}{\left[2\right]}\right)$$
Step 11 — Constant Rule Differentiation rule
📖 Rule
$$\frac{d}{dx}(c)=0$$
With:
  • $c = 2$

Why: This term does not depend on x. Its value stays unchanged when x changes, so its derivative is zero. Other letters are treated as constant parameters.

Changed part: $\frac{d}{dx}{\left[2\right]} \;\Longrightarrow\; 0$
🧮 Current expression
$$2\,x\,\left(x^{3} - 2\right) + \left(x^{2} + 1\right)\,\left(3\,x^{2} - \bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\frac{d}{dx}{\left[2\right]}\,}}}\right)$$
✨ After: Constant Rule
$$2\,x\,\left(x^{3} - 2\right) + \left(x^{2} + 1\right)\,\left(3\,x^{2} - \bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,0\,}}}\right)$$
Step 12 — Remove a zero term Simplification
📖 Rule
$$a+0=a,\quad a-0=a$$

Why: Adding or subtracting zero leaves the value unchanged. Remove that zero term.

Changed part: $3\,x^{2} - 0 \;\Longrightarrow\; 3\,x^{2}$
🧮 Current expression
$$2\,x\,\left(x^{3} - 2\right) + \left(x^{2} + 1\right)\,\bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\left(3\,x^{2} - 0\right)\,}}}$$
✨ After: Remove a zero term
$$2\,x\,\left(x^{3} - 2\right) + \left(x^{2} + 1\right) \cdot \bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,3\,x^{2}\,}}}$$
Step 13 — 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: $\left(x^{2} + 1\right) \cdot 3\,x^{2} \;\Longrightarrow\; 3\,x^{2}\,\left(x^{2} + 1\right)$
🧮 Current expression
$$2\,x\,\left(x^{3} - 2\right) + \bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\left(x^{2} + 1\right) \cdot 3\,x^{2}\,}}}$$
✨ After: Order the factors
$$2\,x\,\left(x^{3} - 2\right) + \bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,3\,x^{2}\,\left(x^{2} + 1\right)\,}}}$$
Step 14 — Multiply out Simplification
📖 Rule
$$a\cdot(b+c)=a\cdot b+a\cdot c$$

Why: Using the distributive law, multiply every term of the brackets by the other factors. Afterwards, like terms can be combined.

🧮 Current expression
$$\bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,2\,x\,\left(x^{3} - 2\right) + 3\,x^{2}\,\left(x^{2} + 1\right)\,}}}$$
✨ After: Multiply out
$$\bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,2\,x\,x^{3} - 2\,x \cdot 2 + 3\,x^{2}\,\left(x^{2} + 1\right)\,}}}$$
Step 15 — Multiply powers with the same base Simplification
📖 Rule
$$a^m\cdot a^n=a^{m+n}$$

Why: With the same base, add the exponents. A factor without a visible exponent has exponent one.

Changed part: $2\,x\,x^{3} \;\Longrightarrow\; 2\,x^{1 + 3}$
🧮 Current expression
$$\bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,2\,x\,x^{3}\,}}} - 2\,x \cdot 2 + 3\,x^{2}\,\left(x^{2} + 1\right)$$
✨ After: Multiply powers with the same base
$$\bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,2\,x^{1 + 3}\,}}} - 2\,x \cdot 2 + 3\,x^{2}\,\left(x^{2} + 1\right)$$
Step 16 — Evaluate numbers Simplification
📖 Rule

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

Changed part: $1 + 3 \;\Longrightarrow\; 4$
🧮 Current expression
$$2\,x^{\bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,1 + 3\,}}}} - 2\,x \cdot 2 + 3\,x^{2}\,\left(x^{2} + 1\right)$$
✨ After: Evaluate numbers
$$2\,x^{\bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,4\,}}}} - 2\,x \cdot 2 + 3\,x^{2}\,\left(x^{2} + 1\right)$$
Step 17 — Combine numeric factors Simplification
📖 Rule
$$a\cdot u\cdot b=(a\cdot b)\cdot u$$

Why: Multiply the numeric factors together and write the result first. The other factors stay unchanged. If the product is 1, the factor disappears entirely.

Changed part: $2\,x \cdot 2 \;\Longrightarrow\; 4\,x$
🧮 Current expression
$$2\,x^{4} - \bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,2\,x \cdot 2\,}}} + 3\,x^{2}\,\left(x^{2} + 1\right)$$
✨ After: Combine numeric factors
$$2\,x^{4} - \bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,4\,x\,}}} + 3\,x^{2}\,\left(x^{2} + 1\right)$$
Step 18 — Multiply out Simplification
📖 Rule
$$a\cdot(b+c)=a\cdot b+a\cdot c$$

Why: Using the distributive law, multiply every term of the brackets by the other factors. Afterwards, like terms can be combined.

🧮 Current expression
$$\bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,2\,x^{4} - 4\,x + 3\,x^{2}\,\left(x^{2} + 1\right)\,}}}$$
✨ After: Multiply out
$$\bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,2\,x^{4} - 4\,x + 3\,x^{2}\,x^{2} + 3\,x^{2} \cdot 1\,}}}$$
Step 19 — Multiply powers with the same base Simplification
📖 Rule
$$a^m\cdot a^n=a^{m+n}$$

Why: With the same base, add the exponents. A factor without a visible exponent has exponent one.

Changed part: $3\,x^{2}\,x^{2} \;\Longrightarrow\; 3\,x^{2 + 2}$
🧮 Current expression
$$2\,x^{4} - 4\,x + \bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,3\,x^{2}\,x^{2}\,}}} + 3\,x^{2} \cdot 1$$
✨ After: Multiply powers with the same base
$$2\,x^{4} - 4\,x + \bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,3\,x^{2 + 2}\,}}} + 3\,x^{2} \cdot 1$$
Step 20 — Evaluate numbers Simplification
📖 Rule

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

Changed part: $2 + 2 \;\Longrightarrow\; 4$
🧮 Current expression
$$2\,x^{4} - 4\,x + 3\,x^{\bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,2 + 2\,}}}} + 3\,x^{2} \cdot 1$$
✨ After: Evaluate numbers
$$2\,x^{4} - 4\,x + 3\,x^{\bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,4\,}}}} + 3\,x^{2} \cdot 1$$
Step 21 — 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\,x^{2} \cdot 1 \;\Longrightarrow\; 3\,x^{2}$
🧮 Current expression
$$2\,x^{4} - 4\,x + 3\,x^{4} + \bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,3\,x^{2} \cdot 1\,}}}$$
✨ After: Remove a factor of one
$$2\,x^{4} - 4\,x + 3\,x^{4} + \bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,3\,x^{2}\,}}}$$
Step 22 — Combine like terms Simplification
📖 Rule
$$a\cdot u\pm b\cdot u=(a\pm b)\cdot u$$

Why: Both terms have the same variable part. Factor it out and write the sum or difference of their coefficients in front. Evaluate those numbers in the next step.

🧮 Current expression
$$\bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,2\,x^{4} - 4\,x + 3\,x^{4} + 3\,x^{2}\,}}}$$
✨ After: Combine like terms
$$\bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\left(2 + 3\right)\,x^{4} - 4\,x + 3\,x^{2}\,}}}$$
Step 23 — Evaluate numbers Simplification
📖 Rule

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

Changed part: $2 + 3 \;\Longrightarrow\; 5$
🧮 Current expression
$$\bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\left(2 + 3\right)\,}}}\,x^{4} - 4\,x + 3\,x^{2}$$
✨ After: Evaluate numbers
$$\bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,5\,}}}\,x^{4} - 4\,x + 3\,x^{2}$$
Step 24 — Order the terms Simplification
📖 Rule

Why: Order the terms by decreasing powers of x. The order of terms does not change the value.

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

The derivative computed directly by the computer algebra system Maxima:

$$2\,x\,\left(x^{3} - 2\right) + 3\,x^{2}\,\left(x^{2} + 1\right)$$

Step-by-step result ↔ Maxima: identical ✓