Export Image
Export Code

Curran Kelleher

0 views in last 90 days
Last edited May 09, 2025
Created on Aug 27, 2020
Forked from HTML Starter

Visualizing the (a+b)² Formula

This visualization demonstrates the algebraic identity (a+b)² = a² + 2ab + b² using a geometric approach.

The formula is visualized as a square with side length (a+b), which is divided into:

  • One square of area a² (in blue)
  • Two rectangles of area ab (in green)
  • One square of area b² (in orange)

Users can adjust the values of a and b using sliders to see how the visualization changes.

This helps build intuition about the formula by showing that (a+b)² can be broken down into the sum of these four areas: a² + ab + ab + b² = a² + 2ab + b².

MIT Licensed