Homework Help:
V_in / V_out for a simple didoe/op-amp circuit

A1.b) Input will be a sine wave 6Vpp . When the input goes positive, D1 conducts and short circuits the ‘first’ resistor. D2 doesn’t conduct (it acts as an open circuit) and so Vout = voltage across R in parallel = 3V.

When the input goes negative D1 doesn’t conduct and D2 does. Therefore, the voltage goes through the ‘first’ resistor but the second resistor in parallel is short circuited. Therefore Vout = 0v since the diode is ideal.