a) \(4x\left(a-b\right)+6xy\left(b-a\right)\)
\(=4x\left(a-b\right)-6xy\left(a-b\right)\)
\(=\left(4x-6xy\right)\left(a-b\right)\)
\(=2x\left(2-3y\right)\left(a-b\right)\)
b) \(\left(6x+3\right)-\left(2x-5\right)\left(2x+1\right)\)
\(=3\left(2x+1\right)-\left(2x-5\right)\left(2x+1\right)\)
\(=\left(3-2x+5\right)\left(2x+1\right)\)
\(=\left(8-2x\right)\left(2x+1\right)\)
\(=2\left(4-x\right)\left(2x+1\right)\)
g: \(\left(3x-1\right)^2-\left(x+3\right)^2\)
\(=\left(3x-1-x-3\right)\left(3x-1+x+3\right)\)
\(=\left(2x-4\right)\left(4x+2\right)\)
\(=4\left(x-2\right)\left(2x+1\right)\)