If a line through the centroid $G$ of a triangle ABC meets $AB$ in $M$ and $AC$ on $N$ then prove that $AN. MB+AM. NC=AM. AN$ both in magnitude as well as sign
I tired dividing the equation by $AM. AN$ Thus resultant became $\frac{MB}{AM}+\frac{NC}{AN}=1$ and now I tried to do some construction but couldn't figure out the solution.

Hint: Draw perpendicular lines to line $MN$ through $A$, $B$, $C$, and the midpoint $D$ of $BC$. Turn the ratios you got into ratios of the length of the perpendicular segments.