Consider $$g(x) = \cases{ 1 & $x < 0$ \\ 2 & $x\geq0$}$$
and the differential equation $x'=g(x).$ Prove that there is no solution if we set $x(0)=0$.
My idea is that the differential equation $\frac{dx}{dt}=g(x)$ can be solved by $\displaystyle{\int\frac{1}{g(x)}dx}=t$. Now suppose $x(0)=0$; we set $t=0$ in the former equation and looks like it must be $\displaystyle{\int\frac{1}{g(x)}dx}=0$, but this can't be because $g(x)>0$ which implies $\displaystyle{\int\frac{1}{g(x)}dx}>0$.
Is this a correct argument?