The phase and phase constant in a displacement time equation show from where the particle has started.
In my school textbook, first the displacement equation was given as :- $$x= A\sin(\omega t+\phi)$$
where $\phi$ is the phase constant.
But then it said if the particle is at extreme position then we add $\pi/2$ because obviously displacement is maximum at $\pi/2$ So now the equation at extreme should be :- $$x=A\sin\left(\omega t+\frac{\pi}{2}\right)$$ $$x=A\cos(\omega t)$$
But in my textbook the equation is :- $$x=A\cos(\omega t + \phi')$$
It says that $\phi '$ is another arbitrary constant. But technically $\phi$ is $\sin ^{-1} (x/A)$, here $x$ will be $A$ and we get $\pi/2$ so no constant remains. But what is this $\phi '$ constant and on which thing it depends?