We first factor the numerator (top) then cancel.

`{:((x^2-y^2)/(y-x),=((x+y)(x-y))/(-(x-y))),(,=(x+y)/-1),(,=-x-y):}`

On the first line of the solution, I am changing the order of the (yx) into (xy) by placing a minus in front.

This is because

−(xy)

= −x − (-y)

= −x + y

= yx