If we solve that equation for $\frac{V_O}{V_s}$ we get the following formula:
## Formula
$\displaystyle Gain =\frac{V_o}{V_s} = 1+\frac{R_F}{R_G}$
# Buffer (Voltage-Follow)
This circuit is useful, because the output always replicates the voltage at the input. For example if you connect the output of a voltage divider you can drive a load wth $V_o$ and the impedance in the Load will not change the $V_o$
When the output of the op-amp is connected to its own inverting input, and the non-inverting input is connected to ground then it is in a closed loop inverting configuration.
Because the op-amp tries make sure that the voltage of both its inputs pins are the same, it will try to create a voltage which cancels out the voltage on the inverting input. This means if the input is $5V$ then the output voltage is $-5V$.
Another way to think about this is, that we know that the op-amp inputs do not consume current. So all the current goes through $Ri$ and $Rf$ that means that they both have the same exact current flowing through them. Through ohms law we can then figure out the voltage drops across them.
When we connect $V_-$ of the op-amp to ground, the output signal can't go below $0V$ this means that if the input signal goes below $0V$ it is cut of to fix this problem, we need to raise the signal by half of the $V_+$ voltage so that it does not get cut off.
```desmos-graph
y=\sin(x*5)|5>x>0|y>0
y = \sin(x*5)|x<0
y=\sin(x*5)+1|5<x
```
To do that we create a voltage divider which takes half of the $V_+$ voltage and routes it to the non-inverting input of the op-amp.