%latex
4 (a) f(0) = 0
(b) f'(x) = \sqrt{4 - \sin(\pi t)} dt
(c) f(x) = f(0) - f'(0)(x-0) = 2x
(d) \textrm{For our error bound, we want } M \textrm{ such that }
\mid f"(x)\mid \leq M \textrm{ for all } x \textrm{ in the interval } [-1/6,1/6]
f"(x) = -\pi \cos( \pi x)/2 \sqrt{4 - \sin( \pi x)}
\textrm{For the next step, there are many ways to find such } M
\textrm{We could use the first derivative text to see if the function is strictly increasing or decreasing and then use an endpoint.}
\textrm{Or we could use the second derivative text to find a maximum value on the interval.}
\textrm{However, the first and second derivatives are }
\pi^2\sin(\pi x)/(2\sqrt{4 - \sin(\pi x)}) - \pi^2\cos(\pi x)^2/(4(4 -
\sin(\pi x))^{3/2})
\textrm{and}
3\pi^3\cos(\pi x)\sin(\pi x)/(4(4 - \sin(\pi x))^{3/2}) +
\pi^3\cos(\pi x)/(2\sqrt{4 - \sin(\pi x)}) - 3\pi^3\cos(\pi x)^3/(8(4 -
\sin(\pi x))^(5/2))
\textrm{So it would be much easier to get a rough estimate by examing how large the numerator can be and how small the denominator can be.} \cos (\pi x) \textrm{ reaches its maximum value at 0 and } \sin (\pi x) \textrm{ reaches its maximum value at the positive endpoint } 1/6.
\textrm{So the maximum the numerator can be is } \pi
\textrm{and the minimum the denominator can be is } \sqrt{4 - \sin(\pi/6)} = \sqrt{7/2}
\textrm{This gives us } M = \pi \sqrt{2/7}
(e) \textrm{We have the inequality } \mid error \mid \leq M(a-b)^2/2 \textrm{ where a and b are the endpoints of the interval where this inequality holds. Since we want our interval to be centered around zero, we can take } a = 0-x \textrm{ and } b = 0+x \textrm{ giving us the equation }
M(2x)^2/2 = 0.01 \textrm{ (Since we want the error less than 0.01) }
\textrm{Solving this equation for x we find the interval }
[-\sqrt{0.01\sqrt{7}/(2\pi\sqrt{2})},\sqrt{0.01\sqrt{7}/(2\pi\sqrt{2})}]=[-0.0546,0.0546]