f(x) is differentiable then will also continuous then f(π)=k1(π−π)2−1=−1
f(π+)=h→0limk2cos(π+h)=−k2
f(π+)=f(π)⇒k2=1…(1),f is continuous.
Now, f'(x)={\begin{matrix}\frac{d}{dx}{{k}_{1}(x-\pi {)}^{2}}, & x\leq \pi \\ \frac{d}{dx}{{k}_{2}\mathrm{cos}x}, & x>\pi \end{matrix}
f'(x)={\begin{matrix}2{k}_{1}(x-\pi ), & x\leq \pi \\ -{k}_{2}\mathrm{sin}x, & x>\pi \end{matrix}
then, f′(π−)=2k1(π−π)=0
f′(π+)=−k2sin(π)=0
⇒f′(π−)=f′(π+)=0
Similarly, we get
f''(x)={\begin{matrix}2{k}_{1}, & x\leq \pi \\ -{k}_{2}\mathrm{cos}x, & x>\pi \end{matrix}
As the function is twice differentiable, the second-order derivatives, LHD=RHD
⇒f′′(π−)=f′′(π+)⇒2k1=−k2cosπ
⇒2k1=k2
⇒k1=21 (from (1))