Rotating Squares - an algebraic perspective

How does the area of the overlapping shape [br]depend on the yellow angle?
adapted from an applet by KNWilson

Information: Rotating Squares - an algebraic perspective