1 ) \(x\left(a-b\right)+a-b=\left(x+1\right)\left(a-b\right)\)
2 ) \(2x\left(b-a\right)+a-b=2x\left(b-a\right)-\left(b-a\right)=\left(2x-1\right)\left(b-a\right)\)
3 ) \(-2x-2y+ax+ay=-2\left(x+y\right)+a\left(x+y\right)=\left(a-2\right)\left(x+y\right)\)
4 ) \(x^2-xy-2x+2y=x\left(x-y\right)-2\left(x-y\right)=\left(x-2\right)\left(x-y\right)\)
5 ) \(5x^2y+5xy^2+a^2x+a^2y\)
\(=5xy\left(x+y\right)+a^2\left(x+y\right)\)
\(=\left(5xy+a^2\right)\left(x+y\right)\)
6 ) \(2x^2-6xy+5x-15y\)
\(=2x\left(x-3y\right)+5\left(x-3y\right)\)
\(=\left(2x+5\right)\left(x-3y\right)\)
7 ) \(ax^2-3axy+bx-3by\)
\(=\left(ax^2+bx\right)-\left(3axy+3by\right)\)
\(=x\left(ax+b\right)-3y\left(ax+b\right)\)
\(=\left(x-3y\right)\left(ax+b\right)\)
8 ) \(x^2+4x-5x-20=0\)
\(\Leftrightarrow x\left(x+4\right)-5\left(x+4\right)=0\)
\(\Leftrightarrow\left(x-5\right)\left(x+4\right)=0\)
\(\Leftrightarrow\left[{}\begin{matrix}x-5=0\\x+4=0\end{matrix}\right.\Leftrightarrow\left[{}\begin{matrix}x=5\\x=-4\end{matrix}\right.\)
9 ) \(x^2+10x-2x-20=0\)
\(\Leftrightarrow x\left(x+10\right)-2\left(x+10\right)=0\)
\(\Leftrightarrow\left(x-2\right)\left(x+10\right)=0\)
\(\Leftrightarrow\left[{}\begin{matrix}x-2=0\\x+10=0\end{matrix}\right.\Leftrightarrow\left[{}\begin{matrix}x=2\\x=-10\end{matrix}\right.\)
10 ) \(x^2-6x-4x+24=0\)
\(\Leftrightarrow x\left(x-6\right)-4\left(x-6\right)=0\)
\(\Leftrightarrow\left(x-4\right)\left(x-6\right)=0\)
\(\Leftrightarrow\left[{}\begin{matrix}x-4=0\\x-6=0\end{matrix}\right.\Leftrightarrow\left[{}\begin{matrix}x=4\\x=6\end{matrix}\right.\)
:D