I'm not sure if this is the kind of thing you are asking for, but it might help. For the following arrangement, there is a general formula for the relationship between \$V_{OUT}\$, \$V_A\$ and \$V_B\$:
simulate this circuit – Schematic created using CircuitLab
$$ V_{OUT} = V_B\left( 1 + \frac{R_2}{R_1} \right) - V_A\frac{R_2}{R_1} $$
This can be interpreted to mean that any variation in \$V_B\$ (while \$V_A\$ remains constant) will be subject to gain \$1+\frac{R_2}{R_1}\$, and any variation in \$V_A\$ (while \$V_B\$ is fixed) will be subject to gain \$-\frac{R_2}{R_1}\$.
By setting \$V_A\$ to zero, or \$V_B\$ to zero, effectively you are producing the following two configurations respectively:
simulate this circuit
No doubt you recognise these as classic non-inverting and inverting amplifiers, and you can see by plugging in \$V_A=0\$ and \$V_B=0\$ into the above general equation, you obtain their well-known gain equations.
On the left, with \$V_A = 0\$ we have the non-inverting relationship:
$$ \frac{V_{OUT}}{V_{B}} = 1 + \frac{R_2}{R_1} $$
On the right, inverting, when \$V_B = 0\$ we have:
$$ \frac{V_{OUT}}{V_{A}} = -\frac{R_2}{R_1} $$
If you are comfortable with the concept of negative feedback (via the potential divider formed by R1 and R2) causing the op-amp to produce whatever output is necessary to equalise its two inputs, then the general formula (the first equation I wrote above) is easy to derive. Consider this:
simulate this circuit
The op-amp's inverting input potential is \$V_Q\$, and its non-inverting input has potential \$V_B\$. From op-amp behavior with negative feedback, we can state:
$$ V_Q = V_B $$
\$V_Q\$ is some potential that lies between \$V_A\$ and \$V_{OUT}\$, as defined by the potential divider of R1 and R2. It might help to redraw that divider like this:
simulate this circuit
If you do the algebra you'll find:
$$ V_Q = V_A + (V_{OUT} - V_A)\frac{R_1}{R_1 + R_2} $$
From before, we stated that op-amp action with negative feedback will always cause \$V_Q\$ to settle at a value to equal \$V_B\$, so replace \$V_Q\$ with \$V_B\$:
$$ V_B = V_A + (V_{OUT} - V_A)\frac{R_1}{R_1 + R_2} $$
If you re-arrange that to make \$V_{OUT}\$ the subject, you will end up with the same general equation I started with:
$$ V_{OUT} = V_B\left( 1 + \frac{R_2}{R_1} \right) - V_A\frac{R_2}{R_1} $$