g: R → R be defined