d and q Current
So far we have let the total stator current phasor act only in the q direction. There was also no reason to let the stator magnetic field point in any other direction. Later we will also need current in the d direction. That is why we extend the equations by the d-current. I omit the index S for the current. There is only stator current, so we do not need the index to distinguish the current from another current.
The stator current can be split into components Id and Iq.

Direction dependence of the inductance
In the fundamentals of electrical engineering you learned about the inductor that the inductance depends on the core material. An inductance indicates how the magnetic field and the current are coupled. The following applies:

In many coils – such as the one with a closed core in the figure above – only one material is used. The core is homogeneous. The material parameter µr is decisive for the value of the inductance, because depending on the material it varies in the range of about [1 … 100000]. This allows us to build coils with small geometry (A and l) and nevertheless very high inductance L.
A coil with a large inductance L generates a lot of flux linkage per unit of current. This is advantageous for drives, because a lot of magnetic quantity is generated with little use of the electrical quantity.
Our rotor consists of a permanent magnet surrounded by iron. An inductance is influenced by the material through which its magnetic field runs. The magnetic field runs through the rotor and then back on the outside through the stator.
The permanent magnet has a small μr ≈ 1. Iron has a μr value in the range of [300 … 10000]. If many field lines run through iron, the inductance is increased. If many field lines run through the permanent magnet, it reduces the inductance.

Let us first look at the upper left figure. With its 6 coils, the stator generates a total magnetic field in the d direction. Because the rotor is always aligned in the d direction, a large part of the field within the rotor runs through the permanent magnet. The inductance acting in the d direction is therefore rather low. This applies to a coil pair that the rotor is currently passing. Its geometry is the same as that of the other coils, but it has a “poor” effective core with a low µr.
Next, let us look at the upper right figure. Here a stator field running in the q direction is drawn. Again, only a few field lines are drawn as examples. The path through iron in the rotor is much longer than that through the permanent magnet. That is why the inductance in the q direction is rather large. This concerns coils that are currently at 90° to the orientation of the permanent magnet. The field lines of these coils flow mainly through “good” iron.
A total stator current in the q direction therefore generates more magnetic field than if we let the same current act in the d direction. That is convenient, because (so far) we work exclusively with current in the q direction.
Which inductance is currently large or small depends on the current rotor position. There is no longer one inductance L for all coils, but one inductance acting in the d direction and one acting in the q direction. As the rotor turns, the inductance of the coils it passes changes. Current rotors look more like this:

In the figure above, the path for the magnetic field in the q direction is free. In the d direction, permanent magnets block the magnetic field. The north pole of the permanent magnets still points in the direction of the d axis.
Finally, we combine the new findings with the results of the last chapter. A current in the d direction flows through the coils that are currently aligned in the d direction (rotor direction). The q-current flows through the coils that are offset from them by 90° in the direction of rotation. The coils are of course still arranged on the stator offset by 120° from one another. But their inductance value depends on d and q. We therefore combine the coils, like the currents, into d and q inductances.
We again look at voltages and currents in the d/q coordinate system. We insert Ld and Lq instead of L:
