Solveeit Logo

Question

Question: How do you evaluate the definite integral \[\int {\left| {{x^2} - 4} \right|} dx\]from \[\left[ {0,3...

How do you evaluate the definite integral x24dx\int {\left| {{x^2} - 4} \right|} dxfrom [0,3]\left[ {0,3} \right]?

Explanation

Solution

We will open the modulus and break the integration of the function into a sum of two integration functions with different limits. Use the general formula of integration and solve the two integrals from given limits.
Modulus of a function ‘x’ opens up as \left| x \right| = \left\\{ {\begin{array}{*{20}{c}} x&{;x \geqslant 0} \\\ { - x}&{;x < 0} \end{array}} \right.
xndx=xn+1n+1+C\int {{x^n}dx} = \dfrac{{{x^{n + 1}}}}{{n + 1}} + C

Complete step-by-step solution:
We have to solve the definite integral x24dx\int {\left| {{x^2} - 4} \right|} dx from [0,3]\left[ {0,3} \right]
We will break the function of modulus i.e. x24\left| {{x^2} - 4} \right| between the limits from 0 to 3
We equate the function inside the modulus to 0
x24=0\Rightarrow {x^2} - 4 = 0
Shift constant value to right hand side of the equation
x2=4\Rightarrow {x^2} = 4
Take square root on both sides of the equation
x2=4\Rightarrow \sqrt {{x^2}} = \sqrt 4
x2=22\Rightarrow \sqrt {{x^2}} = \sqrt {{2^2}}
Cancel square root by square power on both sides of the equation
x=±2\Rightarrow x = \pm 2
Since we have to separate limits between 0 and 3, we will ignore the value -2
So, we can break down the limit [0,3]\left[ {0,3} \right]into two parts i.e. [0,2]\left[ {0,2} \right]and [2,3]\left[ {2,3} \right].
From [0,2]\left[ {0,2} \right]:
x24=(x24)\Rightarrow \left| {{x^2} - 4} \right| = - ({x^2} - 4).............… (1)
From [2,3]\left[ {2,3} \right]:
x24=(x24)\Rightarrow \left| {{x^2} - 4} \right| = ({x^2} - 4)...............… (2)
From equations (1) and (2) we can write the function \left| {{x^2} - 4} \right| = \left\\{ {\begin{array}{*{20}{c}} { - ({x^2} - 4)}&{;x \in \left[ {0,2} \right]} \\\ {({x^2} - 4)}&{;x \in \left[ {2,3} \right]} \end{array}} \right.
So, we can write the definite integral as
03x24dx=02(x24)dx+23(x24)dx\Rightarrow \int\limits_0^3 {\left| {{x^2} - 4} \right|dx} = \int\limits_0^2 { - ({x^2} - 4)dx} + \int\limits_2^3 {({x^2} - 4)dx}
We can bring out the negative sign from the integration on right hand side of the equation
03x24dx=02(x24)dx+23(x24)dx\Rightarrow \int\limits_0^3 {\left| {{x^2} - 4} \right|dx} = - \int\limits_0^2 {({x^2} - 4)dx} + \int\limits_2^3 {({x^2} - 4)dx}
Now we use the general integration formula i.e.xndx=xn+1n+1+C\int {{x^n}dx} = \dfrac{{{x^{n + 1}}}}{{n + 1}} + C
03x24dx=[x2+12+14x]02+[x2+12+14x]23\Rightarrow \int\limits_0^3 {\left| {{x^2} - 4} \right|dx} = - \left[ {\dfrac{{{x^{2 + 1}}}}{{2 + 1}} - 4x} \right]_0^2 + \left[ {\dfrac{{{x^{2 + 1}}}}{{2 + 1}} - 4x} \right]_2^3
Add the terms in power on right hand side of the equation
03x24dx=[x334x]02+[x334x]23\Rightarrow \int\limits_0^3 {\left| {{x^2} - 4} \right|dx} = - \left[ {\dfrac{{{x^3}}}{3} - 4x} \right]_0^2 + \left[ {\dfrac{{{x^3}}}{3} - 4x} \right]_2^3
Apply limits on both brackets i.e. substitute the value of x as limits.
03x24dx=[(2334×2)(0334×0)]+[(3334×3)(2334×2)]\Rightarrow \int\limits_0^3 {\left| {{x^2} - 4} \right|dx} = - \left[ {\left( {\dfrac{{{2^3}}}{3} - 4 \times 2} \right) - \left( {\dfrac{{{0^3}}}{3} - 4 \times 0} \right)} \right] + \left[ {\left( {\dfrac{{{3^3}}}{3} - 4 \times 3} \right) - \left( {\dfrac{{{2^3}}}{3} - 4 \times 2} \right)} \right]
03x24dx=(2338)+(33312)(2338)\Rightarrow \int\limits_0^3 {\left| {{x^2} - 4} \right|dx} = - \left( {\dfrac{{{2^3}}}{3} - 8} \right) + \left( {\dfrac{{{3^3}}}{3} - 12} \right) - \left( {\dfrac{{{2^3}}}{3} - 8} \right)
Calculate cube values on right hand side of the equation
03x24dx=(838)+(27312)(838)\Rightarrow \int\limits_0^3 {\left| {{x^2} - 4} \right|dx} = - \left( {\dfrac{8}{3} - 8} \right) + \left( {\dfrac{{27}}{3} - 12} \right) - \left( {\dfrac{8}{3} - 8} \right)
Cancel possible terms from numerator and denominator on right hand side of the equation
03x24dx=(838)+(912)(838)\Rightarrow \int\limits_0^3 {\left| {{x^2} - 4} \right|dx} = - \left( {\dfrac{8}{3} - 8} \right) + \left( {9 - 12} \right) - \left( {\dfrac{8}{3} - 8} \right)
03x24dx=(838)+(3)(838)\Rightarrow \int\limits_0^3 {\left| {{x^2} - 4} \right|dx} = - \left( {\dfrac{8}{3} - 8} \right) + ( - 3) - \left( {\dfrac{8}{3} - 8} \right)
Open all the brackets on right hand side of the equation
03x24dx=83+8383+8\Rightarrow \int\limits_0^3 {\left| {{x^2} - 4} \right|dx} = - \dfrac{8}{3} + 8 - 3 - \dfrac{8}{3} + 8
Add the positive values
03x24dx=16(83+3+83)\Rightarrow \int\limits_0^3 {\left| {{x^2} - 4} \right|dx} = 16 - \left( {\dfrac{8}{3} + 3 + \dfrac{8}{3}} \right)
Take LCM of negative terms on right hand side of the equation
03x24dx=16(8+8+93)\Rightarrow \int\limits_0^3 {\left| {{x^2} - 4} \right|dx} = 16 - \left( {\dfrac{{8 + 8 + 9}}{3}} \right)
03x24dx=16(8+8+93)\Rightarrow \int\limits_0^3 {\left| {{x^2} - 4} \right|dx} = 16 - \left( {\dfrac{{8 + 8 + 9}}{3}} \right)
03x24dx=16253\Rightarrow \int\limits_0^3 {\left| {{x^2} - 4} \right|dx} = 16 - \dfrac{{25}}{3}
Take LCM of terms on right hand side of the equation
03x24dx=48253\Rightarrow \int\limits_0^3 {\left| {{x^2} - 4} \right|dx} = \dfrac{{48 - 25}}{3}
03x24dx=233\Rightarrow \int\limits_0^3 {\left| {{x^2} - 4} \right|dx} = \dfrac{{23}}{3}

\therefore The value of definite integral x24dx\int {\left| {{x^2} - 4} \right|} dx from [0,3]\left[ {0,3} \right] is 233\dfrac{{23}}{3}.

Note: Many students make the mistake of ignoring the modulus sign and directly solve the integral which ends up giving the value -3 which is wrong. Keep in mind we break the interval according to the modulus function and then apply integration to it. Also, when adding or subtracting the terms in the end, always apply the BODMAS rule and collect addition and subtraction separately.