During one of my Calc 2 tasks, I am starting to feel the consequences for not doing any math in high school. I wish to simplify the expression $$\frac{x^3-y^3}{x-y}$$
for $x \neq y$. We may write the expression in several ways, but getting $x-y$ out of the numerator may be a good place to start, so we wish to solve the equation $(x-y)z = x^3 - y^3$ for $z$, and I claim this is the desired simplication. I am able to get the correct answer ($x^2+y^2+xy$) using tools that should be far above such a simple task: long division and getting $Result + \frac{Rest}{Denominator}$, but I am fairly positive that there is something trivial that I've missed during my mathematical education that I am simply unable to see.