Step 1: Understanding the Concept:
The resistance of a wire depends on how freely its charge carriers can drift. In terms of the carrier density \(n\) and the relaxation time \(\tau\) (the average time between two collisions), the resistivity is
\[ \rho = \frac{m}{n e^2 \tau} \]
Step 2: Metallic conductor:
A metal has a very large and almost fixed number of free electrons, so \(n\) hardly changes when it is heated.
On heating, the metal ions vibrate more. The electrons collide more often, so \(\tau\) decreases. A smaller \(\tau\) gives a larger \(\rho\).
So the resistance of a metallic conductor increases with temperature. Its temperature coefficient of resistance is positive.
Step 3: Semiconductor:
In a semiconductor there are few free carriers at low temperature. Heating gives energy to the bound electrons, which jump across the energy gap into the conduction band. This increases \(n\) very quickly (roughly exponentially).
The fall in \(\tau\) due to more collisions is also present, but the rise in \(n\) is much larger and wins.
So \(\rho\) decreases, and the resistance of a semiconductor decreases with temperature. Its temperature coefficient is negative.
Final Answer:
On heating, the resistance of a metal increases (because \(\tau\) falls while \(n\) stays fixed), but the resistance of a semiconductor decreases (because \(n\) rises sharply).
\[ \boxed{\text{Metal: } R \uparrow; \quad \text{Semiconductor: } R \downarrow} \]