According to Ohm's law, the electric current flowing through a conductor is directly proportional to the potential difference across its ends.
The formula for Ohm's law is given as:
where is the voltage, is current, and is resistance.
For this proportionality to be valid, the values of resistance must remain constant. Since the resistance of a metal varies with the temperature, the temperature must be constant.
Hence, Ohm's law is applicable for metals under constant temperature.