Dynamic model for a figure that's sliced off a triangle

You are given an isosceles right angled triangle ABC. Line DF is perpendicular to the hypotenuse AB in distance x from the vertex A. It slices off a figure whose area is S(x). Move the point D to find out what the graph of the function S(x) looks like!
Can you define the expressions that determine the function S(x)?