# What happens when the direction of initial current through an inductor is opposite of the direction of applied current?

I am having trouble understanding the behavior of current through an inductor when the direction of applied current is the opposite of what is initially flowing through it. An example is that when an inductor is initially connected to a current source that drives the current clockwise, and then at time t=0, the switch flips such that it is now connected to a current source that drives the current counter-clockwise. I know that the current cannot instantaneously switch directions and I think this is where my confusion stems.

• What if a capacitor initially charged at 1V is connected to a -1V voltage source? Try comparing this.... Dec 12, 2020 at 14:58

An example is that when an inductor is initially connected to a current source that drives the current CW

Here's your first problem; connecting an inductor (a pure inductor) to a current source requires that to instantly drive the current, an infinite voltage must be present and things fall apart when that happens.

However, let's say you can overcome this initial problem by having the current source ramp up from zero amps...

then at time t=0, the switch flips such that it is now connected to a current source that drives the current CCW.

And here's your next problem; current cannot change instantly in an inductor without an infinite voltage being present. It's basically as I said earlier but it's now unresolvable without the presence of infinite voltage i.e. no amount of fiddling with ramping up or ramping down currents can avoid infinite voltage without the "experiment" becoming flawed in what you are trying to achieve.

However, if you said that you applied a voltage across an inductor and after a short time 1 amp was flowing and then you reversed the voltage then that's OK. At the instant you reversed the voltage, 1 amp would still be flowing in the inductor (despite the voltage being reversed). Over a short time that 1 amp would ramp down to zero amps and, then begin climbing in value (at the same ramp rate) but in the opposite direction: -

$$V = L\cdot\dfrac{di}{dt}$$

It's all embedded in the above equation. Try this little diagram: -