I'm confused about this because voltage or potential difference is defined as work done by an external source in moving a unit charge from one point to another in an electric field. However, in circuit analysis things seem to be different because we measure voltage from V=IR. I want to know the different between these two methods. Or Is it the same thing? Sorry for my English.