Actually the question is in the title. I just have saw such a method
$$ ax + by = cx + dy \implies a = c, b = d $$
in my textbook, so I can assume it is true, but I'm very interested on proving this, and failed to do this myself. Could anyone explain this, please.
Thank you.
If this equality holds for all $x$ and $y$ then