Porisma

Worked solution

Estimate an exponential and expand a shifted secant

(a) Let f(x)=etan⁡−1(x/2)f(x)=e^{\tan^{-1}(x/2)}.

(i) Show (4+x2)f′(x)=2f(x)(4+x^2)f^{\prime}(x)=2f(x). mark

(ii) Use repeated differentiation to expand ff through x2x^2. Use it to estimate eπ/6e^{\pi/6} and show the error is about 3.3%3.3\%. marks

(b) For g(x)=1/[2cos⁡(x/a+π/4)]g(x)=1/[\sqrt2\cos(x/a+\pi/4)], where a>1a>1, show that for sufficiently small xx, g(x)≈1+px+qx2g(x)\approx1+px+qx^2, finding p,qp,q in terms of aa. marks

[2020/YIJC/8]

CJC · Review problems · Question 12

Answer

f=1+x/2+x2/8+⋯f=1+x/2+x^2/8+\cdots; eπ/6≈1.74402e^{\pi/6}\approx1.74402 with error about 3.3%3.3\%. p=1/ap=1/a, q=3/(2a2)q=3/(2a^2).

(a)(i) Differentiate the logarithm

ln⁡f=tan⁡−1(x/2)\ln f=\tan^{-1}(x/2) gives f′/f=(1/2)/(1+x2/4)=2/(4+x2)f^{\prime}/f=(1/2)/(1+x^2/4)=2/(4+x^2), hence (4+x2)f′=2f(4+x^2)f^{\prime}=2f.

How did this part go?

(a)(ii) Differentiate again and form the series

(4+x2)f′′+2xf′=2f′(4+x^2)f^{\prime\prime}+2xf^{\prime}=2f^{\prime}, so (4+x2)f′′=(2−2x)f′(4+x^2)f^{\prime\prime}=(2-2x)f^{\prime}. Thus f(0)=1f(0)=1, f′(0)=1/2f^{\prime}(0)=1/2, f′′(0)=1/4f^{\prime\prime}(0)=1/4, and f(x)=1+x/2+x2/8+O(x3)f(x)=1+x/2+x^2/8+O(x^3).

How did this part go?

(a)(ii) Substitute for pi/6 and keep full precision in the error

Choose x=2/3x=2/\sqrt3, so tan⁡−1(x/2)=π/6\tan^{-1}(x/2)=\pi/6. The estimate is 1+1/3+1/6=7/6+1/3≈1.744016941+1/\sqrt3+1/6=7/6+1/\sqrt3\approx1.74401694, printed as 1.744021.74402 or 1.741.74 (3 s.f.). The relative error is 100∣(7/6+1/3)−eπ/6∣/eπ/6≈3.313%100|(7/6+1/\sqrt3)-e^{\pi/6}|/e^{\pi/6}\approx3.313\%, about 3.3%3.3\%. Calculate this before rounding the estimate to 1.741.74.

How did this part go?

(b) Use the angle addition identity before the reciprocal series

Set u=x/au=x/a. Since 2cos⁡(u+π/4)=cos⁡u−sin⁡u=1−u−u2/2+O(u3)\sqrt2\cos(u+\pi/4)=\cos u-\sin u=1-u-u^2/2+O(u^3),

g(x)=[1−(u+u22+O(u3))]−1=1+u+32u2+O(u3).\begin{aligned}&g(x)\\ & =\left[1-\left(u+\frac{u^2}{2}+O(u^3)\right)\right]^{-1}\\ & =1+u+\frac32u^2+O(u^3).\end{aligned}

Hence p=1/ap=1/a and q=3/(2a2)q=3/(2a^2). The square root applies only to the factor 22, not to the whole denominator; this is confirmed by the printed angle-addition working.

How did this part go?

Common mistakes

In part (b), sqrt(2) multiplies the cosine; it is not a square root of the cosine expression.

Read the hint