Stuck on this? Solve it with AI
Calculus · real student question

Differentiate f(x) = x^3 - 3x^2 + 2x, and explain why x^3 becomes 3x^2.

Question

Differentiate

f(x)=x3−3x2+2xf(x)=x^{3}-3x^{2}+2x

and explain why the term x3x^{3} turns into 3x23x^{2}.

Step-by-step solution

  1. State the power rule and read what it does. For any constant exponent nn,

    ddx(xn)=n xn−1\frac{d}{dx}\left(x^{n}\right)=n\,x^{n-1}

    Two things happen at once: the exponent drops down in front as a multiplier, and the exponent decreases by one. That single sentence explains the x3→3x2x^{3}\to 3x^{2} step people usually get stuck on.

  2. Differentiate the cubic term. With n=3n=3:

    ddx(x3)=3x3−1=3x2\frac{d}{dx}\left(x^{3}\right)=3x^{3-1}=3x^{2}

    The 33 is not invented — it is the old exponent, moved into the coefficient slot.

  3. Differentiate the quadratic term, keeping the coefficient outside. Constants factor straight through a derivative, so

    ddx(−3x2)=−3⋅ddx(x2)=−3(2x)=−6x\frac{d}{dx}\left(-3x^{2}\right)=-3\cdot\frac{d}{dx}\left(x^{2}\right)=-3(2x)=-6x

  4. Differentiate the linear term. Here n=1n=1, so x1→1⋅x0=1x^{1}\to 1\cdot x^{0}=1 and

    ddx(2x)=2⋅1=2\frac{d}{dx}\left(2x\right)=2\cdot 1=2

    A linear term always leaves behind just its slope.

  5. Add the three pieces, using linearity of the derivative.

    f′(x)=3x2−6x+2f'(x)=3x^{2}-6x+2

  6. Check numerically at a point. A central difference at x=2x=2 with h=10−6h=10^{-6} gives f(2+h)−f(2−h)2h≈2.000000\dfrac{f(2+h)-f(2-h)}{2h}\approx 2.000000, and the formula gives 3(4)−6(2)+2=23(4)-6(2)+2=2. The same check at x=−1x=-1 gives ≈11.000000\approx 11.000000 against 3+6+2=113+6+2=11.

Answer

f′(x)=3x2−6x+2f'(x)=3x^{2}-6x+2

Need to solve a different problem like this? Open the solver →