Find the Minimum Value of $x^2+y^2$

149 Views Asked by At

Given:

$x+y=2\sin{a}-\cos{b}\\ xy=2\cos{a}+\sin{b}$

Find the minimum value of $x^2+y^2$.

Attempt:

$\begin{aligned} x^2+y^2&=(x+y)^2-2xy\\ &=(2\sin{a}-\cos{b})^2-2(2\cos{a}+\sin{b})\\ &=4\sin^2{a}-4\sin{a}\cos{b}+\cos^2{b}-4\cos{a}-2\sin{b} \end{aligned}$

$\begin{aligned} f_{a}(a,b)&=0\\ 8\sin{a}\cos{a}-4\cos{a}\cos{b}+4\sin{a}&=0\\ \cos{a}\cos{b}&=2\sin{a}\sin{b}+\sin{a}\\ \end{aligned}$

$\begin{aligned} f_{b}(a,b)&=0\\ 4\sin{a}\sin{b}-2\sin{b}\cos{b}-2\cos{b}&=0\\ 2\sin{a}\sin{b}&=\sin{b}\cos{b}+\cos{b}\\ \end{aligned}$

Tried to plot it on a graph, the answer should be -6. enter image description here

4

There are 4 best solutions below

0
On BEST ANSWER

I give here a geometrical solution using the auxiliary plane with coordinates $(X;Y)$ where

$$X=x+y \ \ \text{and} \ \ Y=xy$$

(see figure below).

Important : In this plane, due to arithmetic-geometric means inequality, only region defined by $Y\leq \tfrac14X^2$ corresponds to real solutions. We will come back to this restriction later on.

Using variables $X,Y$, the issue can be re-formulated in this way :

Minimize

$$m:=x^2+y^2=X^2-2Y \tag{1}$$

knowing that

$$\begin{pmatrix}X\\Y\end{pmatrix}=2\begin{pmatrix}\sin(a)\\ \cos(a)\end{pmatrix}+\begin{pmatrix}-\cos(b)\\ \ \ \ \sin(b)\end{pmatrix}\tag{2}$$

The RHS of (2) can be given a geometric interpretation as the combination of two circular movements : a planet with orbital radius $2$ and its satellite with orbital radius $1$, yielding an "allowed" annular region $(A)$ with internal/external radii $1$ and $3$ resp. (or in an equivalent way as the zone swept by the tool of a two-arms robot with the same characteristics).

Condition (1) can be rewritten under the form :

$$\text{find the minimal} \ m \ \text{such that} \ \ Y=\tfrac12X^2-\tfrac12 m \ \text{intersects region (A)}\tag{3}$$

The equation in (3) can be interpreted as the generic equation of a family of parabolas $P_m$, "sweeping" the plane with a vertical move. Our problem boils down to find the "ultimate" parabola intersecting the annular region.

It is evident on the figure that this parabola $P_m$ corresponds to $m=-6$ (point of tangency $Q$) (I don't do the corresponding calculations). The values of $a$ and $b$ can be deduced without difficulty from this value of $m$.


BUT, in the considered case, we haven't taken into account whether solutions in $x,y$ are real or complex. In the case $m=-6$, we have complex solutions $x,y$ as remarked by @Christian Blatter.

A reasonable objective would be to have real solutions for $x,y$. In this case the minimal value of $m$ is quite different.

We will find it rather easily by restricting investigations to the intersection of the annular region $(A)$ with the region below parabola with equation $Y=X^2/4$, that we call the feasible region (inside green border crescent).

In this case, the values of expression (1) are visibly situated between two extremal values that can be computed as being $m_1=-4+2\sqrt{5}$ and $m_2=10$ corresponding to parabolas $P_m$ passing through points $P$ and $R$ resp.

Thus, the minimal value of $m=x^2+y^2$ compatible with real solutions to the given system is $m_1=-4+2\sqrt{5} \approx 0.4721$.

enter image description here

Remarks :

1) Extremal value $m_2=10$ is visible on your graphical representation (reminding egg-boxes...).

2) The (sum;product) representation plane we have used is of considerable importance when using $trace = \lambda_1+\lambda_2$ and determinant $\lambda_1\lambda_2$ of a $2 \times 2$ matrix, especially for a taxinomy of linear systems. It is called the "trace-determinant space". See among many others p. 74 of this interesting PhD thesis.

0
On

Let $2=r\cos C,1=r\sin C, r\ge0\implies r^2=5$

$$x^2+y^2$$ $$=(2\sin A-\cos B)^2-2(2\cos A+\sin B)$$ $$=r^2\sin^2(A-C)-2r\cos(A-C)$$

$$=r^2+1-\left(r\cos(A-C)+1\right)^2$$

Now for $r\ge0,$

$$(r+1)^2\ge\left(r\cos(A-C)+1\right)^2\ge0$$

0
On

It looks ugly, but fortunately, the $a$ terms can be isolated from both equations:

$$\tan a = \frac{\cos b}{2\sin b +1}$$ $$\sin a = \frac{\cos b(1+\sin b)}{2\sin b}$$

One of the options is to use $1+\tan^{-2} a = \sin^{-2} a$ to get an equation for $b$ where you can use $u=\sin b$ to make it a polynomial equation. However, you must be careful about cases where some of the terms are zero, for example if $\tan a=0$, you can't use $\tan^{-1}a $. It turns out that $a=0$ and $a=\pi$ allow you to find a few solutions directly. It these cases, both expressions above must be zero, so $\cos b=0$ is required (which gives you the solutions

$$a=0, b=\pm \tfrac{\pi}{2}$$ $$a=\pi, b=\pm \tfrac{\pi}{2}$$

Computing the values (and maybe checking second derivatives) shows you what these are. $a=0, b=+\tfrac{\pi}{2}$ turns out to be the global minimum, but to be sure, you should check the full polynomial equation that you get with full reconstruction for other, non-special values of $a$ and $b$.

Hint: it's a periodic function of $a$ and $b$, just plot it from $-\pi$ to $\pi$ in both directions.

1
On

Write $b:={\pi\over2}+c$. Then the equations are $$x+y=2\sin a+\sin c,\qquad xy=2\cos a+\cos c\ ,$$ and instead of $f$ you now have the function $$g(a,c)=(2\sin a+\sin c)^2-4\cos a-2\cos c$$ representing $x^2+y^2$. One sees that for $a=c=0$ the function $g$ assumes the value $-6$, but it is impossible for $g$ to assume a smaller value. It follows that $f$ assumes the minimum $-6$ at $(a,b)=\bigl(0,{\pi\over2}\bigr)$.

Note that both $x$ and $y$ are complex at the extremal point. If it is an additional condition that $x$ and $y$ should be real we have a more difficult problem.