Well, it is true that = , but that is not the answer to the first question you mention because the above integral is not what you are being asked to solve.
In y' = , y' is in fact , so you have to move with dy, and get;
=dx, and then, integrate on both sides : =
Trying to "simply integrate" as you suggest would amount to attempt to the following:
These two expressions are not defined.