Differentiate between molarity and molality for a solution. How does a change in temperature influence their values?

Ans:

Molality is defined as the number of moles of the solute per kilogram of the solvent. It is represented by $m$.

Molality($m$) $= \frac{(no. \, of \, moles \, of \, solute) \times 1000}{mass \, of \, solvent \,  (in \, gram)}$

It does not change with change in temperature.

Molarity is defined as the number of moles of solute dissolved in one litre or one cubic decimetre of the solution. 

Molarity($M$) $= \frac{no. \, of \, moles \, solute \times 1000}{volume \, of \, the \, solution \, (in \, mL}$

It decreases with increase in temperature.