We know how to calculate the total resistance of the cylindrical conductor given its length, radius, and resistivity. But how do we calculate the equivalent resistance when the resistivity is not constant? For example, say the resistivity at a particular point at a distance x from the axis of the conductor is related is f(x). So can I integrate f(x) over the cylinder to get the overall resistivity (this was my first approach)? Or shall I use microscopic form of Ohm's Law? I think the second option will be more appropriate in this problem. Can anyboidy please help me how to progress?