Question:

$\int_{1}^{4} |x - 2| dx$ is equal to

Show Hint

Geometrically, the integral of \(|x-2|\) from 1 to 4 represents the area of two triangles. The first has vertices at (1,1), (2,0), (2,1) with area \(\frac{1}{2} \times 1 \times 1 = \frac{1}{2}\). The second has vertices at (2,0), (4,2), (4,0) with area \(\frac{1}{2} \times 2 \times 2 = 2\). The total area is \(\frac{1}{2} + 2 = \frac{5}{2}\).
Updated On: Sep 9, 2025
  • 5
  • $\frac{7}{2}$
  • $\frac{3}{2}$
  • $\frac{5}{2}$
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is D

Solution and Explanation

Step 1: Understanding the Concept:
This problem requires evaluating a definite integral involving an absolute value function. The key is to split the integral at the point where the expression inside the absolute value changes sign.
Step 2: Key Formula or Approach:
The definition of the absolute value function is:
\[ |u| = \begin{cases} u & \text{if } u \ge 0
-u & \text{if } u<0 \end{cases} \] We use the property of definite integrals: \(\int_{a}^{c} f(x)dx = \int_{a}^{b} f(x)dx + \int_{b}^{c} f(x)dx\).
Step 3: Detailed Explanation:
The expression inside the absolute value is \(x - 2\). This expression is zero when x = 2.


When \(x<2\), \(x - 2\) is negative, so \(|x - 2| = -(x - 2) = 2 - x\).
When \(x \ge 2\), \(x - 2\) is non-negative, so \(|x - 2| = x - 2\).
Since the point x = 2 is within our integration interval [1, 4], we split the integral at x = 2:
\[ \int_{1}^{4} |x - 2| dx = \int_{1}^{2} |x - 2| dx + \int_{2}^{4} |x - 2| dx \] Now substitute the appropriate expression for \(|x - 2|\) in each integral:
\[ = \int_{1}^{2} (2 - x) dx + \int_{2}^{4} (x - 2) dx \] Evaluate the first integral:
\[ \int_{1}^{2} (2 - x) dx = \left[ 2x - \frac{x^2}{2} \right]_{1}^{2} = \left(2(2) - \frac{2^2}{2}\right) - \left(2(1) - \frac{1^2}{2}\right) \] \[ = (4 - 2) - \left(2 - \frac{1}{2}\right) = 2 - \frac{3}{2} = \frac{1}{2} \] Evaluate the second integral:
\[ \int_{2}^{4} (x - 2) dx = \left[ \frac{x^2}{2} - 2x \right]_{2}^{4} = \left(\frac{4^2}{2} - 2(4)\right) - \left(\frac{2^2}{2} - 2(2)\right) \] \[ = \left(\frac{16}{2} - 8\right) - \left(\frac{4}{2} - 4\right) = (8 - 8) - (2 - 4) = 0 - (-2) = 2 \] Add the results of the two integrals:
\[ \text{Total Value} = \frac{1}{2} + 2 = \frac{5}{2} \] Step 4: Final Answer:
The value of the integral is $\frac{5{2}$}.
Was this answer helpful?
0
0

Questions Asked in CUET exam

View More Questions