If the straight line y−2x+1=0 is the tangent to the curve xy+ax+by=0 at x=1, then the values of a and b are respectively :
Equation of tangent is y−2x+1=0
It is tangent at x=1, so for x=1
y−2(1)+1=0⇒y=1
So, its is tangent to the curve at (1,1)
Slope of tangent =−(−21)=2
xy+ax+by=0y+xdydx+a+bdydx=0
Now dydx=2 at (1,1)
1+1(2)+a+b(2)=0⇒a+2b=−3 .....(i)
(1,1) also lies on the curve xy+ax+by=0
⇒1(1)+a(1)+b(1)=0⇒a+b=−1 .......(ii)
Solving (i) and (ii), we get
⇒a=1,b=−2
So, option E is correct.