Let $\gamma$ be a continuously differentiable closed curve in the complex plane with parameter interval $[a,b]$, and assume that $\gamma (t) \ne 0$ for all $ t \in [a,b]$. Define the index of $\gamma$ to be $$\text{Ind} (\gamma) = \frac{1}{2\pi i}\int_{a}^{b} \frac{\gamma'(t)}{\gamma (t)} dt$$
Prove that this is always an integer.
In the hint it's mentioned there is a function $\phi$ on $[a,b]$ with $\phi ' =\frac{\gamma'}{\gamma}$ and $\phi(a)=0$.
I can understand that the primitive of $\frac{\gamma'}{\gamma}$ exists since it is continuous and integrable but cannot understand why $\phi(a)=0$ which plays a vital role in the proof.