Given that f: x –> x\(^2\) – x + 1 is defined on the Set Q…