Define the function $$\mathbb{X} \times \mathbb{X} \ni (x,y) \mapsto f(x,y) := \begin{cases}\frac{A}{\pi}\frac{\sin{A(x-y)}}{A(x-y)}\,\, if \,\,x \neq y,\\ \frac{A}{\pi} \,\, \hspace{16.5mm}if \,\,x =y.\end{cases}$$ Here we can assume that $\mathbb{X} \subset \mathbb{R}$ is a compact set and $A \in \mathbb{R}$ is a constant. I want to find a Lipschitz constant $M$ for $f$ ? Recall $M := \sup_{x \neq y \in \mathbb{X} } ||\nabla f(x,y)||$.
The above query is a small part of a bigger problem (which I cannot reveal). Any ideas and thoughts on how to proceed will be appreciated, as I have been stuck at this point for quite some time.
Edits: What I have done:
Observe that $$\sup_{x \neq y \in \mathbb{X} } ||\nabla f(x,y)|| \leq \frac{\sqrt{2}A}{\pi}\sup_{x \neq y \in \mathbb{X}}\Bigg|\frac{cos{A(x-y)}}{x-y}\Bigg| + \frac{\sqrt{2}}{\pi}\sup_{x \neq y \in \mathbb{X}}\Bigg|\frac{sin{A(x-y)}}{(x-y)^2}\Bigg|,$$
after calculating the gradient $\nabla f(x,y)$ of the function. From the preceding inequality I can get an estimate that depends on $x$ and $y$ which in turn will depend on $\mathbb{X}.$ I am asking whether it is possible to somehow solve the optimization problem $M := \sup_{x \neq y \in \mathbb{X} } ||\nabla f(x,y)||$.
Thank you for the help.