Electronic – how to solve this op-amp circuit

circuit analysishomeworkmathoperational-amplifier

I would appreciate some help solving this simple circuit which I'm trying for some time but can't seem to match with the given answer.
Aim is to find output voltage \$V_o\$

enter image description here

for the given input voltage –

enter image description here

My attempt : Since the only current flow \$i\$ is from \$V_O\$ to ground via 4k and 1k resistors, and \$V_+=V_{in}\$ $$i(mA)=V_{in}/1$$
$$\Rightarrow V_o=V_{in}+i*4=5V_{in}$$

So that when \$V_{in}\$ vary from (-5 to -2); (-2 to 2); (2 to 5)., \$V_o\$ saturates at -10; varies linearly to 10; then saturates at 10.

But the output is given as –

enter image description here

Thanks,

Best Answer

Your circuit doesn't have negative feedback: -

enter image description here

Therefore it acts as a comparator with hysteresis and hence, the output changes state when the input voltage passes the hysteresis threshold points shown below in red dots: -

enter image description here

The non-inverting version is also known as a Schmitt trigger circuit: -

enter image description here

enter image description here