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.

First let's start with your denominator, $$\frac{3}{x^2}+\frac{2x+1}{x}$$
We can turn this into one term by multiplying the,
 $$\frac{2x+1}{x} by \frac{x}{x}$$
and then combine terms to get, 
$$\frac{2x^2+x+3}{x^2}$$
Now if we put this back into the first expression we now have,
$$\frac{2x+1}{\frac{2x^2+x+3}{x^2}}$$
From here we simply need to multiply the numerator and denominator by x^2 and we get,
$$\frac{x^2(2x+1)}{2x^2+x+3}$$
Hope this helps!
