Đăt\(\sqrt{a}\)=x, \(\sqrt{b}\)=y (x,y>0)
=>xy+1=4y => 4y≥ \(2\sqrt{xy}\)=>\(2\sqrt{y}\)≥\(\sqrt{x}\)=> 4y≥x=> 4≥ \(\dfrac{x}{y}\)=> \(\dfrac{1}{4}\)≤\(\dfrac{y}{x}\)=>\(\dfrac{-1}{4}\)≥\(\dfrac{-y}{x}\)
Xét:A=(\(\dfrac{xy+y}{x+y}\)+\(\dfrac{xy+x}{y-x}\)+1):(\(\dfrac{xy+y}{x+y}\)+\(\dfrac{xy+x}{x-y}\)-1)
= \(\dfrac{-2y^2\left(x+1\right)}{\left(x-y\right)\left(x+y\right)}\).\(\dfrac{\left(x-y\right)\left(x+y\right)}{2xy\left(x+1\right)}\)
=> A= \(\dfrac{-y}{x}\)≤\(\dfrac{-1}{4}\)
Dấu "=" xảy ra <=> xy=1 và x=4y <=> x=2, y=\(\dfrac{1}{2}\) <=> a =4, b=\(\dfrac{1}{4}\)
Vậy Max A =\(\dfrac{-1}{4}\) <=> a=4, b=\(\dfrac{1}{4}\)