How to simplify this complex expression?

Let $f(x, y) = x^2 - xy$. Determine a simplified expression for $f(x, x-y)$.

-

1 Answer

Substitute $y$ with $x-y$ in the expression which gives

$f(x,x-y)=x^2-x(x-y)=xy$

-