Graphing math input of a function written in terms of other functions

Is it possible to have a math input graph a student answer like g(x)=f(x)+2 (assuming f(x) is defined)?

Here’s what I’m trying to do in a sample activity.

Function notation is supported in the calculator, but not in the CL. I posted this before, where I sort of fool the calculator into accepting (some) transformations.