← Back to learning objective

Evaluating a V-shaped integral using triangle areas

Consider the function f(x)=∣x−5∣f(x) = |x - 5| on the interval [2,8][2, 8]. Its graph forms a V-shape with the vertex at (5,0)(5, 0).

The graph of f(x)=∣x−5∣f(x) = |x-5| on [2,8][2,8] consists of two line segments meeting at (5,0)(5,0), forming two triangular regions with the xx-axis.

Evaluating a V-shaped integral using triangle areas graph

Use the areas of the two triangles formed by the graph and the xx-axis to evaluate ∫28∣x−5∣ dx.\int_2^8 |x-5|\, dx.

Hint

Split the interval at x=5x=5 where the V has its vertex. On [2,5][2,5] the graph forms a triangle with base 3 and height 3; on [5,8][5,8] it forms a triangle with base 3 and height 3. Since f(x)≥0f(x) \geq 0 everywhere on [2,8][2,8], both areas count as positive contributions to the integral.

Step-by-step solution

The graph of f(x)=∣x−5∣f(x) = |x-5| lies entirely above the xx-axis on [2,8][2,8], since f(x)≥0f(x) \geq 0 for all xx. It forms two right triangles: one on [2,5][2,5] with base 5−2=35-2=3 and height f(2)=3f(2) = 3, and another on [5,8][5,8] with base 8−5=38-5=3 and height f(8)=3f(8) = 3.

Each triangle has area 12(3)(3)=92\frac{1}{2}(3)(3) = \frac{9}{2}. Since both regions lie above the xx-axis, both areas contribute positively to the integral, so ∫28∣x−5∣ dx=92+92=9.\int_2^8 |x-5|\,dx = \frac{9}{2} + \frac{9}{2} = 9.

Related problems

Practice similar Calculus problems interactively.

Start Closing the Gap