a)\(\dfrac{xy^3-yx^3}{x^2+xy}=\dfrac{xy\left(y^2-x^2\right)}{x\left(x+y\right)}=\dfrac{y\left(y+x\right)\left(y-x\right)}{x+y}=y\left(y-x\right)\)
b)\(\dfrac{x^5-1}{x^4+x^3+x^2+x+1}=\dfrac{\left(x-1\right)\left(x^4+x^3+x^2+x+1\right)}{x^4+x^3+x^2+x+1}=x-1\)