?
Follow Math Help Forum on Facebook and Google+
This is such a standard problem; you will find it worked on the web. Have you done a web search? It is pointless to recreate the wheel.
Can you show your working so far?
View Tag Cloud