a: \(3ab-6a^2b\)
\(=3ab\cdot1-3ab\cdot2a\)
=3ab(1-2a)
b: \(x^3-6x\)
\(=x\cdot x^2-x\cdot6\)
\(=x\left(x^2-6\right)\)
c: \(x^2-y^2-9x+9y\)
\(=\left(x^2-y^2\right)-\left(9x-9y\right)\)
\(=\left(x-y\right)\left(x+y\right)-9\left(x-y\right)\)
\(=\left(x-y\right)\left(x+y-9\right)\)
d: \(5x^2+10xy+5y^2\)
\(=5\left(x^2+2xy+y^2\right)\)
\(=5\left(x+y\right)^2\)