w_2=\sqrt{{w_1^2}+2\int_{p_2}^{p_1}vdp}