Circle & Square

Topic:
Circle, Square
The yellow point P lies on the line segment AB. The perimeter of the square is equal to PA. The circumference of the circle is equal to PB. Drag point P. Can you write an expression for the curve in the right hand panel. What questions could/would you pose to your students based on this applet?.
Adapted from a problem by Dan Meyer