Calculus · real student question

Find the derivative of f(x) = x^3 - 3x^2 + 2x, then evaluate its definite integral on the interval [0, 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. Since ddxxn=nxn1\frac{d}{dx}x^n=nx^{n-1} and differentiation is linear, each term can be handled on its own:

    ddx(x3)=3x2,ddx(3x2)=6x,ddx(2x)=2\frac{d}{dx}\left(x^3\right)=3x^2,\qquad \frac{d}{dx}\left(-3x^2\right)=-6x,\qquad \frac{d}{dx}(2x)=2

    so

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

  2. Find an antiderivative for the integral. Reverse the power rule, raising each exponent by one and dividing:

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

    The constant of integration is omitted deliberately: in a definite integral it cancels in the subtraction, so any one antiderivative will do. Quick check: F(x)=x33x2+2x=f(x)F'(x)=x^3-3x^2+2x=f(x).

  3. Apply the Fundamental Theorem of Calculus.

    03f(x)dx=F(3)F(0)\int_0^3 f(x)\,dx=F(3)-F(0)

    F(3)=81427+9=81418=81724=94F(3)=\frac{81}{4}-27+9=\frac{81}{4}-18=\frac{81-72}{4}=\frac{9}{4}

    F(0)=0F(0)=0

    so the integral equals 94=2.25\dfrac{9}{4}=2.25.

  4. Notice that this is a signed area, not a total area. Factoring, f(x)=x(x1)(x2)f(x)=x(x-1)(x-2), so the curve crosses the axis at x=0,1,2x=0,1,2: it is positive on (0,1)(0,1), negative on (1,2)(1,2), and positive again on (2,3)(2,3). The integral adds those pieces with sign, so it is smaller than the geometric area between the curve and the axis.

  5. Verify by splitting at the roots. Using the same FF:

    01f=F(1)F(0)=14,12f=F(2)F(1)=014=14,23f=F(3)F(2)=940=94\int_0^1 f=F(1)-F(0)=\frac14,\qquad \int_1^2 f=F(2)-F(1)=0-\frac14=-\frac14,\qquad \int_2^3 f=F(3)-F(2)=\frac94-0=\frac94

    Adding: 1414+94=94\tfrac14-\tfrac14+\tfrac94=\tfrac94, matching step 3. (The unsigned area, if it were wanted, would be 14+14+94=114\tfrac14+\tfrac14+\tfrac94=\tfrac{11}{4}.)

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 →