# Homework 6.4 — logarithmic differentiation

Source: https://cca.twango.dev/AP-Calculus-AB/homework/HW6.4

# Homework 6.4 — logarithmic differentiation

James Ding's handwritten work. [Original three-page homework](../assets/HW6.4.pdf). The actual functions and derivations are transcribed below; the textbook's additional instructions are absent.

## Page 1 — derivatives

| Problem | Function | Original derivative / work |
| --- | --- | --- |
| 2 | $x\ln x-x$ | $x(1/x)+\ln x-1=\ln x$ |
| 4 | $\ln(\sin^2x)$ | $(2\sin x\cos x)/\sin^2x=2\cot x$ |
| 6 | $1/\ln x$ | $-(\ln x)^{-2}(1/x)=-1/[x(\ln x)^2]$ |
| 8 | $\log_{10}\sqrt x$ | $[1/(\ln10\sqrt x)]\,[1/(2\sqrt x)]=1/(2x\ln10)$ |
| 10 | $\sqrt{1+\ln t}$ | $1/[2t\sqrt{1+\ln t}]$ |
| 12 | $\ln(x+\sqrt{x^2-1})$ | $[1+x/\sqrt{x^2-1}]/[x+\sqrt{x^2-1}]=1/\sqrt{x^2-1}$ |
| 16 | $\ln\lvert1+t-t^3\rvert$ | $(1-3t^2)/(1+t-t^3)$ |
| 20 | $\ln(\csc x-\cot x)$ | $[-\csc x\cot x+\csc^2x]/[\csc x-\cot x]$ |
| 24 | $\log_2(x\log_5x)$ | $[1/\ln5+\log_5x]/[\ln2\,x\log_5x]$ |
| 28 | $\ln x/(1+\ln x)$ | $[(1+\ln x)/x-(\ln x)/x]/(1+\ln x)^2=1/[x(1+\ln x)^2]$ |
| 32 | $\sqrt{2+\ln x}$ | $1/[2x\sqrt{2+\ln x}]$ |

For 16, the handwritten derivative label uses $x$ although the function and working use $t$; the derivative here is with respect to $t$. For 20, the original quotient simplifies further to $\csc x$ wherever the original logarithm is defined.

### 28 — second derivative

The source differentiates $x^{-1}(1+\ln x)^{-2}$:

$$
\begin{aligned}
f''(x)&=-\frac{2}{x^2(1+\ln x)^3}-\frac{1}{x^2(1+\ln x)^2}\\
&=\frac{-\ln x-3}{x^2(1+\ln x)^3}.
\end{aligned}
$$

### 32 — domain

Original conditions: $2+\ln x\ge0$, $x>0$, hence $x\in[e^{-2},\infty)$.

> [!note] Function versus derivative domain
> This is the domain of the function. Its displayed finite derivative requires $x>e^{-2}$, since the derivative denominator vanishes at the endpoint.

## Page 2

### 36

$$f(x)=\cos(\ln x^2),\qquad f'(x)=-\sin(\ln x^2)\frac{2x}{x^2}=-\frac{2\sin(\ln x^2)}x.$$

$$f'(1)=-2\sin0=0.$$

### 42

For $f(x)=\log_b(3x^2-2)$,

$$f'(x)=\frac{6x}{\ln b\,(3x^2-2)}.$$

The supplied condition is $f'(1)=3$, so $6/\ln b=3$, $\ln b=2$, and $b=e^2$.

> [!note] Intermediate base typo
> One handwritten denominator is $\ln5$ instead of $\ln b$. The next substitution and final answer use $b$ correctly.

### 50

$$y=(\sqrt x)^x,\qquad\ln y=x\ln\sqrt x.$$

$$\frac{y'}y=x\left(\frac{1}{\sqrt x}\frac1{2\sqrt x}\right)+\ln\sqrt x=\frac12+\ln\sqrt x.$$

$$y'=(\sqrt x)^x\left(\frac12+\ln\sqrt x\right).$$

### 54

$$y=(\ln x)^{\cos x},\qquad\ln y=\cos x\ln(\ln x).$$

$$\frac{y'}y=\frac{\cos x}{x\ln x}-\sin x\ln(\ln x).$$

$$y'=(\ln x)^{\cos x}\left[\frac{\cos x}{x\ln x}-\sin x\ln(\ln x)\right].$$

The real logarithmic-differentiation work uses $x>1$.

## Page 3 — 56

$$x^y=y^x,\qquad y\ln x=x\ln y.$$

$$\frac yx+y'\ln x=\frac xy\,y'+\ln y.$$

$$y'=\frac{\ln y-y/x}{\ln x-x/y}=\frac{xy\ln y-y^2}{xy\ln x-x^2}.$$

This formula requires $x,y>0$ and a nonzero denominator; it does not resolve singular points where both sides of the rearranged equation vanish.

Related: [[HW6.6.md|inverse-trigonometric derivatives]], [[HW6.8.md|limit practice]].
