I was trying to understand a solution, when a encountered this line:
$$or,\;\sum(a+\lambda l)^2=\lambda^2(l^2+m^2+n^2)\\[10pt]or,\;\lambda=-\frac{a^2+b^2+c^2}{2(al+bm+cn)}$$
I tried various method to reach the second equation from the first one, I couldn't. Here is the image for reference. [This is not a homework question, it's purely an evaluation based problem/technique]. I tried, taking square root and all sorts of elementary algebra techniques, didn't work.