Solution 2 (e).
(c) John H. Mathews 2004