Question 15 Marks
Determine all real values of p and q that ensure the function
f(x) = px + q, for x ≤ 1
= tan $\frac{\pi x}{4}$for 1 < x < 2
is differentiable at x = 1.
f(x) = px + q, for x ≤ 1
= tan $\frac{\pi x}{4}$for 1 < x < 2
is differentiable at x = 1.
Answer
View full question & answer→f(x) is differentiable at x = 1.
∴ f(x) is continuous at x = 1.
Continuity at x= 1:
$f(x) \text { is continuous at } x=1$
$\therefore \quad \lim _{x \rightarrow 1^{-}} f(x)=\lim _{x \rightarrow 1^{+}} f(x)$
$\therefore \quad \lim _{x \rightarrow 1^{-}}(p x+q)=\lim _{x \rightarrow 1^{+}} \tan \left(\frac{\pi x}{4}\right)$
$\therefore \quad p+q=\tan \frac{\pi}{4}=1$
Differentiability at $x=1$ :
$\operatorname{Lf}^{\prime}(1)=\lim _{h \rightarrow 0^{-}} \frac{f(1+h)-f(1)}{h}$
$=\lim _{h \rightarrow 0^{-}} \frac{p(1+h)+q-(p+q)}{h}$
$=\lim _{ h \rightarrow 0} \frac{ ph }{ h }$
$=p \quad \ldots[\because h \rightarrow 0, \therefore h \neq 0]$
$R f^{\prime}(1)=\lim _{h \rightarrow 0^{+}} \frac{f(1+h)-f(1)}{h}$
$=\lim _{h \rightarrow 0^{+}} \frac{\tan \frac{\pi}{4}(1+h)-(p+q)}{h}$
$=\lim _{h \rightarrow 0^{+}} \frac{\tan \left(\frac{\pi}{4}+\frac{\pi h}{4}\right)-1}{h} \ldots[\because p+q=1]$
$=\lim _{h \rightarrow 0^{+}}\left[\frac{\frac{1+\tan \frac{\pi h}{4}}{1-\tan \frac{\pi h}{4}}-1}{h}\right]$
$=\lim _{h \rightarrow 0^{+}}\left[\frac{2 \tan \frac{\pi h}{4}}{h\left(1-\tan \frac{\pi h}{4}\right)}\right]$
$=\frac{2 \pi}{4} \lim _{ h \rightarrow 0^{+}} \frac{\tan \left(\frac{\pi h}{4}\right)}{\left(\frac{\pi h}{4}\right)}\left(\frac{1}{1-\tan \frac{\pi h}{4}}\right)$
$=\frac{\pi}{2}(1)\left(\frac{1}{1-0}\right)=\frac{\pi}{2}$
$f (x)$ is differentiable at $x=1$.
$\therefore \quad Lf ^{\prime}(1)= Rf ^{\prime}(1)$
$\therefore \quad p =\frac{\pi}{2}$
Substituting $p =\frac{\pi}{2}$ in (i), we get
$ \frac{\pi}{2}+q=1$
$\therefore \quad q=1-\frac{\pi}{2}=\frac{2-\pi}{2}$
∴ f(x) is continuous at x = 1.
Continuity at x= 1:
$f(x) \text { is continuous at } x=1$
$\therefore \quad \lim _{x \rightarrow 1^{-}} f(x)=\lim _{x \rightarrow 1^{+}} f(x)$
$\therefore \quad \lim _{x \rightarrow 1^{-}}(p x+q)=\lim _{x \rightarrow 1^{+}} \tan \left(\frac{\pi x}{4}\right)$
$\therefore \quad p+q=\tan \frac{\pi}{4}=1$
Differentiability at $x=1$ :
$\operatorname{Lf}^{\prime}(1)=\lim _{h \rightarrow 0^{-}} \frac{f(1+h)-f(1)}{h}$
$=\lim _{h \rightarrow 0^{-}} \frac{p(1+h)+q-(p+q)}{h}$
$=\lim _{ h \rightarrow 0} \frac{ ph }{ h }$
$=p \quad \ldots[\because h \rightarrow 0, \therefore h \neq 0]$
$R f^{\prime}(1)=\lim _{h \rightarrow 0^{+}} \frac{f(1+h)-f(1)}{h}$
$=\lim _{h \rightarrow 0^{+}} \frac{\tan \frac{\pi}{4}(1+h)-(p+q)}{h}$
$=\lim _{h \rightarrow 0^{+}} \frac{\tan \left(\frac{\pi}{4}+\frac{\pi h}{4}\right)-1}{h} \ldots[\because p+q=1]$
$=\lim _{h \rightarrow 0^{+}}\left[\frac{\frac{1+\tan \frac{\pi h}{4}}{1-\tan \frac{\pi h}{4}}-1}{h}\right]$
$=\lim _{h \rightarrow 0^{+}}\left[\frac{2 \tan \frac{\pi h}{4}}{h\left(1-\tan \frac{\pi h}{4}\right)}\right]$
$=\frac{2 \pi}{4} \lim _{ h \rightarrow 0^{+}} \frac{\tan \left(\frac{\pi h}{4}\right)}{\left(\frac{\pi h}{4}\right)}\left(\frac{1}{1-\tan \frac{\pi h}{4}}\right)$
$=\frac{\pi}{2}(1)\left(\frac{1}{1-0}\right)=\frac{\pi}{2}$
$f (x)$ is differentiable at $x=1$.
$\therefore \quad Lf ^{\prime}(1)= Rf ^{\prime}(1)$
$\therefore \quad p =\frac{\pi}{2}$
Substituting $p =\frac{\pi}{2}$ in (i), we get
$ \frac{\pi}{2}+q=1$
$\therefore \quad q=1-\frac{\pi}{2}=\frac{2-\pi}{2}$