I'm learning about the basics of op amps - at the moment looking into using them to remove or add offsets. However I'm struggling with deriving a 'general-case' equation for such a circuit for gain and why it offsets the way it seems to in simulation.
Using a standard op amp model I found that, for an inverting amp, applying a voltage, Vx, to the non-inverting input would offset the output by 2Vx without affecting the gain.
I tried deriving the gain equation, as shown in my attachment. When the inverting input is 0V, the Vp terms disappear nicely - but in this case they don't... Instead I am juggling Vout by (5) and have no idea where it goes from here...
Also, as far as it comes to figuring out why the offset is twice the voltage at the +'ve terminal - I have no idea where to start.
Any further explanation would be really appreciated.
