22.41.
Consider a small strip of the metal rod of width dr. Then, the is
an amount of current dI flowing through the rod where we realize
that
We know that the magnetic field a distance r away from a wire
carrying current dI is given by
So, to find the total magnetic field, we have to integrate.
or