Here's another way of approaching it.
You've got \(\frac{2x+1}{5x+3}\). OK. We want to divide them. They're both linear polynomials, so if we divide them, we should get a constant, right? If you divide a degree 3 polynomial by a degree 1 polynomial, you get a degree 2 polynomial + remainder.
So, if you were to divide them, you would look at the 2, look at the 5, and your result would be \(\frac{2}{5}\). Only problem is, there's a remainder. This remainder is \(\left(2x + 1\right) - \frac{2}{5}\left(5x+3\right) = 1 - \frac{6}{5} = -\frac{1}{5}\). Think about what a remainder is. 7/3 = 2 remainder 1, so we have 2*3 + 1 = 7. Let's use this pattern in reverse for the fraction. \(2x+1 = \frac{2}{5}(5x+3) - \frac{1}{5}\), so dividing gives \(\frac{2x+1}{5x+3} = \frac{2}{5} - \frac{1}{5}\times\frac{1}{5x+3} = \frac{2}{5} - \frac{1}{5(5x+3)}\).
That's all it is. Long division.