From the headline I assume that you want to solve for x.

1. Multiply both sides of the equation by x to get rid of the denominator:

xy = 2x² + 1 + x ==> 2x² + x - xy + 1 = 0 ==> 2x² + (1-y)x +1 = 0

2. This is a quadratic equation in x which you can solve by the formula:

x = -(1-y)/(4) ± √((1-y)² - 8)/16)