A(a³-b³)-ab²(a-b)=a(a-b)(a²+ab+b²)-ab²(a-b)=
=a(a-b)(a²+ab+b²-b²)=a(a-b)(a²+ab)=a(a-b)a(a+b)=a²(a-b)(a+b)
A(a³-b³)-ab²(a-b)=a(a-b)(a²+ab+b²)-ab²(a-b)=
=a(a-b)(a²+ab+b²-b²)=a(a-b)(a²+ab)=a(a-b)a(a+b)=a²(a-b)(a+b)