how is it again that you would derve the law of cosines?
i do know that it starts out like the distance formula.
help plz
make google your friend. see the proofs section here (the very first link that came up when i googled "law of cosines." you may find other links if this is not to your liking)