# HW 2.5B — Nested chain rules and higher derivatives

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

# HW 2.5B — Nested chain rules and higher derivatives

Handwritten homework, reviewed against every source page. Numbering follows the original; textbook prompts not written on these pages are not reconstructed.

## 45. $y=\cos\sqrt{\sin(\tan\pi x)}$

**Original chain-rule stages:**

$$
\begin{aligned}
y'&=-\sin\sqrt{\sin(\tan\pi x)}\cdot\frac{d}{dx}\sqrt{\sin(\tan\pi x)}\\
&=-\frac12\sin\sqrt{\sin(\tan\pi x)}\,[\sin(\tan\pi x)]^{-1/2}\cdot\frac{d}{dx}\sin(\tan\pi x)\\
&=-\frac\pi2\sin\sqrt{\sin(\tan\pi x)}\,[\sin(\tan\pi x)]^{-1/2}\cos(\tan\pi x)\sec^2(\pi x).
\end{aligned}
$$

This formula applies when tangent is defined and $\sin(\tan\pi x)>0$. Points at which that inner sine is zero need separate analysis; the displayed reciprocal-root formula is not directly defined there.

## 50. First and second derivatives of $y=\frac1{(1+\tan x)^2}$

$$
y'=-2(1+\tan x)^{-3}\sec^2x.
$$

The source differentiates this product:

$$
\begin{aligned}y''&=-2(1+\tan x)^{-3}[2\sec^2x\tan x]+\sec^2x[6(1+\tan x)^{-4}\sec^2x]\\&=2\sec^2x[-2\tan x(1+\tan x)^{-3}+3\sec^2x(1+\tan x)^{-4}].\end{aligned}
$$

The formulas require tangent to be defined and $1+\tan x\ne0$.

## 52. Tangent to $y=\sqrt{1+x^3}$ at $x=2$

$$
y'=\frac12(1+x^3)^{-1/2}\,3x^2=\frac{3x^2}{2\sqrt{1+x^3}}.
$$

At $2$, the slope is $12/(2\cdot3)=2$ and $y=3$. Original tangent:

$$
y-3=2(x-2).
$$

## 60. Tangent perpendicular to $6x+2y=1$

The given line has slope $-3$, so a perpendicular line has slope $1/3$.

For $y=\sqrt{1+2x}$, the source computes

$$
y'=(1+2x)^{-1/2},\qquad \frac13=\frac1{\sqrt{1+2x}}.
$$

Thus $\sqrt{1+2x}=3$, $x=4$, and $y=3$. Original tangent:

$$
y-3=\frac13(x-4).
$$

## 64. Compositions evaluated from given values

**a.** $F(x)=f(f(x))$:

$$
F'(x)=f'(f(x))f'(x),\qquad F'(2)=f'(1)\cdot5=20.
$$

**b.** $G(x)=g(g(x))$:

$$
G'(x)=g'(g(x))g'(x),\qquad G'(3)=g'(2)\cdot9=63.
$$

The original table of values is absent. These substitutions imply the used values $f(2)=1$, $f'(2)=5$, $f'(1)=4$, $g(3)=2$, $g'(3)=9$, and $g'(2)=7$; the numerical answers are internally consistent with those substitutions.

## 70. $f(x)=xg(x^2)$

A first attempt on page 1 is crossed out. The revised page 2 computation is

$$
f'(x)=x\,g'(x^2)\cdot2x+g(x^2)=2x^2g'(x^2)+g(x^2),
$$

$$
\begin{aligned}f''(x)&=2x^2g''(x^2)\cdot2x+4xg'(x^2)+g'(x^2)\cdot2x\\&=4x^3g''(x^2)+6xg'(x^2).\end{aligned}
$$

## 72. $F(x)=f(xf(xf(x)))$

The source differentiates from the outside inward:

$$
\begin{aligned}F'(x)&=f'(xf(xf(x)))\frac{d}{dx}[xf(xf(x))]\\&=f'(xf(xf(x)))\left[x f'(xf(x))(xf'(x)+f(x))+f(xf(x))\right].\end{aligned}
$$

Its evaluation at $1$ uses $f(1)=2$, $f'(1)=4$, $f(2)=3$, $f'(2)=5$, and $f'(3)=6$:

$$
F'(1)=f'(f(2))[f'(2)(4+2)+f(2)]=6[5\cdot6+3]=198.
$$

The original source of those given values is absent; the arithmetic is consistent.

## 74. Higher derivatives of $f(x)=x\sin(\pi x)$

**Original successive derivatives:**

$$
\begin{aligned}
f'(x)&=\pi x\cos(\pi x)+\sin(\pi x),\\
f''(x)&=-\pi^2x\sin(\pi x)+2\pi\cos(\pi x),\\
f'''(x)&=-\pi^3x\cos(\pi x)-3\pi^2\sin(\pi x),\\
f^{(4)}(x)&=\pi^4x\sin(\pi x)-4\pi^3\cos(\pi x),\\
f^{(5)}(x)&=\pi^5x\cos(\pi x)+5\pi^4\sin(\pi x).
\end{aligned}
$$

The source notes that the trigonometric pattern repeats every four derivatives and $35\bmod4=3$, giving

$$
f^{(35)}(x)=-\pi^{35}x\cos(\pi x)-35\pi^{34}\sin(\pi x).
$$

Compare [[HW2.4B|the related product-rule example]].
