Analytical Solution for a Harmonic Potential#
To simplify things, we will approximate our diatomic molecule potential energy surface with a harmonic potential of the form
In this case, we can find the minimum analytically by finding the value of \(r\) at which the derivative of \(U\) is equal to zero, i.e.
Therefore, at the minimum, \(r = r_0\).
This analytical solution if possible because we have a simple mathematical function for \(U(r)\). However, for real molecular systems, we typically do not have an analytical form for \(U(r)\).
Exercise#
Write a Python function to calculate the potential energy surface for a diatomic molecule with a harmonic bond potential,
where \(k\) is the bond force constant and \(r_0\) is the equilibrium bond length.
Your function should take three arguments as input; \(r\), \(k\), and \(r_0\); and return the potential energy for the input value of \(r\).
Plot this function for H2 (\(r_0\) = 0.74 Å, \(k\) = 36.0 eV Å−2) for \(0.38\leq r \leq 1.1\).
Use your function to calculate the potential energy at \(r=r_0\). Add a point to your plot at \((U(r_0), r_0)\) and confirm visually that this is the minimum of the potential energy surface.