coil has resistance R and self-inductance L. The current in the wire varies according to the law I=at