As Studiot has pointed out, what you are looking for is in that link. No, it doesn't go line by line on the derivation, but you should be able to work backwards to see where it came from.
Read through that link again, all pages, and if you still don't understand, come bak and ask.