---
title: Midterm exam
heading: "Midterm exam: integration and series"
eyebrow: A6 · Midterm exam
type: problems
---

::: hook
Twelve problems from the first half of the course: integration techniques, applications of integrals, sequences and the convergence tests. Give yourself two hours, work without the lessons open, and write out your reasoning before checking each answer. "Another set" deals a different exam.
:::

::: pool
pick: 12

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

## Integrate by parts.

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

### $\displaystyle\int_0^\infty t\,e^{-\given{k}t}\,dt$

::: misses
- [1/k] That's without the factor $t$.
- [any] $u = t$, $dv = e^{-kt}dt$.
:::
:::

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

### $\displaystyle\int_0^\infty t^2e^{-\given{k}t}\,dt$

::: misses
- [any] Parts twice, or use the first part's result.
:::
:::
:::

::: check
kind: parts
given: A = 2 | 3; B = 1 | 4; R = 10 | 20

## A current $i = \given{A}\sin\omega t + \given{B}\cos\omega t$ A flows through {R} Ω.

::: part
answer: (A^2 + B^2)*R/2
unit: W

### What is the average power?

::: misses
- [(A + B)^2*R/2] The cross term $\sin\omega t\cos\omega t$ averages to zero.
- [any] Square, then average each term.
:::
:::

::: part
answer: sqrt(A^2 + B^2)
unit: A

### What is the current's peak value?

::: misses
- [A + B] The two parts are 90° apart, so their peaks don't line up.
- [any] Combine into one sinusoid: amplitude $\sqrt{A^2 + B^2}$.
:::
:::
:::

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

## Use trigonometric substitution.

::: part
answer: ln(b/a + sqrt(1 + b^2/a^2))
tolerance: 0.5%

### $\displaystyle\int_0^{\given{b}}\frac{dx}{\sqrt{\given{a}^2 + x^2}}$ (with $x = a\tan\theta$, it becomes $\int\sec\theta\,d\theta = \ln|\sec\theta + \tan\theta|$)

::: misses
- [any] $\ln\left(\frac{x}{a} + \sqrt{1 + \frac{x^2}{a^2}}\right)$ from 0 to $b$.
:::
:::

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

### $\displaystyle\int_0^{\given{a}}\sqrt{\given{a}^2 - x^2}\,dx$

::: misses
- [pi*a^2/2] That's a half disk. This is a quarter.
- [any] $x = a\sin\theta$, or recognize the shape.
:::
:::
:::

::: check
kind: parts
given: a = 1 | 2; p = 2 | 3; q = 7 | 11

## Partial fractions.

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

### $\displaystyle\int_0^1\frac{dx}{(x + \given{a})(x + \given{a} + 1)}$

::: misses
- [any] $\frac{1}{x + a} - \frac{1}{x + a + 1}$.
:::
:::

::: part
answer: (q - p)/3
tolerance: 0.5%

### In $\dfrac{\given{p}s + \given{q}}{(s + 1)(s + 4)} = \dfrac{A}{s + 1} + \dfrac{B}{s + 4}$, what is $A$?

::: misses
- [any] Cover up $(s + 1)$ and set $s = -1$.
:::
:::
:::

::: check
kind: parts
given: V0 = 10 | 24; tau = 2 | 5; R = 100 | 200; p = 3 | 5

## Improper integrals.

::: part
answer: V0^2*tau*1e-3/(2*R)
unit: J

### A voltage $\given{V0}e^{-t/\tau}$ V with $\tau$ = {tau} ms appears across {R} Ω from $t = 0$ on. What energy does the resistor absorb?

::: misses
- [V0^2*tau*1e-3/R] The power decays with time constant $\tau/2$.
- [any] $\int_0^\infty v^2/R\,dt$.
:::
:::

::: part
answer: 1/(p - 1)
tolerance: 0.5%

### $\displaystyle\int_1^\infty x^{-\given{p}}\,dx$

::: misses
- [any] $\frac{x^{1-p}}{1 - p}$ from 1 to ∞.
:::
:::
:::

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

## Integrate $x^2$ over $[0, 1]$ numerically with {n} slices.

::: part
answer: 1/3 + 1/(6*n^2)
tolerance: 0.01%

### What does the trapezoid rule give?

::: misses
- [1/3] That's exact. The trapezoid rule overestimates a curve that bends up.
- [any] $h\left(\frac{f_0}{2} + f_1 + \cdots + \frac{f_n}{2}\right)$ with $h = 1/n$.
:::
:::

::: part
answer: 1/(6*n^2)
tolerance: 0.5%

### What is its error?

::: misses
- [any] Subtract the exact value, $\frac{1}{3}$.
:::
:::
:::

::: check
kind: parts
given: k = 1 | 2 | 4

## The region under $y = e^{-\given{k}x}$ for $x \ge 0$ is spun around an axis.

::: part
answer: pi/(2*k)
tolerance: 0.5%

### Around the $x$ axis, what volume does it sweep out?

::: misses
- [pi/k] Square the radius: $e^{-2kx}$.
- [any] Disks: $\pi\int_0^\infty e^{-2kx}dx$.
:::
:::

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

### Around the $y$ axis?

::: misses
- [any] Shells: $2\pi\int_0^\infty x\,e^{-kx}dx$.
:::
:::
:::

::: check
kind: parts
given: a = 400 | 800; S = 150 | 250

## A cable spans {S} m as a catenary with $a$ = {a} m.

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

### How much does it sag?

::: misses
- [any] $a\cosh\frac{S}{2a} - a$.
:::
:::

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

### How much longer than the span is it, in cm?

::: misses
- [any] $2a\sinh\frac{S}{2a} - S$.
:::
:::
:::

::: check
kind: parts
given: l0 = 3 | 6; L = 2 | 4

## A rod from 0 to {L} m carries $\lambda = \given{l0}\left(1 - \frac{x}{L}\right)$ nC/m, densest at the left end.

::: part
answer: l0*L/2
unit: nC

### What is its total charge, in nC?

::: misses
- [l0*L] The density falls to zero at the right end; the average is half.
- [any] The area of a triangle.
:::
:::

::: part
answer: L/3
unit: m
tolerance: 0.5%

### Where is its center of charge, in m?

::: misses
- [2*L/3] The charge is denser on the left, so the center is on the left.
- [L/2] That's for a uniform rod.
- [any] $\int x\lambda\,dx / Q$.
:::
:::
:::

::: check
kind: parts
given: m = 4 | 8; t = 1 | 6

## A capacitor's lifetime is exponential with a mean of {m} years.

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

### What is the chance it lasts more than {t} years?

::: misses
- [1 - exp(-t/m)] That's the chance it fails first.
- [any] $e^{-t/m}$.
:::
:::

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

### By what age have half of them failed?

::: misses
- [m] The median is shorter than the mean.
- [any] Solve $e^{-t/m} = \frac{1}{2}$.
:::
:::
:::

::: check
kind: parts
given: a = 2 | 3; b = 0.6 | 0.8

## The iteration $x_{n+1} = \given{a} + \given{b}x_n$ starts at $x_0 = 0$.

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

### What does it converge to?

::: misses
- [any] Solve $L = a + bL$.
:::
:::

::: part
answer: ceil(ln(0.01)/ln(b))

### How many steps until it's within 1% of that limit?

::: misses
- [any] The gap shrinks by a factor of {b} each step: solve $b^n < 0.01$.
:::
:::
:::

::: check
kind: parts
given: c = 2 | 3; p = 3 | 4; N = 10 | 20

## Two series.

::: part
answer: c/(c - 1)^2
tolerance: 0.5%

### $\displaystyle\sum_{n=1}^\infty\frac{n}{\given{c}^n}$

::: misses
- [any] $\sum nr^n = \frac{r}{(1 - r)^2}$ with $r = 1/c$.
:::
:::

::: part
answer: N^(1 - p)/(p - 1)
tolerance: 0.5%

### After {N} terms of $\sum 1/n^{\given{p}}$, what is the integral bound on the tail?

::: misses
- [any] $\int_N^\infty x^{-p}dx$.
:::
:::
:::

::: check
kind: parts
given: x = 0.5 | 1; eps = 0.01 | 0.001

## Alternating series.

::: part
answer: x^6/720
tolerance: 0.5%

### You estimate $\cos\given{x}$ with $1 - \frac{x^2}{2} + \frac{x^4}{24}$. What is the error bound?

::: misses
- [x^4/24] That's the last term used.
- [any] The next term.
:::
:::

::: part
answer: 1/(2*eps)

### How many terms of $1 - \frac{1}{3} + \frac{1}{5} - \cdots$ guarantee an error below {eps}?

::: misses
- [any] Solve $\frac{1}{2N + 1} \le \varepsilon$.
:::
:::
:::

::: check
kind: parts
given: A = 200 | 2000; beta = 0.05 | 0.2

## An amplifier of gain {A} has negative feedback with $\beta$ = {beta}.

::: part
answer: A/(1 + A*beta)
tolerance: 0.1%

### What is the closed-loop gain?

::: misses
- [any] $\frac{A}{1 + A\beta}$.
:::
:::

::: part
answer: A*beta
tolerance: 0.5%

### What is the loop gain?

::: misses
- [any] $A\beta$.
:::
:::
:::

::: check
kind: parts
given: a = -1 | 2; s = 4 | 6

## Laplace transforms at $s$ = {s}.

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

### $\mathcal L\{e^{\given{a}t}\}$

::: misses
- [any] $\frac{1}{s - a}$.
:::
:::

::: part
answer: 1/(s - a)^2
tolerance: 0.5%

### $\mathcal L\{te^{\given{a}t}\}$

::: misses
- [any] $\frac{1}{(s - a)^2}$.
:::
:::
:::

::: check
kind: parts
given: k = 0.2 | 1; y0 = 2 | 5; t = 2 | 4

## Solve $y' = -\given{k}y^2$ with $y(0)$ = {y0}.

::: part
answer: y0/(1 + k*y0*t)
tolerance: 0.5%

### What is $y$ at $t$ = {t}?

::: misses
- [any] $\frac{y_0}{1 + ky_0t}$.
:::
:::
:::
:::
