area x,0,-1,1
1) The area between x and 0 on [-1, 1] is the integral of the absolute value of their difference
Split the interval at the interior intersections: (-1, 0, 1)
On [-1, 0], 0 is above x: integrate -x
⇥1.1) Let's integrate: ∫-10(-x)dx
⇥ⓘ An antiderivative of x^n is x^(n+1)/(n+1), for n ≠ -1: ∫(-x)dx = -x22
▷ -x22
⇥1.2) Let's evaluate over the interval [-1, 0]: -022 + (-1)22
⇥ⓘ Powers are computed before multiplications, additions and subtractions. An integer power is a repeated product: (-1)2 = (-1)·(-1) = 1
⇥ 0 + 12
⇥ⓘ Adding 0 changes nothing: 0 + 12 = 12
⇥ 12
The area on [-1, 0] is 12
On [0, 1], x is above 0: integrate x
⇥1.3) Let's compute the integral: ∫01xdx
⇥ⓘ An antiderivative of x^n is x^(n+1)/(n+1), for n ≠ -1: ∫xdx = x22
▷ x22
⇥1.4) Let's evaluate for the interval [0, 1]: 122 -022
⇥ 12 + 0
⇥ⓘ Adding 0 changes nothing: 12 + 0 = 12
⇥ 12
The area on [0, 1] is 12
⇥ 12 + 12
⇥ⓘ To add fractions, put them over the same denominator, then add the numerators: 12 + 12 = 1 + 12
⇥ 1 + 12
⇥ⓘ The numerator and the denominator are computed before the division: 1 + 1 = 2
⇥ 22
ⓘ We simplify the fraction by dividing the numerator and the denominator by 2, their greatest common divisor: 22 = 1
▶Area:   1