Simplify the following compound fraction: $$\frac{2x+1}{\frac{3}{x^2}+\frac{2x+1}{x}}$$
My calculator says the final answer is $$\frac{x^2(2x+1)}{2x^2+x+3}$$
Please show the work. Thanks.

You multiply at the numerator and at the denominator by $x^2$:
$$\frac{2x+1}{\frac{3}{x^2}+\frac{2x+1}{x}}=\frac{x^2(2x+1)}{x^2 \left ( \frac{3}{x^2}+\frac{2x+1}{x}\right)}=\frac{x^2(2x+1)}{3+x(2x+1)}=\frac{x^2(2x+1)}{2x^2+x+3}$$
