Calculus · real student question

Find the derivative of f(x) = x cubed minus 3x squared plus 2x, then evaluate its definite integral on the interval from 0 to 3.

Question

Let f(x)=x33x2+2xf(x)=x^3-3x^2+2x.

Find f(x)f'(x), then evaluate 03f(x)dx\displaystyle\int_0^3 f(x)\,dx.

Step-by-step solution

  1. Differentiate term by term with the power rule. Each xnx^n becomes nxn1nx^{n-1} and constant multiples ride along:

    f(x)=3x26x+2f'(x)=3x^2-6x+2

    Nothing about the interval [0,3][0,3] enters here — differentiation is a pointwise operation, so the two halves of this question are independent.

  2. Antidifferentiate the same polynomial. Running the power rule backwards, xnxn+1/(n+1)x^n\mapsto x^{n+1}/(n+1):

    F(x)=x44x3+x2F(x)=\frac{x^4}{4}-x^3+x^2

    The constant of integration is omitted deliberately: it cancels in the next step.

  3. Apply the Fundamental Theorem of Calculus.

    03f(x)dx=F(3)F(0)=(81427+9)0=81418=94\int_0^3 f(x)\,dx=F(3)-F(0)=\left(\frac{81}{4}-27+9\right)-0=\frac{81}{4}-18=\frac{9}{4}

  4. Split at the roots to see what the 9/49/4 is made of. Since f(x)=x(x1)(x2)f(x)=x(x-1)(x-2), the graph crosses the axis at 00, 11 and 22, so the integral is a signed sum:

    01f=14,12f=14,23f=94\int_0^1 f=\tfrac14,\qquad \int_1^2 f=-\tfrac14,\qquad \int_2^3 f=\tfrac94

    The first two cancel exactly, which is why the answer equals the last piece alone. Total unsigned area would instead be 14+14+94=114\tfrac14+\tfrac14+\tfrac94=\tfrac{11}{4} — a different question.

  5. Confirm the integral with Simpson's rule. Simpson's rule is exact for cubics, so with a=0a=0, b=3b=3 and midpoint 1.51.5:

    36[f(0)+4f(1.5)+f(3)]=12[0+4(0.375)+6]=12(4.5)=94 \frac{3}{6}\Bigl[f(0)+4f(1.5)+f(3)\Bigr]=\frac12\Bigl[0+4(-0.375)+6\Bigr]=\frac12(4.5)=\frac94\ \checkmark

    The agreement is exact, not approximate, which is the strongest available check for a polynomial integrand.

Answer

f(x)=3x26x+2,03f(x)dx=94f'(x)=3x^2-6x+2,\qquad \int_0^3 f(x)\,dx=\frac{9}{4}

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