solution: part c.

eqnarray28