Third equation:
So,
Integrating, we have:
That stays:
Therefore:
Do you realize that the third equation doesn't depend on the time?
It is known as Torricelli's equation.