---
title: Problem set 10
heading: "Problem set 10: techniques, numerical integration, areas and volumes"
eyebrow: A5 · Problem set 10
type: problems
---

::: hook
These problems use lessons 45 to 49: substitution and integration by parts, numerical integration, areas between curves and volumes by slicing. When an integral has a formula, find it; when it doesn't, estimate it numerically and say how good the estimate is.
:::

::: pool
pick: 12

::: check
kind: parts
given: a = 1 | 2 | 3

## Use substitution.

::: part
answer: (exp(a) - 1)/(2*a)
tolerance: 0.5%

### $\displaystyle\int_0^1 xe^{\given{a}x^2}\,dx$

::: misses
- [(exp(a) - 1)/a] With $u = ax^2$, $du = 2ax\,dx$: there's a factor $\frac{1}{2a}$.
- [any] Substitute $u = ax^2$.
:::
:::

::: part
answer: (1 - cos(a))/a
tolerance: 0.5%

### $\displaystyle\int_0^1 \sin(\given{a}x)\,dx$

::: misses
- [any] An antiderivative is $-\cos(ax)/a$.
:::
:::
:::

::: check
kind: parts
given: a = 2..8 int

## Use integration by parts.

::: part
answer: (1 - exp(-a)*(1 + a))/a^2
tolerance: 0.5%

### $\displaystyle\int_0^1 xe^{-\given{a}x}\,dx$

::: misses
- [any] $u = x$, $dv = e^{-ax}dx$: $-\frac{x}{a}e^{-ax} - \frac{1}{a^2}e^{-ax}$.
:::
:::

::: part
answer: 1/a^2
tolerance: 0.5%

### $\displaystyle\int_0^\infty te^{-\given{a}t}\,dt$

::: misses
- [1/a] By parts, it's $1/a^2$.
- [any] Let the upper limit grow in the same antiderivative.
:::
:::
:::

::: check
kind: parts
given: b = 2 | 3 | 5

## Integrate $\ln x$ by parts, with $u = \ln x$ and $dv = dx$.

::: part
answer: b*ln(b) - b + 1
tolerance: 0.5%

### $\displaystyle\int_1^{\given{b}}\ln x\,dx$

::: misses
- [b*ln(b) - b] Subtract the antiderivative's value at 1, which is $-1$.
- [any] An antiderivative is $x\ln x - x$.
:::
:::

::: part
answer: (b*ln(b) - b + 1)/(b - 1)
tolerance: 0.5%

### What is the average of $\ln x$ over $[1, \given{b}]$?

::: misses
- [any] The integral over the width.
:::
:::
:::

::: check
kind: parts
given: n = 2 | 4 | 8

## Estimate $\int_0^1 e^x\,dx$ (exactly $e - 1$) with the trapezoid rule and {n} slices.

::: part
answer: (1/n)*(exp(1) - 1)*(exp(1/n) + 1)/(2*(exp(1/n) - 1))
tolerance: 0.01%

### What does it give?

::: misses
- [any] $h\left(\tfrac12f_0 + f_1 + \cdots + f_{n-1} + \tfrac12f_n\right)$ with $h = 1/n$.
:::
:::

::: part
answer: (exp(1) - 1)/(12*n^2)
tolerance: 2%

### The error estimate $\frac{(b - a)h^2}{12}\overline{f''}$, with $\overline{f''} = \frac{f'(1) - f'(0)}{1}$, gives what?

::: misses
- [any] $\frac{h^2}{12}(e - 1)$.
:::
:::
:::

::: check
kind: parts
given: c = 1..6 int

## Simpson's rule with two slices for $\int_0^{\given{c}}x^4\,dx$.

::: part
answer: c/6*(0 + 4*(c/2)^4 + c^4)
tolerance: 0.5%

### What does it give?

::: misses
- [c^5/5] That's the exact value; Simpson's rule isn't exact for $x^4$.
- [any] $\frac h3(f_0 + 4f_1 + f_2)$ with $h = c/2$.
:::
:::

::: part
answer: c/6*(0 + 4*(c/2)^4 + c^4) - c^5/5
tolerance: 0.5%

### By how much does it overshoot the exact value?

::: misses
- [any] Subtract $c^5/5$.
:::
:::
:::

::: check
kind: parts
given: T1 = 1.727 | 0.783; d = 0.007 | -0.003 | 0.012; let T2 = T1 + d

## The trapezoid rule gives {T1} with $n$ slices and {T2} with $2n$ slices.

::: part
answer: (T2 - T1)/3
tolerance: 0.5%

### What is the estimated error in the second value?

::: misses
- [T2 - T1] Divide by 3: the error falls by 4, so the change is three times the remaining error.
- [any] $\frac{T_{2n} - T_n}{3}$.
:::
:::

::: part
answer: T2 + (T2 - T1)/3
tolerance: 0.01%

### What is the corrected (Richardson) value?

::: misses
- [any] $T_{2n} + \frac{T_{2n} - T_n}{3}$.
:::
:::
:::

::: check
kind: parts
given: c = 1 | 4 | 9

## Find the area between $y = x^2$ and $y = \given{c}$.

::: part
answer: sqrt(c)
tolerance: 0.5%

### Where does the parabola meet the line, to the right of 0?

::: misses
- [any] $x^2 = c$.
:::
:::

::: part
answer: 4/3*c^1.5
tolerance: 0.5%

### What is the area enclosed?

::: misses
- [2/3*c^1.5] That's only the right half. The region is symmetric.
- [any] $\int_{-\sqrt c}^{\sqrt c}(c - x^2)\,dx$.
:::
:::
:::

::: check
kind: parts
given: a = 1 | 2; b = 2 | 4

## The region under $y = \given{a}\sqrt{x}$ from 0 to {b} is spun around the $x$ axis.

::: part
answer: pi*a^2*b^2/2
tolerance: 0.5%

### What volume does it make?

::: misses
- [pi*a*b^1.5*2/3] Square the radius: the disk area is $\pi a^2x$.
- [any] $\pi\int_0^b a^2x\,dx$.
:::
:::

::: part
answer: pi*a^2*b^2
tolerance: 0.5%

### What is the volume of the cylinder around it, radius $\given{a}\sqrt{\given{b}}$ and length {b}?

::: misses
- [any] $\pi r^2h$.
:::
:::
:::

::: check
kind: parts
given: k = 1 | 1.5 | 2 | 2.5 | 3 | 4

## The region between $y = \given{k}x$ and $y = x^2$ is spun around the $x$ axis.

::: part
answer: 2*pi*k^5/15
tolerance: 0.5%

### What volume does it make?

::: misses
- [pi*k^5/30] Square each radius before subtracting: $\pi(k^2x^2 - x^4)$.
- [any] Washers from 0 to $k$.
:::
:::

::: part
answer: k^3/6
tolerance: 0.5%

### What is the area of the region itself?

::: misses
- [any] $\int_0^k(kx - x^2)\,dx$.
:::
:::
:::

::: check
kind: parts
given: a = 1 | 2 | 3

## The region under $y = x(\given{a} - x)$ is spun around the $y$ axis. Use shells.

::: part
answer: pi*a^4/6
tolerance: 0.5%

### What volume does it make?

::: misses
- [pi*a^4/12] Each shell's circumference is $2\pi x$.
- [any] $\int_0^a 2\pi x \cdot x(a - x)\,dx$.
:::
:::

::: part
answer: a^3/6
tolerance: 0.5%

### What is the area of the region?

::: misses
- [any] $\int_0^a x(a - x)\,dx$.
:::
:::
:::

::: check
kind: parts
given: y1 = 2 | 3; y2 = 4 | 6; y3 = 1 | 2; h1 = 0.1 | 0.2; h2 = 0.3 | 0.5; h3 = 0.2 | 0.4

## A power log reads 0 W, then {y1} W, {y2} W and {y3} W, at gaps of {h1}, {h2} and {h3} s.

::: part
answer: y1/2*h1 + (y1 + y2)/2*h2 + (y2 + y3)/2*h3
unit: J
tolerance: 0.5%

### What energy does the trapezoid rule give?

::: misses
- [any] Add $\frac{y_k + y_{k+1}}{2}\Delta t_k$.
:::
:::

::: part
answer: (y1/2*h1 + (y1 + y2)/2*h2 + (y2 + y3)/2*h3)/(h1 + h2 + h3)
unit: W
tolerance: 0.5%

### What is the average power over the log?

::: misses
- [any] Energy over total time.
:::
:::
:::

::: check
kind: parts
given: e1 = 0.004 | 0.01; r = 4 | 16

## An integration rule's error is {e1} with $n$ slices and $\given{e1}/\given{r}$ with $2n$.

::: part
answer: ln(r)/ln(2)
tolerance: 0.5%

### What power of $h$ does its error go as?

::: misses
- [any] Solve $2^p = r$.
:::
:::

::: part
answer: e1/r^2
tolerance: 0.5%

### What will its error be with $4n$ slices?

::: misses
- [any] Divide by {r} again.
:::
:::
:::

::: check
kind: parts
given: x0 = 0.2 | 0.3 | 0.5 | 0.6 | 0.7 | 1

## Compare $\sin x$ and $\cos x$ on $[0, \pi/4]$, where the cosine is on top.

::: part
answer: sqrt(2) - 1
tolerance: 0.5%

### What is the area between them there?

::: misses
- [any] $\int_0^{\pi/4}(\cos x - \sin x)\,dx$.
:::
:::

::: part
answer: sin(x0) + cos(x0) - 1
tolerance: 0.5%

### What is $\int_0^{\given{x0}}(\cos x - \sin x)\,dx$?

::: misses
- [any] An antiderivative is $\sin x + \cos x$.
:::
:::
:::

::: check
kind: parts
given: r = 1 | 2 | 5

## Find the volume of a sphere of radius {r} by disks: spin $y = \sqrt{\given{r}^2 - x^2}$ around the $x$ axis.

::: part
answer: 4/3*pi*r^3
tolerance: 0.5%

### What volume does it make?

::: misses
- [2/3*pi*r^3] That's a hemisphere: integrate from $-r$ to $r$.
- [any] Integrate $\pi(r^2 - x^2)$ across the whole diameter.
:::
:::

::: part
answer: 11*pi*r^3/24
tolerance: 0.5%

### What volume lies between $x = 0$ and $x = \given{r}/2$?

::: misses
- [any] $\pi\int_0^{r/2}(r^2 - x^2)\,dx$.
:::
:::
:::

::: check
kind: parts
given: h = 0.1 | 0.5; p1 = 3 | 5; p2 = 4 | 8; p3 = 2 | 6

## Power samples every {h} s read 0, {p1}, {p2}, {p3} and 0 W.

::: part
answer: h/3*(0 + 4*p1 + 2*p2 + 4*p3 + 0)
unit: J
tolerance: 0.5%

### What energy does Simpson's rule give?

::: misses
- [h*(p1 + p2 + p3)] That's the trapezoid rule (the end samples are 0).
- [any] Weights 1, 4, 2, 4, 1, times $h/3$.
:::
:::

::: part
answer: h*(p1 + p2 + p3)
unit: J
tolerance: 0.5%

### What does the trapezoid rule give?

::: misses
- [any] $h(\tfrac12 \cdot 0 + p_1 + p_2 + p_3 + \tfrac12 \cdot 0)$.
:::
:::
:::
:::
