After spending quite some time making sure this wasn't already answered, I decided to post this anyway, as I haven't found what I'm looking for.
I have this equation with nested fractions, and I want the Left Hand Side to be centered with respect to the Right Hand Side. It now appears at the hard left corner, I want it to be in the middle. See the picture below for an example.
\documentclass[]{Article}
\usepackage{amssymb,amsmath}
\begin{document}
\begin{math}
\ C(m) = \cfrac{D_1(K_1+mK_2)}{1- \cfrac{1}{ \left( \cfrac{D_1+D_2}{D_2} \right) ^{m+1}- \cfrac{D_1}{D_2}}}
\end{math}
\end{document}