A theorem is given below (in which the book said that it is used in justifying how the index formula in question came) :
And this picture contains the index formula that the author said that it comes from (a) & (b) of thm.8.11:
Could anyone explain for me how this congruence $k \operatorname{ind}x \equiv\operatorname{ind}a \pmod{\phi (n)},$ comes from $(a)$ & $(b)$ of thm.8.11?
Thanks!


$\newcommand{\ind}{\operatorname{ind}}$
Recall the theorem:
Now let $r$ be a primitive root of $n$. Then $$\begin{align*}x^k &\equiv a \pmod n\\\iff r^{\ind x^k}&\equiv r^{\ind a}\pmod n\\\iff\ind x^k&\equiv \ind a\pmod{\phi(n)}&&\qquad(\text{by $(1)$})\\\iff k\, \ind x&\equiv\ind a \pmod{\phi(n)}&&\qquad(\text{by $(b)$}).\end{align*}$$