The point $P(0.5,0)$ lies on the curve $y=\cos \pi x.$
(a) If $Q$ is the point $(x, \cos \pi x),$ use your calculator to find the slope of the secant line $P Q$ (correct to six decimal places) for the following values of $x$ :
$\begin{array}{llll}\text { (i) } 0 & \text { (ii) } 0.4 & \text { (iii) } 0.49 & \text { (iv) } 0.499\end{array}$
$\begin{array}{llll}\text { (v) } 1 & \text { (vi) } 0.6 & \text { (vii) } 0.51 & \text { (viii) } 0.501\end{array}$
(c) Using the slope from part (b), find an equation of the tangent line to the curve at $P(0.5,0).$
(d) Sketch the curve, two of the secant lines, and the tangent line.