I would like to solve the following problem.
Let $a,b \in \mathbb{R}^+$ such that $a+2b=1$. Find the minimum value of $\frac{1}{a}+\frac{1}{b}$.
Using AM-GM, I get $$\frac{1}{2}\left(\frac{1}{a}+\frac{1}{b}\right) \geq \sqrt{\frac{1}{ab}}$$
I tried using the constraint to rewrite as $$\frac{1}{2}\left(\frac{1}{1-2b}+\frac{1}{b}\right) \geq \sqrt{\frac{1}{(1-2b)b}}$$
However, I don't see how this would help me as the right side of the inequality does not reduce to a constant.
I have seen AM-GM examples utilizing creative tricks to create a constant and I wonder if there is one for this problem. Thanks!
Using Cauchy-Schwarz inequality, $$(a+2b)\left(\frac{1}{a}+\frac{1}{b}\right) \ge (1+\sqrt2)^2 \implies \frac{1}{a}+\frac{1}{b} \ge (1+\sqrt2)^2.$$ The equality holds when $$a = \sqrt{2}b \implies a=\frac{1}{1+\sqrt{2}}, b=\frac{1}{2+\sqrt{2}}$$