Substitute the expression into the function for x:
Use the distributive property on the right side:
Combine like terms to simplify: