 For less ideal cases, such as more complicated geometry, or when the current and electric field vary in different parts of the material, it is necessary to use a more general expression in which the resistivity at a particular point is defined as the ratio of the electric field to the density of the current it creates at that point