Adding up over an interval#
The definite integral ∫ a b f ( x ) d x \displaystyle \int_a^b f(x)\,dx ∫ a b f ( x ) d x adds up f f f over a whole interval. On a graph, it is the signed area under the curve. The beautiful surprise, called the fundamental theorem of calculus, is that you do not need to add up anything by hand: any antiderivative gives you the answer. We will evaluate definite integrals, including by substitution, learn the properties that turn long problems into short ones, and finish with mixed practice.
Definite integrals#
For f f f continuous on [ a , b ] [a, b] [ a , b ] , picture the area under the curve filled with thin rectangles; the definite integral is the limit of their total area as they get thinner. The fundamental theorem of calculus then says: if F ′ = f F' = f F ′ = f , then
∫ a b f ( x ) d x = F ( b ) − F ( a ) = [ F ( x ) ] a b . \displaystyle \int_a^b f(x)\,dx = F(b) - F(a) = \big[F(x)\big]_a^b. ∫ a b f ( x ) d x = F ( b ) − F ( a ) = [ F ( x ) ] a b .
Example 1. ∫ 1 3 ( 2 x 2 − x ) d x = [ 2 x 3 3 − x 2 2 ] 1 3 = ( 18 − 4.5 ) − ( 2 3 − 1 2 ) = 40 3 \displaystyle \int_1^3(2x^2 - x)\,dx = \left[\tfrac{2x^3}{3} - \tfrac{x^2}{2}\right]_1^3 = (18 - 4.5) - \left(\tfrac{2}{3} - \tfrac{1}{2}\right) = \tfrac{40}{3} ∫ 1 3 ( 2 x 2 − x ) d x = [ 3 2 x 3 − 2 x 2 ] 1 3 = ( 18 − 4.5 ) − ( 3 2 − 2 1 ) = 3 40 .
The integral from 1 to 3 is the limit of the rectangle sums: 40/3.
Example 2. ∫ 0 π / 4 sec 2 x d x = tan π 4 − tan 0 = 1 \displaystyle \int_0^{\pi/4}\sec^2 x\,dx = \tan\tfrac{\pi}{4} - \tan 0 = 1 ∫ 0 π /4 sec 2 x d x = tan 4 π − tan 0 = 1 . ∫ 0 1 d x 1 + x 2 = π 4 \displaystyle \int_0^1\frac{dx}{1 + x^2} = \tfrac{\pi}{4} ∫ 0 1 1 + x 2 d x = 4 π .
With substitution , remember to change the limits as well, and you never need to go back to the old variable. Example 3. ∫ 0 2 x x 2 + 5 d x \displaystyle \int_0^2 x\sqrt{x^2 + 5}\,dx ∫ 0 2 x x 2 + 5 d x . As we move across the interval, t = x 2 + 5 t = x^2 + 5 t = x 2 + 5 runs from 5 5 5 to 9 9 9 , so we get 1 2 ∫ 5 9 t 1 / 2 d t = 1 3 ( 27 − 5 5 ) \displaystyle \tfrac{1}{2}\int_5^9 t^{1/2}\,dt = \tfrac{1}{3}\left(27 - 5\sqrt{5}\right) 2 1 ∫ 5 9 t 1/2 d t = 3 1 ( 27 − 5 5 ) .
Example 4. ∫ 0 π / 2 sin 2 x cos x d x = [ sin 3 x 3 ] 0 π / 2 = 1 3 \displaystyle \int_0^{\pi/2}\sin^2 x\cos x\,dx = \left[\tfrac{\sin^3 x}{3}\right]_0^{\pi/2} = \tfrac{1}{3} ∫ 0 π /2 sin 2 x cos x d x = [ 3 s i n 3 x ] 0 π /2 = 3 1 .
Properties that save work#
∫ a b f = − ∫ b a f \displaystyle \int_a^b f = -\int_b^a f ∫ a b f = − ∫ b a f ; ∫ a a f = 0 \displaystyle \int_a^a f = 0 ∫ a a f = 0 .
∫ a b f = ∫ a c f + ∫ c b f \displaystyle \int_a^b f = \int_a^c f + \int_c^b f ∫ a b f = ∫ a c f + ∫ c b f .
∫ a b f ( x ) d x = ∫ a b f ( a + b − x ) d x \displaystyle \int_a^b f(x)\,dx = \int_a^b f(a + b - x)\,dx ∫ a b f ( x ) d x = ∫ a b f ( a + b − x ) d x .
∫ 0 a f ( x ) d x = ∫ 0 a f ( a − x ) d x \displaystyle \int_0^a f(x)\,dx = \int_0^a f(a - x)\,dx ∫ 0 a f ( x ) d x = ∫ 0 a f ( a − x ) d x .
∫ − a a f = 2 ∫ 0 a f \displaystyle \int_{-a}^a f = 2\int_0^a f ∫ − a a f = 2 ∫ 0 a f if f f f is even, and 0 0 0 if f f f is odd.
∫ 0 2 a f = 2 ∫ 0 a f \displaystyle \int_0^{2a} f = 2\int_0^a f ∫ 0 2 a f = 2 ∫ 0 a f if f ( 2 a − x ) = f ( x ) f(2a - x) = f(x) f ( 2 a − x ) = f ( x ) , and 0 0 0 if f ( 2 a − x ) = − f ( x ) f(2a - x) = -f(x) f ( 2 a − x ) = − f ( x ) .
Example 5. ∫ − 2 2 ∣ x + 1 ∣ d x = ∫ − 2 − 1 ( − x − 1 ) d x + ∫ − 1 2 ( x + 1 ) d x = 1 2 + 9 2 = 5 \displaystyle \int_{-2}^{2}\lvert x + 1 \rvert\,dx = \int_{-2}^{-1}(-x - 1)\,dx + \int_{-1}^{2}(x + 1)\,dx = \tfrac{1}{2} + \tfrac{9}{2} = 5 ∫ − 2 2 ∣ x + 1 ∣ d x = ∫ − 2 − 1 ( − x − 1 ) d x + ∫ − 1 2 ( x + 1 ) d x = 2 1 + 2 9 = 5 .
Splitting at the corner x = -1 gives two triangles: 1/2 + 9/2 = 5.
Example 6. ∫ − 1 1 ( x 5 + x 3 cos x ) d x = 0 \displaystyle \int_{-1}^{1}(x^5 + x^3\cos x)\,dx = 0 ∫ − 1 1 ( x 5 + x 3 cos x ) d x = 0 , with no calculation at all, because the integrand is odd.
For an odd integrand the two halves cancel, so the integral is 0.
Example 7. I = ∫ 0 π / 2 sin x sin x + cos x d x \displaystyle I = \int_0^{\pi/2}\frac{\sin x}{\sin x + \cos x}\,dx I = ∫ 0 π /2 sin x + cos x sin x d x . This looks hard, but property 4 gives I = ∫ 0 π / 2 cos x cos x + sin x d x \displaystyle I = \int_0^{\pi/2}\frac{\cos x}{\cos x + \sin x}\,dx I = ∫ 0 π /2 cos x + sin x cos x d x . Add the two forms and the integrand collapses to one, so 2 I = π 2 \displaystyle 2I = \tfrac{\pi}{2} 2 I = 2 π , I = π 4 \displaystyle I = \tfrac{\pi}{4} I = 4 π .
Example 8. ∫ 0 π x sin x 1 + cos 2 x d x \displaystyle \int_0^{\pi}\frac{x\sin x}{1 + \cos^2 x}\,dx ∫ 0 π 1 + cos 2 x x sin x d x . Replace x x x by π − x \pi - x π − x and add the two versions: 2 I = π ∫ 0 π sin x 1 + cos 2 x d x = π ⋅ π 2 \displaystyle 2I = \pi\int_0^\pi\frac{\sin x}{1 + \cos^2 x}dx = \pi \cdot \tfrac{\pi}{2} 2 I = π ∫ 0 π 1 + cos 2 x sin x d x = π ⋅ 2 π , so I = π 2 4 \displaystyle I = \tfrac{\pi^2}{4} I = 4 π 2 .
Mixed practice#
∫ 0 2 ( x 3 + 2 x ) d x \displaystyle \int_0^2(x^3 + 2x)\,dx ∫ 0 2 ( x 3 + 2 x ) d x ; ∫ 1 e d x x \displaystyle \int_1^e\tfrac{dx}{x} ∫ 1 e x d x ; ∫ 0 π / 3 cos x d x \displaystyle \int_0^{\pi/3}\cos x\,dx ∫ 0 π /3 cos x d x .
∫ 0 1 x x 2 + 1 d x \displaystyle \int_0^1\frac{x}{x^2 + 1}\,dx ∫ 0 1 x 2 + 1 x d x ; ∫ 1 2 d x x ( 1 + log x ) 2 \displaystyle \int_1^2\frac{dx}{x(1 + \log x)^2} ∫ 1 2 x ( 1 + log x ) 2 d x .
∫ 0 π / 2 cos 2 x d x \displaystyle \int_0^{\pi/2}\cos^2 x\,dx ∫ 0 π /2 cos 2 x d x ; ∫ 0 1 x e x d x \displaystyle \int_0^{1}xe^x\,dx ∫ 0 1 x e x d x .
∫ − 3 3 ∣ x − 1 ∣ d x \displaystyle \int_{-3}^{3}\lvert x - 1 \rvert\,dx ∫ − 3 3 ∣ x − 1 ∣ d x .
∫ − π / 2 π / 2 sin 7 x d x \displaystyle \int_{-\pi/2}^{\pi/2}\sin^7 x\,dx ∫ − π /2 π /2 sin 7 x d x ; ∫ − 1 1 ( x 2 + x 3 ) d x \displaystyle \int_{-1}^{1}(x^2 + x^3)\,dx ∫ − 1 1 ( x 2 + x 3 ) d x .
∫ 0 π / 2 sin x sin x + cos x d x \displaystyle \int_0^{\pi/2}\frac{\sqrt{\sin x}}{\sqrt{\sin x} + \sqrt{\cos x}}\,dx ∫ 0 π /2 sin x + cos x sin x d x .
∫ 2 8 10 − x x + 10 − x d x \displaystyle \int_2^8\frac{\sqrt{10 - x}}{\sqrt{x} + \sqrt{10 - x}}\,dx ∫ 2 8 x + 10 − x 10 − x d x .
∫ 0 π / 2 log ( sin x ) d x \displaystyle \int_0^{\pi/2}\log(\sin x)\,dx ∫ 0 π /2 log ( sin x ) d x (answer: − π 2 log 2 \displaystyle -\tfrac{\pi}{2}\log 2 − 2 π log 2 ; show the key step 2 I = ∫ 0 π / 2 log sin 2 x 2 d x \displaystyle 2I = \int_0^{\pi/2}\log\tfrac{\sin 2x}{2}\,dx 2 I = ∫ 0 π /2 log 2 s i n 2 x d x ).
∫ 0 4 d x x 2 + 9 \displaystyle \int_0^4\frac{dx}{\sqrt{x^2 + 9}} ∫ 0 4 x 2 + 9 d x .
∫ 1 3 d x x ( x + 1 ) \displaystyle \int_1^3\frac{dx}{x(x + 1)} ∫ 1 3 x ( x + 1 ) d x .
∫ 0 1 tan − 1 x d x \displaystyle \int_0^1\tan^{-1}x\,dx ∫ 0 1 tan − 1 x d x .
∫ 0 2 [ x ] d x \displaystyle \int_0^{2}[x]\,dx ∫ 0 2 [ x ] d x where [ x ] [x] [ x ] is the greatest integer function.
Answers to check against#
Show answers
8 8 8 ; 1 1 1 ; 3 2 \displaystyle \tfrac{\sqrt{3}}{2} 2 3 .
1 2 log 2 \displaystyle \tfrac{1}{2}\log 2 2 1 log 2 ; with t = 1 + log x t = 1 + \log x t = 1 + log x it comes to 1 − 1 1 + log 2 \displaystyle 1 - \tfrac{1}{1 + \log 2} 1 − 1 + l o g 2 1 .
π 4 \displaystyle \tfrac{\pi}{4} 4 π ; 1 1 1 .
∫ − 3 1 ( 1 − x ) d x + ∫ 1 3 ( x − 1 ) d x = 8 + 2 = 10 \displaystyle \int_{-3}^{1}(1 - x)dx + \int_1^3(x - 1)dx = 8 + 2 = 10 ∫ − 3 1 ( 1 − x ) d x + ∫ 1 3 ( x − 1 ) d x = 8 + 2 = 10 .
0 0 0 ; 2 3 \displaystyle \tfrac{2}{3} 3 2 .
π 4 \displaystyle \tfrac{\pi}{4} 4 π .
Use property 3 with a + b = 10 a + b = 10 a + b = 10 : 2 I = 6 2I = 6 2 I = 6 , I = 3 I = 3 I = 3 .
Adding I I I to its cos \cos cos version gives 2 I = ∫ 0 π / 2 log sin 2 x d x − π 2 log 2 = I − π 2 log 2 \displaystyle 2I = \int_0^{\pi/2}\log\sin 2x\,dx - \tfrac{\pi}{2}\log 2 = I - \tfrac{\pi}{2}\log 2 2 I = ∫ 0 π /2 log sin 2 x d x − 2 π log 2 = I − 2 π log 2 .
log ∣ x + x 2 + 9 ∣ \log\lvert x + \sqrt{x^2 + 9}\rvert log ∣ x + x 2 + 9 ∣ from 0 0 0 to 4 4 4 : log 9 − log 3 = log 3 \log 9 - \log 3 = \log 3 log 9 − log 3 = log 3 .
[ log x x + 1 ] 1 3 = log 3 4 − log 1 2 = log 3 2 \displaystyle \left[\log\tfrac{x}{x + 1}\right]_1^3 = \log\tfrac{3}{4} - \log\tfrac{1}{2} = \log\tfrac{3}{2} [ log x + 1 x ] 1 3 = log 4 3 − log 2 1 = log 2 3 .
π 4 − 1 2 log 2 \displaystyle \tfrac{\pi}{4} - \tfrac{1}{2}\log 2 4 π − 2 1 log 2 .
0 + 1 = 1 0 + 1 = 1 0 + 1 = 1 .