It appears that you added the two functions instead of subtracting them. Start with:
Be sure to distribute the minus sign to all terms of the second function and then combine like terms.