We would like to find the derivative of $\operatorname{arcsec}(x) = y$. Rearranging this, we get $x = \sec(y)$. Taking the derivative of both sides, we get $1 = \sec(y)\tan(y)y^\prime$. Thus, $$y^\prime = \frac{1}{\sec(y)\tan(y)}.$$ Now, draw a right triangle with an acute angle $y$, hypotenuse $x$, and a side adjacent to angle $y$ with length $1$. By the Pythagorean theorem, the side opposite angle $y$ is equal to $\sqrt{x^2-1}$. Thus, we have $x = \sec(y)$, which we already knew and got from the triangle, and $$\tan(y) = \frac{1}{\sqrt{x^2-1}}$$ from the triangle we drew. We substitute these values in to our derivative expression to get $$y' = \frac{1}{x\sqrt{x^2-1}}.$$
However, $y^\prime$ should equal $$\frac1{|x|\sqrt{x^2-1}}$$ (note the absolute value). Since the difference occurred in the $|x|$ part, that means I must've done something wrong when I said $\sec(y) = x$, but I do not know why this assumption is wrong. Please correct my proof.