Let ∇ be the plane domain consisting of interior and boundary
points of a rectangle ABCD of sides AB=a and BC=b. For every point
P∈∇ one defines
f(P)=PA+PB+PC+PD ,
where PA means the length of the segment with endpoints P and A. Find the
range of the function f .