Rewrite as .

Apply the distributive property.

Apply the distributive property.

Apply the distributive property.

Simplify each term.

Multiply .

Raise to the power of .

Raise to the power of .

Use the power rule to combine exponents.

Add and .

Multiply .

Raise to the power of .

Raise to the power of .

Use the power rule to combine exponents.

Add and .

Reorder the factors of .

Add and .

Move .

Apply pythagorean identity.

Reorder and .

Reorder and .

Apply the sine double–angle identity.

Simplify (sin(x)+cos(x))^2