[Solution by Dr. Abubacker] $f$ fails to be differentiable at the simple zeros of $x^2-ax+2$ (the $|\cdot|$ term gets a kink, $x^2+1\neq0$), while $\cos|x|=\cos x$ is smooth. $x=2$ is a root: $4-2a+2=0\Rightarrow a=3$, so $x^2-3x+2=(x-1)(x-2)$ and $\beta=1$. Distance of $(2,1)$ from the line: $\frac{|24+5+10|}{13}=3$. Answer (3).