See this link :
http://zebu.uoregon.edu/~imamura/123/lecture-7/lecture-7.html