I have an expression and I know its factorized form: $$ - a^{2} b + a^{2} c + a b^{2} - a c^{2} - b^{2} c + b c^{2}=(c-a)(a-b)(b-c) $$ It's simple algebra, but I'm don't see any way how to factorize the expression in the left side by myself. Seems I missed some algebra lessons :)
I tried factorizing $a,b,c$ terms, but I don't see any way to factorize it further: $$ a(b^2-c^2)+b(c^2-a^2)+c(a^2-b^2)=a(b-c)(b+c)+b(c-a)(c+a)+c(a-b)(a-b) $$
Could you help me understand how to think to factorize the expression by myself?
Here it is one possible approach:
\begin{align*} -a^{2}b + a^{2}c + ab^{2} - ac^{2} - b^{2}c + bc^{2} & = (ab^{2} - a^{2}b) + (a^{2}c - ac^{2}) + (bc^{2} - b^{2}c)\\\\ & = ab(b - a) + ac(a - c) + bc(c - b)\\\\ & = ab(b - a) + ac((a - b) + (b - c)) + bc(c - b)\\\\ & = (ac - ab)(a - b) + (ac - bc)(b - c)\\\\ & = a(c - b)(a - b) + c(a - b)(b - c)\\\\ & = (a - b)(b - c)(c - a) \end{align*}