<s>[INST] maximum value of $ac+bd$ 
If $a,b,c,d\in \mathbb{R}$ and $a^2+b^2\leq 2$ and $c^2+d^2\leq 4.$ Then maximum value of $ac+bd$ is 

what i try
$(ac+bd)^2+(ad-bc)^2=(a^2+b^2)(c^2+d^2)$
$\underbrace{(ac+bd)^2}_{\max}=\underbrace{(a^2+b^2)(c^2+d^2)}_{\max}-\underbrace{(ad-bc)^2}_{\min}$
$(ac+bd)^2\leq 8\Rightarrow (ac+bd)\leq 2\sqrt{2}$
but answer is $3$
How do i get right answer help me please
 [/INST] One way of obtaining the maximum value is by doing maximisation with constraints. First observe that $\nabla_{a,b,c,d} (ac+bd)\neq \overrightarrow{0} \text{ for all } a,b,c,d\neq 0$. As it's a continuous function and the domain we're interested in is compact (it's the intersection of two perpendicular cylinders), the maximal value has to be reached somewhere in the domain. But for it to be reached in the interior of the domain, the gradient would have to become 0 at that position, which we observed not to happen. So we have to check the boundary by applying Lagrange multipliers. On the boundary both constraints $a^2+b^2=2$ and $c^2+d^2=4$ are fulfilled. So we add them with Lagrange multipliers and calculate the gradient: $\nabla_{a,b,c,d,\lambda_1,\lambda_2}(ab+cd+\lambda_1(a^2+b^2-2)+\lambda_2(c^2+d^2-4))=\begin{pmatrix}c-\lambda_1\cdot 2a\\d-\lambda_1\cdot2b\\ a - \lambda_2\cdot 2c\\ b - \lambda_2\cdot 2d\\a^2+b^2-2\\c^2+d^2-4\end{pmatrix}$. So now we want this to be zero. The first two lines give $\lambda_1=\frac{c}{2a}=\frac{d}{2b}$, the second two lines give $\lambda_2=\frac{a}{2c}=\frac{b}{2d}$, the third two lines represent our constraints. We're not interested in the exact values of the multipliers, so we just take the second equalities, which are equivalent for both. Solving this equality for d yields $d=\frac{bc}{a}(*)$. This we can insert into the constraint and obtain $c^2+d^2=c^2(1+\frac{b^2}{a^2})=4$. This means $c^2(a^2+b^2)=c^2 \cdot 2=4a^2$ and $c^2=2a^2$. With our equality from above this also means $d^2=2b^2$. We cannot obtain more, but this is already enough, as $(ac+bd)^2=(ac)^2+2acbd+(bd)^2=$
$=(ac)^2+(ad)^2+(bc)^2+(bd)^2=a^2(c^2+d^2)+b^2(c^2+d^2)=4(a^2+b^2)=8$ using the condition $ad=bc$, equivalent to $(*)$ from above.
So the maximum value is the positive choice leading to $(ac+bd)=\sqrt{8}=2\sqrt{2}$.
</s>