The graphs of two functions f and g are shown below. The graphs of the functions f of x equals x squared (the solid blue curve) and g of x equals negative one times the quantity x plus 2 squared (the dashed red curve) are plotted on the same graph.
a. Write a function formula for g using the function f.
g(x) =
b. Write a function formula for f using the function g.
f(x) =