Question
Question: How do you find the integral of \(\left| x \right|dx\) on the interval \(\left[ -2,1 \right]\)?...
How do you find the integral of ∣x∣dx on the interval [−2,1]?
Solution
We start solving the problem by equating the variable to the given definite integral. We then recall the properties of modulus function as \left| x \right|=\left\\{ \begin{matrix} x,\text{ for }x > 0 \\\ -x,\text{ for }x < 0 \\\ 0,\text{ for }x=0 \\\ \end{matrix} \right.. We then apply this property between different values of x in the given definite integral to proceed through the problem. We then make use of the facts that ∫xndx=n+1xn+1+C, a∫bf′(x)dx=[f(x)]ab=f(b)−f(a) to proceed further through the problem. We then make the necessary calculations to get the required value of the given definite integral.
Complete step-by-step answer:
According to the problem, we are asked to find the integral of ∣x∣dx on the interval [−2,1].
Let us assume I=−2∫1∣x∣dx ---(1).
We know that modulus function is defined as \left| x \right|=\left\\{ \begin{matrix}
x,\text{ for }x > 0 \\\
-x,\text{ for }x < 0 \\\
0,\text{ for }x=0 \\\
\end{matrix} \right.. Let us use this property in equation (1).
⇒I=−2∫0(−x)dx+0∫1(x)dx.
⇒I=−−2∫0xdx+0∫1xdx ---(2).
We know that ∫xndx=n+1xn+1+C, a∫bf′(x)dx=[f(x)]ab=f(b)−f(a). Let us use these results in equation (2).
⇒I=−[2x2]−20+[2x2]01.
⇒I=−((202)−(2(−2)2))+((212)−(202)).
⇒I=−((20)−(24))+((21)−(20)).
⇒I=−(0−2)+(1−0).
⇒I=−(−2)+(1).
⇒I=2+1.
⇒I=3.
So, we have found the value of the integral of ∣x∣dx on the interval [−2,1] as 3.
∴ The value of the integral of ∣x∣dx on the interval [−2,1] is 3.
Note: We should perform each step carefully in order to avoid confusion and calculation mistakes while solving this problem. We can also solve this problem by plotting the given function and then finding the area by using the formula of area of the triangle. Whenever we get this type of problem, we divide the interval into two or more sub-intervals to use the properties of modulus, greatest integer functions. Similarly, we can expect problems to find the value of the integral of [3x]dx on the interval [−3,0], where [.] is the Greatest Integer Function.