f[x_, y_, w_, z_] := Sqrt[(x-y)^2 + (w-z)^2];
v = Integrate[f[x, y, w, z], y]
v /. y->3 - v /. y->2
and see if that works for you.
If so then be cautious about whether that last step is mathematically justified in all cases.