---
title: Problem set 3
heading: "Problem set 3: numerical integration, volumes, lengths and centers"
eyebrow: A6 · Problem set 3
type: problems
---

::: hook
These problems use lessons 11 to 14: numerical integration, volumes, arc length and surface area, and mass, charge and centers. Draw the slice first: a disk, a washer, a strip or a short piece of curve. The integral follows from the slice.
:::

::: pool
pick: 12

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

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

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

### What does the trapezoid rule give?

::: misses
- [any] $h\left(\tfrac12f_0 + f_1 + \cdots + \tfrac12f_n\right)$.
:::
:::

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

### By how much does it overestimate?

::: misses
- [any] Subtract $e - 1$.
:::
:::
:::

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

## A 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 is its order?

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

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

### What error will $8n$ slices give?

::: misses
- [any] Three halvings.
:::
:::
:::

::: check
kind: parts
given: r = 1 | 2 | 3; h = 2 | 5

## A cone has base radius {r} and height {h}.

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

### What is its volume?

::: misses
- [pi*r^2*h] That's the cylinder.
- [any] Disks of radius $rx/h$.
:::
:::

::: part
answer: pi*r*sqrt(r^2 + h^2)
tolerance: 0.5%

### What is its curved surface area?

::: misses
- [pi*r*h] Use the slant height $\sqrt{r^2 + h^2}$.
- [any] $\pi r\ell$ with $\ell$ the slant height.
:::
:::
:::

::: check
kind: parts
given: R = 2 | 3; a = 0.3 | 0.5

## A toroidal core has a circular cross-section of radius {a} cm centered {R} cm from its axis.

::: part
answer: 2*pi^2*R*a^2
unit: cm³
tolerance: 0.5%

### What is its volume, in cm³?

::: misses
- [pi*a^2*R] Multiply by the full circumference, $2\pi R$.
- [any] Cross-section area times $2\pi R$.
:::
:::

::: part
answer: 4*pi^2*R*a
unit: cm²
tolerance: 0.5%

### What is its surface area, in cm²?

::: misses
- [any] Cross-section perimeter, $2\pi a$, times $2\pi R$.
:::
:::
:::

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

## Find the length of $y = \frac{2\given{k}}{3}x^{3/2}$ from $x = 0$ to $x = 1$.

::: part
answer: 2/(3*k^2)*((1 + k^2)^1.5 - 1)
tolerance: 0.5%

### What is its length?

::: misses
- [any] $\int_0^1\sqrt{1 + k^2x}\,dx$.
:::
:::

::: part
answer: sqrt(1 + 4*k^2/9)
tolerance: 0.5%

### How long is the chord between the ends?

::: misses
- [any] From $(0, 0)$ to $(1, 2k/3)$.
:::
:::
:::

::: check
kind: parts
given: a = 500 | 1000; S = 200 | 400

## A cable hangs as $y = \given{a}\cosh(x/\given{a})$ across a {S} m span.

::: part
answer: 2*a*sinh(S/(2*a))
unit: m
tolerance: 0.5%

### How long is it?

::: misses
- [any] $\int\cosh(x/a)\,dx$ across the span.
:::
:::

::: part
answer: (2*a*sinh(S/(2*a)) - S)*100
tolerance: 0.5%

### How many centimeters longer than the span is it?

::: misses
- [any] Subtract the span; convert to cm.
:::
:::
:::

::: check
kind: parts
given: L = 1 | 2; k = 1 | 3

## A rod of length {L} m carries charge density $\lambda = (1 + \given{k}x/L)$ nC/m from $x = 0$.

::: part
answer: L*(1 + k/2)
unit: nC
tolerance: 0.5%

### What is its total charge?

::: misses
- [any] $\int_0^L(1 + kx/L)\,dx$.
:::
:::

::: part
answer: L*(1/2 + k/3)/(1 + k/2)
unit: m
tolerance: 0.5%

### Where is its center of charge?

::: misses
- [L/2] The density grows toward the far end, so the center is past the middle.
- [any] $\frac{\int x\lambda\,dx}{\int\lambda\,dx}$.
:::
:::
:::

::: check
kind: parts
given: R = 2 | 4; M = 0.5 | 1

## A uniform disk of mass {M} kg and radius {R} cm spins on its axis.

::: part
answer: M*(R/100)^2/2
unit: kg·m²
tolerance: 0.5%

### What is its moment of inertia, in kg·m²?

::: misses
- [M*(R/100)^2] For a disk it's $\tfrac12MR^2$; a thin ring would be $MR^2$.
- [any] $\int r^2\,dm$ with rings.
:::
:::

::: part
answer: 4*R/(3*pi)
unit: cm
tolerance: 0.5%

### Cut in half, where is the half-disk's center of mass, from the cut?

::: misses
- [any] $\frac{4R}{3\pi}$.
:::
:::
:::

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

## Spin the region under $y = \sqrt{x}$ from {a} to {b} around the $x$ axis.

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

### What volume does it make?

::: misses
- [pi*2/3*(b^1.5 - a^1.5)] Square the radius first.
- [any] $\pi\int_a^b x\,dx$.
:::
:::

::: part
answer: pi/6*((1 + 4*b)^1.5 - (1 + 4*a)^1.5)
tolerance: 0.5%

### What is the surface area of the curved part?

::: misses
- [any] $2\pi\int_a^b\sqrt x\sqrt{1 + \frac{1}{4x}}\,dx = \pi\int_a^b\sqrt{4x + 1}\,dx$.
:::
:::
:::

::: check
kind: parts
given: m = 5 | 10; t = 2 | 20

## A part's lifetime is exponential with mean {m} years.

::: part
answer: exp(-t/m)
tolerance: 0.5%

### What is the probability it lasts beyond {t} years?

::: misses
- [any] $\int_t^\infty\frac1me^{-x/m}dx$.
:::
:::

::: part
answer: m*ln(2)
unit: years
tolerance: 0.5%

### What is its median lifetime?

::: misses
- [m] That's the mean. The median is where half have failed.
- [any] Solve $e^{-t/m} = \tfrac12$.
:::
:::
:::

::: check
kind: parts
given: N = 8 | 10 | 12; V = 1 | 3.3

## An {N}-bit ADC spans {V} V. Its rounding error is uniform over one step.

::: part
answer: V/2^N*1000
unit: mV
tolerance: 0.5%

### What is one step?

::: misses
- [any] $V/2^N$.
:::
:::

::: part
answer: V/2^N/sqrt(12)*1000
unit: mV
tolerance: 0.5%

### What is the RMS of the rounding error?

::: misses
- [V/2^N/2*1000] The RMS of a uniform spread over $\Delta$ is $\Delta/\sqrt{12}$.
- [any] $\Delta/\sqrt{12}$.
:::
:::
:::

::: check
kind: parts
given: k = 2..6 int

## Simpson's rule with 2 slices on $\int_0^2 x^{\given{k}}\,dx$.

::: part
answer: (1/3)*(0 + 4*1 + 2^k)
tolerance: 0.5%

### What does it give?

::: misses
- [any] $\frac h3(f_0 + 4f_1 + f_2)$ with $h = 1$.
:::
:::

::: part
answer: 2^(k + 1)/(k + 1)
tolerance: 0.5%

### What is the exact value?

::: misses
- [any] $\frac{2^{k+1}}{k + 1}$.
:::
:::
:::

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

## Derive the sphere of radius {R}.

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

### What is its volume?

::: misses
- [any] Disks $\pi(R^2 - x^2)$ from $-R$ to $R$.
:::
:::

::: part
answer: 4*pi*R^2
tolerance: 0.5%

### What is its surface area?

::: misses
- [any] Surface of revolution of $\sqrt{R^2 - x^2}$: the integrand simplifies to $2\pi R$.
:::
:::
:::

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

## The rectangle $0 \le x \le \given{a}$, $0 \le y \le \given{b}$ has uniform density.

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

### Where is its center, in $x$?

::: misses
- [any] By symmetry.
:::
:::

::: part
answer: (a^2 + b^2)/3
tolerance: 0.5%

### What is its moment of inertia per unit mass about the corner at the origin, perpendicular to the plate?

::: misses
- [(a^2 + b^2)/12] That's about the center. About the corner it's four times as much.
- [any] $\frac{1}{ab}\iint(x^2 + y^2)\,dx\,dy$.
:::
:::
:::

::: check
kind: parts
given: h = 0.5 | 1; y1 = 3 | 4; y2 = 4 | 8; y3 = 2 | 6

## Samples every {h} s read 0, {y1}, {y2}, {y3} and 0.

::: part
answer: h*(y1 + y2 + y3)
tolerance: 0.5%

### What does the trapezoid rule give?

::: misses
- [any] The ends are zero, so it's $h$ times the sum of the inner samples.
:::
:::

::: part
answer: h/3*(4*y1 + 2*y2 + 4*y3)
tolerance: 0.5%

### What does Simpson's rule give?

::: misses
- [any] Weights 1, 4, 2, 4, 1 times $h/3$.
:::
:::
:::
:::
