In metals the major factor affecting the value of resistivity when temperature changes is
m: the mass of an electron
n: the number of free electrons per unit volume
: average time between collisions
e: the charge of an electron
n does not change much in metals when temperature increases, but the value of τdecreases causing resistivity to increase.
For semiconductors, the major factor affecting the value of resistivity when temperature changes is