There are infinitely many lines that are tangent to an ellipse, so which 2 do you want?

Also it would be much easier to understand your problem and equation if you learn latex or at least use the proper notions of symbols like ^ means to the power of...

For instance this:

or

this

2x^2 -4x + y^2 + 1 = 0

would have been easier to understand