Let and . Find and simplify.
Write down the definition of the difference of two functions. By definition
The subtraction applies to the entire output of , which is why the next step needs brackets.
Substitute, keeping g in brackets.
Omitting those brackets is the single most common error, and it produces , which is wrong.
Distribute the minus sign. It changes the sign of every term inside:
Combine like terms. The terms give ; the constants give :
Check with a test value. At : and , so ; and . The values match, confirming the sign handling. Note also that , so the difference has a single zero at .
Need to solve a different problem like this? Open the solver →