# Why does $b^2 = c^2 + a^2 - 2ca\cos(B)$ in trigonometry?

http://i.stack.imgur.com/l0Dw7.png

I have a (what I believe to be an isosceles) triangle and the formula $b^2 = c^2 + a^2 - 2ca \cos(B)$ and I just have to "prove it".

Now this really confused me as I'm not used to working with trig without knowing at least two of the values and I'm struggling to find anything about it online. I would appreciate it if somebody could explain how it works, Thanks.

-
When dealing with diagrams, its best not to trust your eyes :) There is no reason to believe it is isosceles, and fortunately no need for it to be isosceles. –  rschwieb Feb 6 '13 at 14:04
possible duplicate of Law of Cosines Proof –  rschwieb Feb 6 '13 at 14:44