For a linear charge distribution (a good approximation for charge in a wire) where λ λ ( r ′ ) gives the charge per unit length at position r ′ , and d ℓ ℓ ′ is an infinitesimal element of length, d q ′ = λ λ ( r ′ ) d ℓ ℓ ′ .