It's from here.
http://math.ucsd.edu/~wgarner/reference/math181c_fa09/handouts/handout3.pdfHowever, do let me know if you need any explanation. I did not understand any of these solutions, but there exists a different approach which I did understand (it's hard to type out though). If you want, we could discuss this over a phone call too!