Consider a line segment on an $\Bbb R^2$ plane with one end (call it $p_1$) fixed along x-axis and another end (call it $p_2$) fixed along y-axis. The point $p_1$ starts at $(0,0)$ and the point $p_2$ starts at $(0,1)$. I allow the line segment to move with one of the following constraints:
$1$. The point $p_1$ moves to the right with the constraint that the length of the line segment is fixed. The line segment stops moving when $p_1$ reaches $(1,0)$.
$2$. The point $p_1$ moves to the right and the point $p_2$ moves downward with the constraint that the distances travelled by each of the points are equal at any moment, i.e. when $p_1$ moves by $(t,0)$, $p_2$ shall move by $(0,-t)$. The line segment stops moving when $p_1$ reaches $(1,0)$.
In each of both cases, there is a region swept by the line segment. What are their areas respectively?
It may look like a simple integration problem, but I have absolutely no idea how to find the function for the curve above the region. Do I miss out something obvious, or is it really a non-trivial problem?