What should be the value of \(\lambda\) such that the function defined below is continuous at \(x = \pi /2\)?\[f(x)=\left\{\begin{matrix} \frac{\lambda \cos x}{\frac{\pi }{2}-x} &if x \neq \frac{\pi }{2} \\ 1& if x= \frac{\pi }{2} \end{matrix}\right.\]
Show the worked solutionif f(x) is continuous at \(x=\frac{\pi }{2}\)
\(\lim_{x\rightarrow \frac{\pi }{2}}\frac{\lambda \cos x}{\frac{\pi }{2}-x}=f\left ( \frac{\pi }{2} \right )=1\)
Since the limit is in form of \(\frac{0}{0}\), we can use L'Hospitals rule on LHS of equation (i) and get\[\begin{aligned} \lim_{x\rightarrow \frac{\pi }{2}}\frac{-\lambda \sin x}{-1}&=1 \\ \Rightarrow \;\; \lambda \sin \frac{\pi }{2}&=1 \\ \Rightarrow \;\; \lambda &=1\end{aligned}\]
GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com