Here we see that galvanic and voltaic cells are able to produce electricity because they are not yet at equilibrium. Recall that the chemical reaction will eventually reach equilibrium and at that point \( q \) will equal \( k \). In addition to this, once we've reached equilibrium, we would say that our cell potential under non-standard conditions would also equal 0. So here we have our initial Nernst equation. Here we have your cell potential under non-standard conditions equals cell potential under standard conditions minus \( \frac{0.05916 \text{ volts}}{n} \times \log(q) \), \( q \) being your reaction quotient. Remember, this represents your voltage at an exact. Once we've reached equilibrium, as we've said, your cell potential under non-standard conditions would equal 0 and your \( q \) would equal your \( k \). So now, we use your equilibrium constant as your new variable. Because of this, we can try to solve for what \( k \) would equal in relation to your cell potential under standard conditions.
So, here we would subtract \( E_{\text{cell}} \) from both sides which would give us a negative here and a negative here, and then you would just divide both sides by negative one to make it positive. At this point, we could then multiply both sides by \( n \) to give \( n \times E_{\text{cell}} \) under standard conditions equals \( 0.05916 \text{ volts} \times \log(k) \). Here, we're reformatting the equation to show the relationship that the equilibrium constant has towards your cell potential under standard conditions. We would then divide both sides by \( 0.05916 \text{ volts} \). \( 0.05916 \) equals \( n \times E_{\text{cell}} \) under standard conditions divided by \( 0.05916 \text{ volts} \). You want to get rid of the \( \log(k) \) so you just take the inverse log. So that would become \( k = 10^{n \times \frac{E_{\text{cell}}}{0.05916 \text{ volts}}} \). So this is the equation we'd use when we are given your cell potential under standard conditions and asked to find your equilibrium constant \( K \).
Now, we're going to say the relationship between your cell potential under standard conditions and your equilibrium constant \( K \) and Gibbs free energy can be seen in this format. So, when we have \( k \) and \( \Delta G \), we connect them by this equation here, \( \Delta G = -R \times T \times \ln(k) \). Remember that \( R = 8.314 \text{ joules/moles} \times K \). Remember here that the units could also be changed to \( \text{volts} \times \text{coulombs/moles} \times K \). Then if we have our cell potential under standard conditions and \( \Delta G \), they are connected by this formula here, \( \Delta G = -n \times \text{Faraday's constant} \times E_{\text{cell}} \) under standard conditions. And then finally, \( k \) and \( E_{\text{cell}} \) can be connected by this equation that we saw up above. Remember, at 25 degrees Celsius, this portion here we can get as a standard value. When we multiply by 2.303, that changes \( \ln \) into \( \log \). Then finally, realize that we have cell potential here and here and those cell potentials connect to this equation here. Remember, if we're dealing with standard conditions, this circle here, that would mean that our concentrations are equal to 1 molar. Therefore, we wouldn't rely on the Nernst equation to help us determine what this cell potential is at all. We would just use the cell potential of my cathode minus the cell potential of my anode. This is dealing with standard cell potential so no Nernst equation needed. Keep in mind the relationship that \( q \) and \( k \) have with each other in terms of reaching equilibrium, how there's a transition from your \( q \) value to your \( k \) value. Remember, the Nernst equation is really utilized when we have concentrations that are different from 1 molar. Here in this triangle, we're assuming that we are at equilibrium now, so \( q \) has been transitioned into \( k \). We're dealing with 1 molar concentrations and therefore, we use this simplified version to help us determine the overall standard cell potential and then look at the connection that it has to Gibbs free energy. So, keep in mind these connections as we delve deeper and deeper into looking at calculations that show the interconnectedness of these different variables.