A rod of length L and cross-section area A lies along the x-axis between x=0 and x=L.The material obeys Ohms law and its resistivity varies along the rod according to ρ(x)=ρ0e−x/L. The end of the rod at x=0 is at a potential V0 and it is zero at x=L.Find the electric potential in the rod as a function of x.