Let us consider the function $$f(x,y)=\frac{|a_1+a_2x+a_3(y-\alpha)|}{\sqrt y}$$ where $a_1,a_2,a_3\in\mathbb R$ and $\alpha>0$. Find the maximum attained by $f(x,y)$ in the triangle $\mathcal T$ formed by the lines $x=0$, $x=y-\alpha$, $y=\alpha+1$.
My attempt. I tried to simplify the absolute value, thus: $$f(x,y)=\begin{cases}\frac{a_1+a_2x+a_3(y-\alpha)}{\sqrt y} \hspace{9.8mm}\text{if}\hspace{3mm} y\geq \alpha-\frac{a_1}{a_3}-\frac{a_2}{a_3}x \\ -\frac{a_1+a_2x+a_3(y-\alpha)}{\sqrt y} \hspace{6.5mm}\text{if}\hspace{3mm} y<\alpha-\frac{a_1}{a_3}-\frac{a_2}{a_3}x\end{cases}$$ but $\frac{\partial f}{\partial x}\neq0$. So we have to look for the maximum on the sides of the triangle: $$\begin{cases}f(y-\alpha,y) \hspace{7mm}\text{if}\hspace{3mm} y\in[\alpha,\alpha+1] \\ f(0,y) \hspace{15mm}\text{if}\hspace{3mm} y\in[\alpha,\alpha+1]\\ f(x,\alpha+1) \hspace{7mm}\text{if}\hspace{3mm} x\in[0,1] \end{cases}$$ Is it correct? Now I should do the derivatives trying to simplify the absolute values for the first two functions of the previous equation.

Let $$g(x, y) := [f(x, y)]^2 = \frac{[a_1+a_2x+a_3(y-\alpha)]^2}{y}.$$
We need to find the maximum of $g(x, y)$ subject to $0 \le x \le y - \alpha$ and $\alpha \le y \le \alpha + 1$.
Fact 1: If $F(u)$ is convex on $[a, b]$, then $\max\limits_{a\le u \le b} F(u) = \max\{F(a), F(b)\}$.
Fact 2: If $F_1(u)$ and $F_2(u)$ are both continuous on $[a, b]$, then $$\max_{a\le u \le b} \max\{F_1(u), F_2(u)\} = \max\left\{\max_{a\le u \le b} F_1(u), ~ \max_{a\le u \le b} F_2(u)\right\}.$$
Now, we have \begin{align*} &\max_{0 \le x \le y - \alpha, ~ \alpha \le y \le \alpha + 1} g(x, y)\\[5pt] =\,& \max_{\alpha \le y \le \alpha + 1} ~ \max_{x : ~ 0 \le x \le y - \alpha} g(x, y)\\[5pt] =\,& \max_{\alpha \le y \le \alpha + 1} \max\{ g(0, y), ~ g(y - \alpha, y)\} \tag{1}\\[5pt] =\,& \max\left\{\max_{\alpha \le y \le \alpha + 1} g(0, y),~ \max_{\alpha \le y \le \alpha + 1} g(y - \alpha, y)\right\} \tag{2}\\[5pt] =\,& \max\Big\{\max\{g(0, \alpha), ~ g(0, \alpha + 1)\}, ~ \max\{g(0, \alpha), ~ g(1, \alpha + 1)\}\Big\} \tag{3}\\[5pt] =\,& \max\{g(0, \alpha), ~ g(0, \alpha + 1),~ g(1, \alpha + 1)\}. \end{align*} Explanations:
(1): $g(x, y)$ is convex in $x$, Fact 1.
(2): Fact 2.
(3): $g(0, y)$ and $g(y - \alpha, y)$ are both convex on $y > 0$, Fact 1.
Thus, the maximum of $f(x, y)$ subject to $0 \le x \le y - \alpha$ and $\alpha \le y \le \alpha + 1$ is given by $$\max\{f(0, \alpha), ~ f(0, \alpha + 1),~ f(1, \alpha + 1)\} = \max\left\{\frac{|a_1|}{\sqrt \alpha}, ~ \frac{|a_1 + a_3|}{\sqrt{\alpha + 1}}, ~ \frac{|a_1 + a_2 + a_3|}{\sqrt{\alpha + 1}}\right\}.$$