Solution to $y'=y^2$ is $y = \frac{1}{C-x}$.
If we have extra condition that $y(1)=0$ than we get $0 = \frac{1}{C-1}$. C then has no solutions. My text book says that the solution to this is $y=0$, but why?
Solution to $y'=y^2$ is $y = \frac{1}{C-x}$.
If we have extra condition that $y(1)=0$ than we get $0 = \frac{1}{C-1}$. C then has no solutions. My text book says that the solution to this is $y=0$, but why?
Well, just plug $y=0$ into the equation. Does it solve it? Yes. Does it satisfy the initial condition? Also yes. That's it, that's a solution, and that's the only solution because you have a general uniqueness theorem that guarantees that.
Forget about your general formula. These formulas very often have exceptions. In this case, for example, you could explain the solution $y=0$ as a limiting case of your general formula, corresponding to letting $C\to \infty$.
Whenever you do something that's not always legal (like dividing by an expression that may be zero), you should make sure to note those exceptions and handle them separately.
In this case, you divide by $y$, which is only legal when $y \neq 0$. You move forward with your general solution method, but eventually hit a wall, and you don't get any solution out of it. At best, you've shown that there doesn't exist any nonzero solution, but since you excluded $y=0$ from the very beginning, none of the proceeding work has anything to say about that case.
So, you check the $y=0$ case separately, and you see that it does solve the equation and satisfy the initial value, so it a solution.
What you've done is the equivalent of solving $x^3 = -x$ over the reals by dividing by $x$ and then arriving at the (incorrect) conclusion that there are no solutions.
$y^{'} = y^{2} \\ \frac{dy}{dx} = y^{2} \\ dy\cdot y^{-2} = dx \\ \text{integrating both sides} \\ \frac{y^{-1}}{-1} = x + C \\ \frac{-1}{y} = x + C \\ \text{the solution for the above differential equation satisfies (1,0)} \\ \frac{-0}{1} = 1 + C \\ C = -1 \\ \frac{-1}{y} = x - 1 \\ y = \frac{1}{1-x} \\ \text{this is the "General Solution" we took out} \\ \text{but there is also another solution y = 0, meaning} \frac{dy}{dx} = 0 \text{ and it even gets satisfied in the differential equation given, these types of solution are known as "Particular Solution" and can only be known by observation/experience in this chapter.} $