Understanding the precision rectifier
I'm confused because given the two equations that I have the polarity on the diode will be positive no matter what; \$V_{out}&gt;V_{Y}\$.
In the left scenario, \$V_{out}\$ will be near the positive rail of the op-amp and \$V_Y\$ will be at 0 volts hence, the diode is reverse biased and not conducting.
Therefore &quot;the polarity on the diode will be positive no matter&quot; is incorrect.