$a>0,\; b>0,\; S=$parameter $>0$. $$a+b+\dfrac{S-2}{2(a+b)} \longrightarrow min$$ With condition that $a\cdot b =1$
Using inequality of arithmetic and geometric means we get:
$$a+b+\dfrac{S-2}{2(a+b)} \geq 2+ \dfrac{S-2}{2(a+b)}$$ With equality when $a=b$. This is true, but the answer to this problem is that if $S\leq 10$ this will indeed be the answer, but if $S>10$, $a=b$ no longer gives the best result.
I am mainly interested in relatively "simple" and short solutions and methods of this problem.