Suppose a container contains x of liquid from which y units are taken out and replaced by water.After n operations, the quantity of pure liquid is: $x\left(1-\dfrac{y}{x}\right)^n$ I understand the concept but I am unable to derive it. I tried by taking 10 litre of liquid and adding 2 litre water for 2 operations $10:0$
operation 1: $10-2:2$
operation 2:
quantity of liquid removed=$\dfrac{2*8}{10}$
finally $8-\frac{8}{5}$:$2+2-\frac{2}{5}$
which is same as the formula but I am not able to prove $10(1-\frac{2}{10})^2$ from it. I need a general proof of $(x(1-y/x)^n)$.