what does the F and g mean at the beginning of any function

They are simply a way of saying that f or g is a function of some other number, such as x. It is a formula for using one number to compute another.

Other letters than f and g can also be used to denote functions.