Be careful to subtract in the correct order. Start with:

Distribute the minus sign to all terms of the second function and then combine like terms.