← Back to learning objective

Evaluating a definite integral of |x| using triangle areas

Consider the function f(x)=∣x∣f(x) = |x| on the interval [−3,3][-3, 3].

The graph of f(x)=∣x∣f(x) = |x| on [−3,3][-3, 3] forms two right triangles, one on each side of the yy-axis.

Evaluating a definite integral of |x| using triangle areas graph

Using the geometry of the region shown (no antiderivatives), evaluate ∫−33∣x∣ dx.\int_{-3}^{3} |x|\, dx.

Hint

Split the region at x=0x=0 into two right triangles, each with base 3 and height 3. Recall that the area of a triangle is 12(base)(height)\frac{1}{2}(\text{base})(\text{height}), and since f(x)=∣x∣≥0f(x) = |x| \ge 0 everywhere on [−3,3][-3,3], both regions contribute positive area to the integral.

Step-by-step solution

The region under f(x)=∣x∣f(x) = |x| from −3-3 to 33 splits naturally at x=0x = 0 into two right triangles: one for x∈[−3,0]x \in [-3, 0] and one for x∈[0,3]x \in [0, 3]. Each triangle has base length 3 (along the xx-axis) and height 3 (the maximum value of ∣x∣|x| reached at x=−3x = -3 and x=3x = 3 respectively).

The area of each triangle is 12(3)(3)=92\frac{1}{2}(3)(3) = \frac{9}{2}. Since f(x)≥0f(x) \ge 0 on the whole interval, both areas count as positive area under the curve, so ∫−33∣x∣ dx=92+92=9\int_{-3}^3 |x|\,dx = \frac{9}{2} + \frac{9}{2} = 9.

Related problems

Practice similar Calculus problems interactively.

Start Closing the Gap