\(\left(\frac{a}{c}+1\right)\left(\frac{b}{c}+1\right)=4\)
Đặt \(\left(\frac{a}{c};\frac{b}{c}\right)=\left(x;y\right)\Rightarrow xy+x+y=3\)
\(\Rightarrow3\le x+y+\frac{1}{4}\left(x+y\right)^2\Rightarrow x+y\ge2\)
\(P=\frac{x}{y+3}+\frac{y}{x+3}+\frac{xy}{x+y}=\frac{x^2+y^2+3\left(x+y\right)}{xy+3\left(x+y\right)+9}+\frac{xy}{x+y}\)
\(P=\frac{\left(x+y\right)^2+3\left(x+y\right)-2xy}{2\left(x+y\right)+12}+\frac{3-\left(x+y\right)}{x+y}=\frac{\left(x+y\right)^2+5\left(x+y\right)-6}{2\left(x+y\right)+12}+\frac{3}{x+y}-1\)
Đặt \(x+y=t\Rightarrow2\le t< 3\)
\(\Rightarrow P=\frac{t^2+5t-6}{2t+12}+\frac{3}{t}-1=\frac{t}{2}+\frac{3}{t}-\frac{1}{2}\ge2\sqrt{\frac{3t}{2t}}-\frac{1}{2}=\frac{\sqrt{6}-1}{2}\)
Dấu "=" xảy ra khi \(t=\sqrt{6}\)
\(P=\frac{t^2+6}{2t}-\frac{5}{2}+2=\frac{1}{2}\left(\frac{t^2-5t+6}{2t}\right)+2=\frac{\left(t-2\right)\left(t-3\right)}{2t}+2\)
Mà \(2\le t< 3\Rightarrow\left(t-2\right)\left(t-3\right)\le0\)
\(\Rightarrow P\le2\Rightarrow P_{max}=2\) khi \(t=2\)