Show the worked solution\(f(x)=e^{x}+\sin x\)
We wish to expand about \(x=\pi\)
Taylor's series expansion about x=a is\[\begin{aligned} f(x)=& f(a)+(x-a) P(a) \\ &+\frac{(x-a)^{2}}{2 !} \cdot f^{\prime \prime}(a)+\frac{(x-a)^{3}}{3 !} \cdot f^{\prime \prime \prime}(a) \ldots \end{aligned}\]Now about \(x=\pi\)
\(f(x)=f(\pi)+(x-\pi) f^{\prime}(\pi)+\frac{(x-\pi)^{2}}{2 !} f^{\prime \prime}(\pi)+\ldots\)
The coefficient of \((x-\pi)^{2} is \frac{f^{\prime \prime}(\pi)}{2 !}\)\[\begin{aligned} \text { Here } f(x) &=e^{x}+\sin x \\ f^{\prime}(x)&=e^{x}+\cos x \\ f^{\prime \prime}(x)&=e^{x}-\sin x \\ \rho^{\prime}(\pi)&=e^{\pi}-\sin \pi=e^{\pi}-0=e^{\pi} \end{aligned}\]The coefficient of \((x-n)^{2}\) is therefore
\(\frac{e^{\pi}}{2 !}=0.5 \exp (\pi)\)
GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com