# Analyze op amp circuit

I want to know how to calculate the output of the below op amp. I know this is supposed be an inverting amplifier with offset but I have never seen the connection of the offset to the negative side of op amp.

simulate this circuit – Schematic created using CircuitLab

I have come up with this formula:

$$V_{\text{out}} = V_{\text{in}} \times \frac{R_2}{R_1} + \frac{R_2}{R_4+R_7}V_\text{p}$$

Is it correct? $$\V_\text{p}\$$ is the voltage out of the potentiometer.

• Hint: print this circuit out on paper, and use different colored highlighters to trace out the different nodes. – The Photon Sep 4 '19 at 16:33

Vout ~= $$\ -V_{IN} \cdot \frac{R_2}{R_1} -V_P \cdot \frac{R_2}{R_4}\$$, ignoring op-amp gain and offset voltage.