What is the integral of #(x^2 - 4)dx# from 0 to 4?

1 Answer
May 2, 2015

The answer for #int_0^4(x^2-4)dx# is #16/3#.

When it comes to integrals, probably the best way is to think to yourself, "If I solved for an anti-derivative or integral, does taking the derivative of my answer give me the original function in the problem?"

To solve this integral, what you can do is split it up as follows:

(1) #int_0^4(x^2-4)dx=int_0^4(x^2)dx-int_0^4(4)dx#

To integrate #4# as an indefinite integral, a good rule of thumb is by an equation below for polynomials;

(2) #intx^a=x^(a+1)/(a+1) +C#, where a is any number.

C denotes some constant that is crucial when doing indefinite integrals for all functions! By doing #4# similar to Eq. 2,

#int(4)dx=4x^(0+1)/(0+1)+C=4x+C#

This makes sense since taking the derivative of #4x+C# gives us #4#.

If I take the definite integral of it however, I won't need the C since they would cancel. In addition, I need to evaluate from #0to4# the anti-derivative to compute the sum. Here is a full setup:

(3) #int_0^4(4)dx=[4x+C~|_0^4#
#=(4(4)+cancel(C))-(cancel(4(0))+cancel(C)) = 16#

Thus, keep in mind that the constant #C#'s are not necessary for definite integrals and sometimes a zeroth term in the integral can be ignored while evaluating (unlike #e^x#, which #e^0# becomes #1#).

For #x^2#, we'll first follow Eq. 2 again (works out by differentiating our anti-derivative):

#int_0^4(x^2)dx=[x^(2+1)/(2+1)~|_0^4=[1/3x^3~|_0^4#

And then we can solve for the sum of #x^2# from #0to4#:

(4) #int_0^4(x^2)dx=[1/3(4)^3-0]=64/3#

So now, we can combine Equations 3 and 4 to get the answer to Eq. 1:

#int_0^4(x^2-4)dx=int_0^4(x^2)dx-int_0^4(4)dx=64/3-16#
#=64/3-48/3=16/3#

You can also just stick with the original function and integrate the sums inside knowing that they are separate, but the procedures above is a good way for beginners on definite integrals.

Remember that on some functions, they behave differently than polynomials, so just be aware of the derivatives.