Solution to Homework 4

Problem 1 see here

Problem 2
First remember what you need to do:

Now