Use the Binomial Theorem.

Apply the product rule to .

Raise to the power of .

Apply the product rule to .

Multiply by by adding the exponents.

Move .

Multiply by .

Raise to the power of .

Use the power rule to combine exponents.

Add and .

Raise to the power of .

Multiply by .

Multiply by .

Raise to the power of .

Multiply by .

Raise to the power of .

Expand (3x-1)^3