I am trying to determine if the following function is Lipschitz or not $$f(x)=\sqrt{1-x^2} \ \ \ \text{for} \ -1\leq x\leq 1$$
My attempt:
Suppose $f$ is Lipschitz on $[-1,1]$. This implies $\exists L\in\mathbb{R}$ such that $\forall x,y\in [-1,1]$ \begin{align} |\sqrt{1-x^2}-\sqrt{1-y^2}|&\leq L|x-y| \\ L&\geq\frac{|\sqrt{1-x^2}-\sqrt{1-y^2}|}{|x-y|}\geq\frac{|-\sqrt{1-y^2}|}{|x-y|}=\frac{\sqrt{1-y^2}}{|x-y|} \\ \end{align} If we set $y=0$ and take $x\rightarrow 0$, then $L\rightarrow\infty$.
This is a contradiction, as $L$ is finite. Hence $f$ is not Lipschitz.
I'm wondering if the my logic is correct, particularly my second line of working. Any advice would be greatly appreciated.
As already pointed out by Saucy O'Path, the inequality $$\left\lvert \sqrt{1-x^2}-\sqrt{1-y^2}\right\rvert\ge\left\lvert -\sqrt{1-y^2}\right\rvert$$ does not hold in $[-1,1]$ (take for example $-1<x<1$ and $y=0$).
On the other hand, you may modify your approch by taking $x=1-\frac{1}{n}$ and $y=1$ with $n\in\mathbb{N}^+$. Then $x,y\in[-1,1]$ and $$|\sqrt{1-x^2}-\sqrt{1-y^2}|\leq L|x-y|$$ implies that $$|\sqrt{1-1+\frac{2}{n}-\frac{1}{n^2}}-\sqrt{1-1}|\leq L\left|1-\frac{1}{n}-1\right|$$ that is $$\sqrt{2n-1}\leq L$$ which is a contradiction because the sequence $\{\sqrt{2n-1}\}_{n\in\mathbb{N}^+}$ is unbounded.