Let the touchpoint of the incricle with $BC$ be $F$. As $DP \perp IM$, $IP^2-PM^2=ID^2-DM^2$ And as $EP \perp IN$, $PN^2-PI^2=EN^2-EI^2$ Summing these two, we get $PN^2-PM^2=(EN^2-DM^2)+(ID^2-IE^2)$ $PN^2-PM^2=(EN^2-DM^2)+(IC^2-IB^2)$ [Note that $ID=IC$,$IE=IC$] $PN^2-PM^2=(EN^2-DM^2)+(CF^2-BF^2)$ [...