What are solids made of?
From the previous chapter you learnt that molecules in a gas keep bumping into each other because of thermal energy - random energy that comes from being at a certain temperature. Larger the temperature, larger the energy and hence the velocity of molecules. The same thermal energy holds even for solids as in the above animation. You might think of solids as fixed objects with atoms fixed in place. However, atoms in solids keep bouncing off each other in the same way as in a gas. The main difference is that in a solid, atoms don't move relative to their neighbors. They maintain a fixed pattern like the hexagonal structure (each atom has 6 neighbors) in the animation and this is essential for the key properties that distinguish solids from other phases of matter.
Why do atoms in solids like to stick together unlike gases?
At this scale, atoms experience two kinds of relevant energies. One is the thermal energy that we talked about in the context of gases, the other is energy due to electrical interactions between atoms. This is quite an oversimplification of the interactions at the atomic scale. There are other energy contributions due to electron numbers, magnetic fields arising from motions of charges within atoms, nuclear energies, etc. A complete understanding of these contributions on material properties lies in quantum mechanics. And don't get me wrong, they are important. Properties like what color a material is and how well it can conduct electricity depend on these interactions. However, for the purpose of this discussion: why do atoms in a solid stick together, we can ignore the complex interactions for now. Maybe in a later blog I'll discuss other types of interactions and quantum mechanics and how that leads to the emergence of some key material properties.
The idea is straightforward. If thermal energy is high, atoms keep bouncing around. But when temperature becomes lower, thermal energy reduces and atoms feel their interactions between neighboring atoms much more. At a low enough temperature, atomic interactions win over thermal interactions and atoms would rather stick close together and crystallize into a solid.
In the figure for Cu (Copper) interaction potential, the y-axis denotes the potential in electron Volts and the x-axis denotes distance between atoms in Angstrom. When separation between atoms is less than 3.5 Angstroms or so, atoms start to feel a negative potential. The negative means that they like to stick together. The most negative value is around a separation of 2.6 Angstrom, roughly -0.5 eV. Below that distance of separation, Copper atoms start to experience a positive potential, meaning that they repel each other. More positive, larger the repulsion they feel. Finally, at separations larger than 5 Angstroms or so, the atoms are too far from each other and basically don't feel another atom that's more than 5 Angstroms away.
Now remember thermal energy is kBT where kB is the Boltzmann constant. Turns out at room temperature, thermal energy is 0.026 eV. This is way lower than the maximum attractive energy felt by Copper atoms (-0.5 eV). What does that mean? In this case, as in the heuristic below, Copper at room temperature is a solid (interatomic energy much greater than thermal energy). However, what about at the melting point of Copper, 1358 K (1984 F)? Turns out that in this case, thermal energy is 0.12 eV. That's much closer to the minimum energy between Copper atoms of 0.5 eV, and thus initiates melting of Copper into liquid.

Solids and Springs
OK so now you understood why solids form at low temperatures. But what determines the properties of a solid? Well it turns out that the most characteristic property of a solid: it's elasticity, can be understood as emerging from the interactions between atoms. That might sound complicated. But the key contribution of physics lies in simplifying complex problems. In fact one of the most common simplifications is to treat atoms as spheres and interactions between them as springs. This ball and spring model is one of the cornerstones of physics.
Spring potential goes as 1/2kx2, where x is the distance from equilibrium position and k is the spring constant. Compress a spring and there is a potential energy that causes the spring to return back to equilibrium, same with elongating a spring. In a similar vein, atoms that sit a distance of 2.6 Angstroms from each other also experience a spring like interaction potential. Elongating atoms leads to them trying to recoil back, which is ultimately the origin of elasticity. However this analogy will not suffice. We will go in more detail and derive elasticity as arising from aromic springs!
A spring has a characteristic spring constant k. The spring constant determines the force by which the spring recoils, according to Hookes law. Higher the spring constant, larger the force required to displace a spring and consequently, stiffer the spring. Lower the spring constant, softer the spring.
What happens when you connect many springs? You get a solid!
Now that we understand a single spring, what happens when multiple springs are connected? First let's imagine a solid wire of length L and cross-sectional area A. How does the stiffness of the material change with A vs L?
Think about the simple cases of connecting 2 springs lengthwise (series), like 2 wriggley chewing gum sticks. It's much easier to pull on them when there are 2 connected. In fact the spring constant becomes ks= k/2 for 2 springs connected lengthwise. But if you stick the 2 wriggleys to each other like velcro instead, now they are connected in parallel and harder to pull. In this case the springs are stiffer, and the spring constant becomes kp= 2k for 2 springs connected in parallel. In general for ns connected in series, the spring constant is k/ns. Similarly, for np connected in parallel, the spring constant is k/np. Also if you have a solid with ns in series and np springs in parallel, the spring constant is k np/ns.
How does that translate to solids? Well if the length between atomic springs is d, then the number of springs in series across the length L of the solid is ns=L/d. Similarly, the number of springs in parallel is np=A/d2.
The emergence of elasticity from atomic springs
We now have a formula for the net solid spring constant as connected to atomic spring constant k and distance between atomic springs d. But how does that translate to elasticity? For that we need to go to the definition of elasticity. Elasticity is Stress/ Strain. Where Stress is the force per unit area applied say on a rubber band and is measured in Pascals. Strain is how much the solid deforms relative to it's original length.
When you plug in the variables, finally you get elasticity as k/d: the ratio of the interatomic spring constant to the distance between springs. Let's pause and think about that for a moment. Elasticity is something that you are familiar with: a rubber band is elastic. While you might not think a rod of iron is elastic, it is, albeit a very high stiffness thus making it much harder to stretch. I've shown that a macroscopic measurement of how much force it takes to stretch a material, can tell you about how stiff and how far apart atoms in a material are!