Let $A$ a Noetherian local ring and $M$ a finite $A$-module. How can I prove that if $x$ is $M$-regular then $$\dim M=\dim M/xM+1?$$
I had a proof with the hypothesis that $\operatorname{Ann}(M/xM)=(\operatorname{Ann}(M),x)$ but I can't prove it's true in this case (and it probably isn't).
Edit: the hard part is proving $$\dim M\leq \dim M/xM+1$$