Bài 1:
a: \(x\left(x+y\right)+5y-x^2\)
\(=x^2+xy+5y-x^2\)
=xy+5y
b: \(\left(x-2\right)\left(y+1\right)-xy+4\)
\(=xy+x-2y-2-xy+4\)
=-2y+x+2
c: \(\dfrac{\left(4x^2y+12xy^2-8xy\right)}{2xy}\)
\(=\dfrac{2xy\cdot2x+2xy\cdot6y-2xy\cdot4}{2xy}\)
=2x+6y-4
d: \(\left(x-4\right)^2+8x-7\)
\(=x^2-8x+16+8x-7\)
\(=x^2+9\)