Answer:
See below.
Explanation:
So we have the two functions:

And we want to find:

1)
Recall that:

is the same as:

Thus, we can substitute g(x):

And substitute that into f(x):

Distribute:

Subtract and simplify:

Thus:

2)
Similarly:

Substitute f(x):

Substitute:

Distribute:

Simplify:

Therefore:
