In short, you don't. To derive the Cosine Rule, you draw in the height of your triangle and apply Pythagoras' Theorem to the resulting right-angle triangle.
Or in the case of an obtuse-angle triangle...
We use the fact that and , then by Pythagoras we have
which upon simplification gives the same result.