Transfer characteristics of circuits involving op amp with diodes
Ask yourself for each case (\$V_i\$ positive and \$V_i\$ negative), what the output has to do to satisfy the fundamental (idealized) property of such an op-amp circuit, which is that the input terminals are held at the same voltage.