Set up the composite result function.

Evaluate by substituting in the value of into .

Rewrite as .

Expand using the FOIL Method.

Apply the distributive property.

Apply the distributive property.

Apply the distributive property.

Simplify and combine like terms.

Simplify each term.

Multiply by .

Move to the left of .

Multiply by .

Add and .

Apply the distributive property.

Multiply by .

Combine the opposite terms in .

Subtract from .

Add and .

Subtract from .

Find f(g(x)) f(x)=x^2-2x-2 g(x)=x+2