Algebra is full of repeating patterns that you could work out by arithmetic every time. But because those patterns are so common, there's usually a formula of some sort to help make the calculations easier. The cube of a binomial is a great example: If you had to work it out every time, you'd spend a lot of time toiling over pencil and paper. But once you know the formula for solving that cube (and a few handy tricks for remembering it), finding your answer is as simple as plugging the right terms into the right variable slots.

#### TL;DR (Too Long; Didn't Read)

The formula for the cube of a binomial (*a* + *b*) is:

(*a* + *b*)^{3} = *a*^{3} + 3_a_^{2}*b* + 3_ab_^{2} + *b*^{3}

## Calculating the Cube of a Binomial

There's no need to panic when you see a problem like **(a + b)**^{3} in front of you. Once you break it down into its familiar components, it'll start to look like more familiar math problems you've done before.

In this case, it helps to remember that

**(a + b) ^{3}**

is the same as

**(a + b)(a + b)(a + b)**, which should look a lot more familiar.

## Sciencing Video Vault

Create the (almost) perfect bracket: Here's How

But instead of working out the math from scratch every time, you can use the "shortcut" of a formula that represents the answer you'll get. Here's the formula for the cube of a binomial:

**(a + b) ^{3} = a^{3} + 3a^{2}b + 3ab^{2} + b^{3}**

To use the formula, identify which numbers (or variables) occupy the slots for "a" and "b" on the left side of the equation, then substitute those same numbers (or variables) into the "a" and "b" slots on the right side of the formula.

**Example 1:** Solve **(x + 5) ^{3}**

As you can see, **x** occupies the "a" slot in the left side of your formula, and 5 occupies the "b" slot. Substituting **x** and 5 into the right side of the formula gives you:

**x ^{3} + 3x^{2}5 + 3x5^{2} + 5^{3}**

A little simplifying gets you closer to an answer:

**x ^{3} + 3(5)x^{2} + 3(25)x + 125**

And finally, once you've simplified as much as you can:

**x ^{3} + 15x^{2} + 75x + 125**

## What About Subtraction?

You don't need a different formula to solve a problem like **(y - 3) ^{3}**. If you recall that

**y - 3**is the same as

**y + (-3)**, you can simply rewrite the problem to

**[y + (-3)]**and solve it using your familiar formula.

^{3}**Example 2:** Solve **(y - 3) ^{3}**

As already discussed, your first step is to rewrite the problem to **[y + (-3)] ^{3}**.

Next, remember your formula for the cube of a binomial:

**(a + b) ^{3} = a^{3} + 3a^{2}b + 3ab^{2} + b^{3}**

In your problem, **y** occupies the "a" slot on the left side of the equation, and -3 occupies the "b" slot. Substitute those into the appropriate slots on the right side of the equation, taking great care with your parentheses to preserve the negative sign in front of -3. This gives you:

**y ^{3} + 3y^{2}(-3) + 3y(-3)^{2} + (-3)^{3}**

Now it's time to simplify. Again, pay close attention to that negative sign when you apply exponents:

**y ^{3} + 3(-3)y^{2} + 3(9)y + (-27)**

One more round of simplifying gives you your answer:

**y ^{3} - 9y^{2} + 27y - 27**

## Watch out for the Sum and Difference of Cubes

Always pay close attention to where the exponents are in your problem. If you see a problem in the form **(a + b) ^{3}**, or

**[a + (-b)]**, then the formula being discussed here is appropriate. But if your problem looks like

^{3}**(a**or

^{3}+ b^{3})**(a**, it's not the cube of a binomial. It's the sum of cubes (in the first case) or the difference of cubes (in the second case), in which case you apply one of the following formulas:

^{3}- b^{3})**(a ^{3} + b^{3}) = (a + b)(a^{2} - ab + b^{2})**

**(a ^{3} - b^{3}) = (a - b)(a^{2} + ab + b^{2})**