the f(x) creates the exact slope of those in the picture because is the parent function of g(x) and by adding the 3 in the front it set the y-intercept to be 3 as such in the picture visual.
-Also if you don't believe me you can always put it in a graphing calculator such as Desmos