# Homework 4.5B — Substitution in definite integrals

Source: https://cca.twango.dev/AP-Calculus-AB/homework/HW4.5B

# Homework 4.5B — Substitution in definite integrals

James Ding's two handwritten pages, reviewed against every original problem. [[../assets/HW4.5B.pdf|Original pages]]. Related: [[HW4.5A.md]].

> [!warning] Substitution limits
> Several original intermediate lines keep the old $x$ or $t$ bounds after changing to $u$. Below, the final original answers are preserved, with the corresponding $u$ bounds explicitly corrected. Bounds must be transformed, or the antiderivative must be converted back before evaluating at the original bounds.

## 36 — Large power

$$\int_0^1(3t-1)^{50}\,dt.$$

Let $u=3t-1$, $dt=du/3$, with $u=-1,2$ at the endpoints:

$$\frac13\int_{-1}^2u^{50}\,du=\left[\frac{u^{51}}{153}\right]_{-1}^2=\frac{2^{51}+1}{153}.$$

## 38 — Squared angle

$$\int_0^{\sqrt\pi}x\cos(x^2)\,dx.$$

Let $u=x^2$, $du=2x\,dx$, with bounds $0,\pi$:

$$\frac12\int_0^\pi\cos u\,du=\left[\frac12\sin u\right]_0^\pi=0.$$

## 40 — Cosecant integral

$$\int_{\pi/3}^{2\pi/3}\csc^2(t/2)\,dt.$$

Let $u=t/2$, $dt=2du$, with bounds $\pi/6,\pi/3$:

$$2\int_{\pi/6}^{\pi/3}\csc^2u\,du=[-2\cot u]_{\pi/6}^{\pi/3}=\frac{4\sqrt3}3.$$

## 42 — Nested sine

$$\int_0^{\pi/2}\cos x\sin(\sin x)\,dx.$$

Let $u=\sin x$, $du=\cos x\,dx$, bounds $0,1$:

$$\int_0^1\sin u\,du=[-\cos u]_0^1=1-\cos1.$$

## 44 — Circular square root

$$\int_0^a x\sqrt{a^2-x^2}\,dx.$$

Let $u=a^2-x^2$, $du=-2x\,dx$, bounds $a^2,0$:

$$-\frac12\int_{a^2}^0u^{1/2}\,du=\left[-\frac13u^{3/2}\right]_{a^2}^0.$$

Original answer: $a^3/3$. This assumes $a\ge0$; in general the expression is $|a|^3/3$.

## 46 — Symmetry

$$\int_{-\pi/3}^{\pi/3}x^4\sin x\,dx=0.$$

Original reasoning: $f(x)=x^4\sin x$ is odd, since $f(-x)=-f(x)$, and the endpoints are symmetric.

## 48 — Rational square root

$$\int_0^4\frac{x}{\sqrt{1+2x}}\,dx.$$

Let $u=1+2x$, $x=(u-1)/2$, $dx=du/2$, bounds $1,9$:

$$\int_1^9\frac{u-1}{4\sqrt u}\,du=\left[\frac16u^{3/2}-\frac12u^{1/2}\right]_1^9=\frac{10}3.$$

## Unnumbered — Half-period sine

$$\int_0^{T/2}\sin\left(\frac{2\pi t}{T}-\alpha\right)\,dt.$$

Let $u=2\pi t/T-\alpha$, $dt=T\,du/(2\pi)$, with bounds $-\alpha,\pi-\alpha$:

$$\left[-\frac T{2\pi}\cos\left(\frac{2\pi t}{T}-\alpha\right)\right]_0^{T/2}=\frac T\pi\cos\alpha.$$

This matches the original boxed answer, assuming $T\ne0$.

## 56 — Quarter-circle substitution

$$\int_0^1x\sqrt{1-x^4}\,dx.$$

Let $u=x^2$, $du=2x\,dx$, bounds $0,1$:

$$\frac12\int_0^1\sqrt{1-u^2}\,du=\frac12\cdot\frac\pi4=\frac\pi8.$$

## 60 — Given integral

Given $\int_0^9f(x)\,dx=4$, evaluate $\int_0^3xf(x^2)\,dx$. With $u=x^2$, $du=2x\,dx$, bounds $0,9$:

$$\int_0^3xf(x^2)\,dx=\frac12\int_0^9f(u)\,du=2.$$

## 66 — Sine/cosine symmetry

The source records $\int_0^{\pi/2}f(\cos x)\,dx=\int_0^{\pi/2}f(\sin x)\,dx$. Using $f(s)=s^2$:

$$I=\int_0^{\pi/2}\cos^2x\,dx=\int_0^{\pi/2}(1-\sin^2x)\,dx=\frac\pi2-I.$$

Therefore $2I=\pi/2$ and

$$\int_0^{\pi/2}\cos^2x\,dx=\int_0^{\pi/2}\sin^2x\,dx=\frac\pi4.$$

## 72 — Exponential substitution

For $\int e^{\cos t}\sin t\,dt$, let $u=\cos t$, $du=-\sin t\,dt$:

$$-\int e^u\,du=-e^{\cos t}+C.$$

## 76 — Logarithmic angle

For $\int\frac{\sin(\ln x)}x\,dx$, let $u=\ln x$, $du=dx/x$:

$$\int\sin u\,du=-\cos(\ln x)+C,\qquad x>0.$$

## 82 — Gaussian derivative

$$\int_0^1xe^{-x^2}\,dx.$$

Let $u=-x^2$, $du=-2x\,dx$, bounds $0,-1$:

$$-\frac12\int_0^{-1}e^u\,du=\left[-\frac12e^{-x^2}\right]_0^1=\frac12-\frac1{2e}.$$

## 84 — Shifted exponential

$$\int_0^2(x-1)e^{(x-1)^2}\,dx.$$

Let $u=(x-1)^2$, $du=2(x-1)\,dx$. Returning to $x$ before evaluating:

$$\left[\frac12e^{(x-1)^2}\right]_0^2=0.$$

Both transformed endpoints have $u=1$; the original intermediate $u$-integral with bounds $0,2$ is invalid. The final answer is correct. Alternatively the integrand is odd about $x=1$, giving cancellation.
