Differential equation $y''=y^2$ I must solve the differential equation $y''=y^2$. Clearly, the function $y=0$ is a solution. So, assume that $y$ is not identically zero. Unless I'm not mistaken, there is a trick to solve equations of this kind. If I multiply for $2y'$, the left-hand member is $2y'y''$, that is the derivative of $(y')^2$, while the right-hand member is $2y^2 y'$. At this point, how can I continue this exercise?

We must solve $y'' = y^2$. Assuming the independent variable is $x$, let us write this as:
$\frac{d^2y}{dx^2} = y^2$. Then, using the chain rule, we can write the left hand side as: 
$\frac{d^2y}{dx^2} = \frac{d}{dx} \left(\frac{dy}{dx}\right) = \frac{d}{dy} \left(\frac{dy}{dx}\right) \frac{dy}{dx}$. 
But, this is equivalent to:
$\frac{d}{dy} \left[ \left(\frac{dx}{dy}\right)^{-1}\right] \left( \frac{dx}{dy}\right)^{-1}$.
Computing this derivative, we get:
$-\left(\frac{dx}{dy}\right)^{-2} \frac{d^2 x}{dy^2} \left( \frac{dx}{dy}\right)^{-1} = -\left(\frac{dx}{dy}\right)^{-3} \frac{d^2x}{dy^2}$. 
But, this is simply:
$\frac{d}{dy} \left[ \frac{1}{2} \left( \frac{dx}{dy}\right)^{-2}\right]$.
Now, we go back to your original ODE:
$\frac{d^2 y}{dx^2} = y^2$ 
we can write as:
$\frac{d}{dy} \left[ \frac{1}{2} \left( \frac{dx}{dy}\right)^{-2}\right] = y^2$
Integrating both sides wrto $y$, we get:
$\frac{1}{2} \left( \frac{dx}{dy}\right)^{-2} = 2 \int y^2 dy + A$, where $A$ is just a constant. 
Solving for $dx/dy$, we get that:
$\boxed{x + B = \pm \int \frac{dy}{\sqrt{2 \int y^2 dy + A}}}$. 
The right  side is a very messy integral, you get some elliptic functions, in fact, Mathematica gives that the right-hand-side is:
$\frac{\sqrt[6]{-1} 2^{2/3} \sqrt[12]{3} \sqrt[3]{A} \sqrt{(-1)^{5/6} \left(\frac{\sqrt[3]{-\frac{2}{3}} y}{\sqrt[3]{A}}-1\right)} \sqrt{\frac{\left(-\frac{2}{3}\right)^{2/3} y^2}{A^{2/3}}+\frac{\sqrt[3]{-\frac{2}{3}} y}{\sqrt[3]{A}}+1} F\left(\sin ^{-1}\left(\frac{\sqrt{-\frac{i y \sqrt[3]{-\frac{2}{3}}}{\sqrt[3]{A}}-(-1)^{5/6}}}{\sqrt[4]{3}}\right)|\sqrt[3]{-1}\right)}{\sqrt{A+\frac{2 y^3}{3}}}$, 
where $F$ denotes the elliptic integral of the first kind. 
In general, the boxed equation is the general implicit solution to this problem. These types of ODEs occur all the time in classical mechanics, and most often are solved numerically or using dynamical systems techniques. 
Hope this is helpful!
