← Back to learning objective

Evaluating a piecewise linear integral as a triangle area

Consider the piecewise function f(x)={x0≤x≤3−x+63<x≤6f(x) = \begin{cases} x & 0 \le x \le 3 \\ -x+6 & 3 < x \le 6 \end{cases}

The graph of f(x)f(x) below rises in a straight line from (0,0)(0,0) to (3,3)(3,3), then falls in a straight line from (3,3)(3,3) to (6,0)(6,0).

Evaluating a piecewise linear integral as a triangle area graph

Using a geometric area formula (no antiderivatives), evaluate ∫06f(x) dx.\int_0^6 f(x)\,dx.

Hint

Sketch the region under the graph from x=0x=0 to x=6x=6 and identify what standard shape it forms. Then use its base and height to find the area — this area equals the value of the integral since f(x)≥0f(x) \ge 0 on [0,6][0,6].

Step-by-step solution

The graph of f(x)f(x) consists of two line segments meeting at the point (3,3)(3,3): one rising from (0,0)(0,0) to (3,3)(3,3), and one falling from (3,3)(3,3) to (6,0)(6,0). Together with the x-axis, these segments enclose a triangle with base along the x-axis from x=0x=0 to x=6x=6 and a peak height of 33 at x=3x=3.

The triangle has base 66 (from x=0x=0 to x=6x=6) and height 33 (the maximum value of ff). Since f(x)≥0f(x) \ge 0 everywhere on [0,6][0,6], the integral equals the area of this region: ∫06f(x) dx=12(6)(3)=9.\int_0^6 f(x)\,dx = \frac{1}{2}(6)(3) = 9.

Identifying the triangle's peak height

Hint
Step-by-step solution

The peak height is three. The two line segments meet at the point where x equals three and f of x equals three, forming the apex of the triangle used to compute the area under the curve.

Related problems

Practice similar Calculus problems interactively.

Start Closing the Gap