Question
Evaluate the following integrals:
$\int\limits^4_1\big\{|\text{x}-1|+|\text{x}-2|+|\text{x}-4\big\}\text{dx}$

Answer

$\text{I}=\int\limits^4_1\big\{|\text{x}-1|+|\text{x}-2|+|\text{x}-4\big\}\text{dx}$
$\Rightarrow\text{I}=\int\limits^4_1|\text{x}-1|\text{dx}+\int\limits^4_1|\text{x}-2|\text{dx}+\int\limits^4_1|\text{x}-4|\text{dx}$
We know that,
$|\text{x}-2|=\begin{cases}-(\text{x}-1),&\text{x}\leq1\\\text{x}-1,&1<\text{x}\leq4\end{cases}$
$|\text{x}-2|=\begin{cases}-(\text{x}-2),&1\leq\text{x}\leq2\\\text{x}-2,&2<\text{x}\leq4\end{cases}$
$|\text{x}-4|=\begin{cases}-(\text{x}-4),&1\leq\text{x}\leq4\\\text{x}-4,&\text{x}>4\end{cases}$
$\therefore\ \text{I}=\int\limits^4_1(\text{x}-1)\text{dx}-\int\limits^2_1(\text{x}-2)\text{dx}+\int\limits^4_2(\text{x}-2)\text{dx}-\int\limits^4_1(\text{x}-4)\text{dx}$
$\Rightarrow\text{I}=\Big[\frac{\text{x}^2}{2}-\text{x}\Big]^4_1-\Big[\frac{\text{x}^2}{2}-\text{x}\Big]^2_1+\Big[\frac{\text{x}^2}{2}-\text{x}\Big]^4_2-\Big[\frac{\text{x}^2}{2}-\text{x}\Big]^4_1$
$\Rightarrow\text{I}=8-4-\frac{1}{2}+1-\Big(2-4-\frac{1}{2}+2\Big)+8-8-2+4-\Big(8-16-\frac{1}{2}+4\Big)$
$\Rightarrow\text{I}=\frac{23}{2}$

Need a full question paper?

Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.

Start Generating Free

Similar questions

Solve the following systems of homogeneous linear equations by matrix method:
$3x - y + 2z = 0$
$4x + 3y + 3z = 0$
$5x + 7y + 4z =0$
Solve the following differential equation:
$\Big(1+\text{e}^{\frac{\text{x}}{\text{y}}}\Big)\text{dx}+\text{e}^{\frac{\text{x}}{\text{y}}}\Big(1-\frac{\text{x}}{\text{y}}\Big)\text{dy}=0$
Find the maximum and the minimum values, if any, without using derivaives of the following functions:
$f(x) = x^3 - 1$ on $R.$
If $\vec{\text{a}}$ and $\vec{\text{b}}$ are two non-collinear unit vectors such that $\big|\vec{\text{a}}+\vec{\text{b}}\big|=\sqrt{3},$ find $\big(2\vec{\text{a}}-5\vec{\text{b}}\big).\big(3\vec{\text{a}}+\vec{\text{b}}\big).$
The cost of 4kg onion, 3kg wheat and 2kg rice is Rs. 60. The cost of 2kg onion, 4kg wheat and 6kg rice is Rs. 90. The cost of 6kg onion 2kg wheat and 3kg rice is Rs. 70. Find the cost of each item per kg by matrix method.
If $A =$ diag$(a, b, c),$ show that $A^n =$ diag$(a^n, b^n, c^n)$ for all positive integer $n.$
Find the general solution of the following differential equation:
$( 1 + \text{y}^{2}) + x - e^{\tan-1}\text{y}) \frac{\text{dy}}{dx} = 0$
Find the vector equations of the following planes in scalar product form $(\vec{\text{r}}\cdot\vec{\text{n}}=\text{d}):$
$\vec{\text{r}}=(\hat{\text{i}}+\hat{\text{j}})+\lambda(\hat{\text{i}}+2\hat{\text{j}}-\hat{\text{k}})+\mu(-\hat{\text{i}}+\hat{\text{j}}-2\hat{\text{k}})$
Prove that the line of section of the planes $5x + 2y - 4z + 2 = 0$ and $2x + 8y + 2z - 1 = 0$ is parallel to the plane $4x - 2y - 5z - 2 = 0.$
Evaluate the following integrals:$\int\frac{\cos\text{x}-\sin\text{x}}{\sqrt{8-\sin2\text{x}}}\text{ dx}$