Figure describe formula of ward method for hierarchical or agglomarative clustering i.e. increment of total error after merging two cluster. How did they get
$$\frac{n_A\cdot n_B}{n_A+n_B} ||\vec m_A-\vec m_B||^2 $$ How did they get
from first line of formula as shown in figure?$$\frac{n_A\cdot n_B}{n_A+n_B} ||\vec m_A-\vec m_B||^2 $$
Please explain. from first line of formula as shown in figure?
