solution: part b.

eqnarray21