↑ stuart clark:
Solution of Problem 1
Skrytý text:Let us focus on the expression with the absolute value and define

Then it is obvious that

.
Let us set
![kopírovat do textarea $
x&:=\cos\alpha\\
y&:=\sin\alpha,\quad\alpha\in[0,2\pi].
$](/mathtex/c5/c59dcec9143b50b569138e72754f829e.gif)
Then the condition

is satisfied clearly. Since

and

we can restrict just to the interval
![kopírovat do textarea $[0,\pi]$](/mathtex/13/1337ed550e0d119c374eaa7a1ed6fc47.gif)
, thus
![kopírovat do textarea $\alpha\in[0,\pi]$](/mathtex/fc/fcd0bde4b2ffccf2610609dcf4975033.gif)
. Let us define the function

as follows

Now we split the solution into 2 cases:
1. Let
![kopírovat do textarea $\alpha\in[0,\pi/4]$](/mathtex/29/29b3ae1627587b8f49e8d18474eee963.gif)
. Then

and

Using derivatives let us find the global maximum of

in
![kopírovat do textarea $[0,\pi/4]$](/mathtex/ff/ff9663057f818f9a83c4248c18625a79.gif)
.

Stationary points can be found from the equations

However, the both equations have no solution, because the expressions on the left side are positive, if
![kopírovat do textarea $\alpha\in[0,\pi/4]$](/mathtex/29/29b3ae1627587b8f49e8d18474eee963.gif)
. The global maximum can occur also at the endpoints of the interval. Thus

and

.
2. Let
![kopírovat do textarea $\alpha\in[\pi/4,\pi]$](/mathtex/7b/7b340e8bc2634dbd80ae64016ca4f775.gif)
. Then

and

In addition,

and the stationary points are given from the pair of the equation mentioned at the end of case 1. Thus

Since

we get that

. Hence

is a local minimum of a function

- it does not solve the problem.
Now let us consider the second equation. It is not necessary to determine

, it is enough to find

and

to solve the problem.

Using simple techniques, we find out that

Therefore there exist four solutions:

Since
![kopírovat do textarea $\alpha\in[\pi/4,\pi]$](/mathtex/7b/7b340e8bc2634dbd80ae64016ca4f775.gif)
and

then just

and

satisty the equation

. Moreover, the inequalities

and

imply that

and

are local maxima of the function

.
The global maximum of

can occur just at the points

,

,

,

. We get that

Thus
Solution of Problem 2:
Skrytý text:We use the following identities:

Then we modify the equation:

Now we split the solution into three cases:
1.

2.

3.
