The problem is to find an expression for the time it takes for a cylindrical water tank is half empty. I am given that the water tank has a diameter of $D_0$ and a hight $H$. The water outlet is placed in the bottom of the water tank and has a diameter $D$.
I am using the Bernoulli's equation to find the velocity to have the expression $v=\sqrt{2gH}$, because both pressures are atmospheric.
The method I used to find the expression for the time it took for the water tank to be half empty, is to divide the volume of the tank with the flow rate:
$t=\frac{V}{\dot V}$.
The expression for the volume of half of the water tank (We are supposed to calculate the time it takes for half of the volume to flow out, and therefore only half of the volume is used here):
$V=A\cdot H=\frac{\pi}{4} D_0^2 \frac{1}{2}H$=$\frac{\pi}{8} D_0^2H$
while the expression for the flow rate is:
$\dot V=A\cdot v=\frac{\pi}{4} D^2\sqrt{2gH}$
The expression for the time then becomes:
$t=\frac{\frac{\pi}{8} D_0^2H}{\frac{\pi}{4} D^2\sqrt{2gH}}=(\frac{D_0}{D})^2\frac{H}{2\sqrt{2gH}}=\frac{1}{2}(\frac{D_0}{D})^2\sqrt{\frac{H}{2g}}$.
My book uses that
$dV=\frac{\pi}{4}D^2\sqrt{2gz}dt$
and that $dV$ can also be expressed as:
$dV=A_{tank}(-dz)=-\frac{\pi}{4}D_0^2dz$
These two expressions for $dV$ are then put equal to each other and solved for $dt$. This expression is then integrated and the result is the following:
$t=(\frac{D_0}{D})^2 \frac{1}{\sqrt{2g}}(\sqrt{H}-\sqrt{\frac{H}{2}})$
My question is therefore why the first method does not give the same answer for time as the second method?