i will recheck the circuit today but i think the TL072 operates with a single supply voltage ranging from 3V to 36V (or ±1.5V to ±18V for dual supply configurations). This should be sufficient for most low-voltage circuits, but considering the above comments:
About the Input Common-Mode Voltage (Vcm), i know it should be within the range defined in the datasheet. For TL072, this is typically 1.5V above the negative rail (if using single supply), and it may struggle if the input voltage is too close to the supply rails. TL072 does not have rail-to-rail output. It can typically swing 1.5V to 3V below the positive supply (depending on the load) and 1.5V to 3V above the negative supply. So, using a 9V supply (for example), the output could realistically only reach a maximum of 6V-7V, not 5V as I wanted. This is likely the cause of the output being stuck around 2.9V instead of 5V in my simulation. A;sp in the circuit, a reference voltage (Vz) of 2.5V, which is well within the TL072's capabilities. However, the output needs to reach 5V, which might not be feasible due to the op-amp's output swing limitations.