a)
\(10x^2+10xy+5x+5y\)
\(=10x\left(x+y\right)+5\left(x+y\right)\)
\(=5\left(x+y\right)\left(2x+1\right)\)
b)
\(x^3+x^2-x-1\)
\(=x^2\left(x+1\right)-\left(x+1\right)\)
\(=\left(x-1\right)\left(x^2-1\right)\)
\(=\left(x-1\right)^2\left(x+1\right)\)
c)
\(x+2a\left(x-y\right)-y\)
\(=\left(x-y\right)+2a\left(x-y\right)\)
\(=\left(x-y\right)\left(2a+1\right)\)
d)
\(x^2-y^2+7x-7y\)
\(=\left(x+y\right)\left(x-y\right)+\left(x-y\right)\)
\(=\left(x-y\right)\left(x+y+1\right)\)