# A Visual Intuition for Factoring

May 02, 2017I’m a big fan of the 3Blue1Brown YouTube channel which provides pretty, visual intuitions of some pretty gnarly math so check it out if you haven’t already.

Well this math isn’t gnarly but I think it’s pretty neat so let’s talk about factoring. Say we have a square:

Remembering that the area of a square is just length times width, the area of this square would just be x*x or x^{2} Now take this same square and imagine we added y to both sides.

The new total area would now consist of:

- The original squares area, x*x
- The area of the rectangle on the bottom, y * x
- The area of the rectangle on the side, x * y
- The area of the square in the bottom right y * y.

Adding all of these together you get:

x^{2} + 2xy + y^{2}

Actually, there’s a shortcut you can see that adding y to both sides changes the width and length to x+y, already signifying (x+y)^{2}. But I think the earlier method is more generalizable. Think about how this would look adding another dimension (x+y)^{3}. There would be much more little extra squares. That’s why it evaluates into:

x^{3} + 3x^{2}y + 3xy^{2} + y^{3}

Doesn’t it now make a lot more sense that Pascal’s Triangle increases in complexity as the number of dimensions increases?

At the heart of this technique is this little trick to split everything into chunks which you can individually calculate the area of, summed together they would create the area of the original. I think it’s an interesting little mathematical sleight of hand to pop into the toolbox.