Two functions f and g are defined on the set of real numbers by \(f…