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.
Apply the distributive property.
Multiply by .
Simplify (sin(theta)-cos(theta))-(sin(theta)+cos(theta))^2