The function g is defined as follows.
g(x)=3x²-7
If the graph of g is translated vertically upward by 6 units, it becomes the graph of a function f.
Find the expression for f(x).