Write the mathematical relation for the resistivity of a material in terms of relaxation time, number density and mass and charge of charge carriers in it. Describe, using this relation, why the resistivity of a metal enhances and that of a semi-conductor reduces with rise in temperature.