# Algebra help

posted by
**Shawn**
.

Find (fog)(x)and (gof)(x)if f(x)=x-x^2 and g(x)= 2x+3.

Okay so I did the following:

For f(of)g(x), take (2x+3) - (2x+3)^2

(insert g(x) where the "x" is in f(x) )

For g(of)f(x), take 2[x-x^2] +3

The first answer that I get for (2x+3) - (2x+3)^2 is -4x^2-12x-9

The second answer that I get for

2[x-x^2] +3 is 2x-2x^2+3

are these the answers to the problem?