Evaluate the given integral:
$\int\limits_{0}^{4}{\left( |x|+|x-2|+|x-4| \right)}dx$
Answer
632.4k+ views
Hint: 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 $-\left( x-4 \right)$ as $\left( x-4 \right)$ will be negative from 0 to 4. And we will break $|x-2|$ in two parts first from 0 to 2 where $|x-2|=-\left( x-2 \right)$ 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,
$\int\limits_{0}^{4}{\left( |x|+|x-2|+|x-4| \right)}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
$\int\limits_{0}^{2}{\left( |x|+|x-2|+|x-4| \right)}dx$
$\begin{align}
& |x|=x, \\
& |x-2|=-(x-2), \\
& |x-4|=-\left( x-4 \right) \\
\end{align}$
Putting the above values in the integral we get,
$=\int\limits_{0}^{2}{\left( x-\left( x-2 \right)-\left( x-4 \right) \right)}dx$
$=\int\limits_{0}^{2}{\left( 6-x \right)}dx$
\[\begin{align}
& =\left[ 6x-\dfrac{{{x}^{2}}}{2} \right]_{0}^{2} \\
& =\left( 12-2 \right)-\left( 0-0 \right) \\
& =10 \\
\end{align}\]
Now we will consider the interval from 2 to 4, in that interval, and we get
$\int\limits_{2}^{4}{\left( |x|+|x-2|+|x-4| \right)}dx$
$\begin{align}
& |x|=x, \\
& |x-2|=(x-2), \\
& |x-4|=-\left( x-4 \right) \\
\end{align}$
Putting the above values in the integral we get,
$\begin{align}
& =\int\limits_{2}^{4}{\left( x+\left( x-2 \right)-\left( x-4 \right) \right)}dx \\
& =\int\limits_{2}^{4}{\left( x+2 \right)}dx \\
& =\left[ \dfrac{{{x}^{2}}}{2}+2x \right]_{2}^{4} \\
& =\left( 8+8 \right)-\left( 2+4 \right) \\
& =16-6 \\
& =10 \\
\end{align}$
Now we know that,
$\begin{align}
& \int\limits_{0}^{4}{\left( |x|+|x-2|+|x-4| \right)}dx=\int\limits_{0}^{2}{\left( |x|+|x-2|+|x-4| \right)}dx+\int\limits_{2}^{4}{\left( |x|+|x-2|+|x-4| \right)}dx \\
& \int\limits_{0}^{4}{\left( |x|+|x-2|+|x-4| \right)}dx=10+10=20 \\
\end{align}$
Hence our value of integral $\int\limits_{0}^{4}{\left( |x|+|x-2|+|x-4| \right)}dx$ is 20.
Note: Whenever mod function is included inside the equation which has to be integrated then most of the times we will have to break the integral into several parts at the points where mod function changes. Many students make mistakes while doing this and integrate directly in the whole interval so be careful while solving these kinds of problems.
Complete step by step answer:
We are given the integral,
$\int\limits_{0}^{4}{\left( |x|+|x-2|+|x-4| \right)}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
$\int\limits_{0}^{2}{\left( |x|+|x-2|+|x-4| \right)}dx$
$\begin{align}
& |x|=x, \\
& |x-2|=-(x-2), \\
& |x-4|=-\left( x-4 \right) \\
\end{align}$
Putting the above values in the integral we get,
$=\int\limits_{0}^{2}{\left( x-\left( x-2 \right)-\left( x-4 \right) \right)}dx$
$=\int\limits_{0}^{2}{\left( 6-x \right)}dx$
\[\begin{align}
& =\left[ 6x-\dfrac{{{x}^{2}}}{2} \right]_{0}^{2} \\
& =\left( 12-2 \right)-\left( 0-0 \right) \\
& =10 \\
\end{align}\]
Now we will consider the interval from 2 to 4, in that interval, and we get
$\int\limits_{2}^{4}{\left( |x|+|x-2|+|x-4| \right)}dx$
$\begin{align}
& |x|=x, \\
& |x-2|=(x-2), \\
& |x-4|=-\left( x-4 \right) \\
\end{align}$
Putting the above values in the integral we get,
$\begin{align}
& =\int\limits_{2}^{4}{\left( x+\left( x-2 \right)-\left( x-4 \right) \right)}dx \\
& =\int\limits_{2}^{4}{\left( x+2 \right)}dx \\
& =\left[ \dfrac{{{x}^{2}}}{2}+2x \right]_{2}^{4} \\
& =\left( 8+8 \right)-\left( 2+4 \right) \\
& =16-6 \\
& =10 \\
\end{align}$
Now we know that,
$\begin{align}
& \int\limits_{0}^{4}{\left( |x|+|x-2|+|x-4| \right)}dx=\int\limits_{0}^{2}{\left( |x|+|x-2|+|x-4| \right)}dx+\int\limits_{2}^{4}{\left( |x|+|x-2|+|x-4| \right)}dx \\
& \int\limits_{0}^{4}{\left( |x|+|x-2|+|x-4| \right)}dx=10+10=20 \\
\end{align}$
Hence our value of integral $\int\limits_{0}^{4}{\left( |x|+|x-2|+|x-4| \right)}dx$ is 20.
Note: Whenever mod function is included inside the equation which has to be integrated then most of the times we will have to break the integral into several parts at the points where mod function changes. Many students make mistakes while doing this and integrate directly in the whole interval so be careful while solving these kinds of problems.
Recently Updated Pages
Master Class 12 Business Studies: Engaging Questions & Answers for Success

Master Class 12 Chemistry: Engaging Questions & Answers for Success

Master Class 12 Biology: Engaging Questions & Answers for Success

Class 12 Question and Answer - Your Ultimate Solutions Guide

Master Class 11 English: Engaging Questions & Answers for Success

Master Class 11 Social Science: Engaging Questions & Answers for Success

Trending doubts
Which are the Top 10 Largest Countries of the World?

Draw a labelled sketch of the human eye class 12 physics CBSE

Differentiate between homogeneous and heterogeneous class 12 chemistry CBSE

Differentiate between Pyramid of energy and pyramid class 12 biology CBSE

Why is the cell called the structural and functional class 12 biology CBSE

Draw the diagram of the pyramid of energy Explain In class 12 biology CBSE

