Perform the requested operation or operations. f(x) = ; g(x…