Question
Question: Evaluate the given integral: \(\int\limits_{0}^{4}{\left( |x|+|x-2|+|x-4| \right)}dx\)...
Evaluate the given integral:
0∫4(∣x∣+∣x−2∣+∣x−4∣)dx
Solution
In the given integral there are three terms in which mod function is present and to solve this we need to break the integral wherever the function inside integral changes. The mod terms we have are ∣x∣,∣x−2∣,∣x−4∣ and we have to integrate from 0 to 4, now ∣x∣ will not change it’s value from 0 to 4 as x will be positive for that interval and ∣x−4∣ can be written as −(x−4) as (x−4) will be negative from 0 to 4. And we will break ∣x−2∣ in two parts first from 0 to 2 where ∣x−2∣=−(x−2) and second from 2 to 4 where ∣x−2∣=x−2. Now we will solve the obtained integrals to get the answer.
Complete step by step answer:
We are given the integral,
0∫4(∣x∣+∣x−2∣+∣x−4∣)dx
To solve this integral we need to break it into parts wherever the equation or mod terms inside the integral changes.
First we will consider the interval from 0 to 2, in that interval, and we get
0∫2(∣x∣+∣x−2∣+∣x−4∣)dx
∣x∣=x,∣x−2∣=−(x−2),∣x−4∣=−(x−4)
Putting the above values in the integral we get,
=0∫2(x−(x−2)−(x−4))dx
=0∫2(6−x)dx