A rod of length L and cross-section area A lies along the x-axis between x = 0 and x = L. The material obeys Ohm's law and its resistivity varies along the rod according to ρ(x)=ρ0e−x/L. The total resistance of the rod is
ρ0LA(1−1e)
The resistance of the element of length dx is given by, dR=ρdxA=ρ0e−x/LdxA
So, total resistance, R=ρ0A∫L0e−x/Ldx=ρ0A[−Le−x/L]L0=ρ0LA(1−1e)