According to the second law of thermodynamics, heat will flow from the hot environment to the cold one as the temperature difference is equalized by diffusion. This is quantified in terms of a heat flux q , which gives the rate, per unit area, at which heat flows in a given direction (in this case minus x-direction). In many materials, q is observed to be directly proportional to the temperature difference and inversely proportional to the separation distance L :