Plotting the line Y−y=Y′(x)(X−x) we get,

Now, from the above diagram,
The area of the triangle formed will be,
A=21(Y′(x)−y+x)(y−xY′(x))
Now, according to the given condition we get,
21(Y′(x)−y+x)(y−xY′(x))=2Y′(x)−y2+1
⇒(−y+xY′(x))(y−xY′(x))=−y2+2Y′(x)
⇒−y2+xyY′(x)+xyY′(x)−x2[Y′(x)]2=−y2+2Y′(x)
⇒2xy−x2Y′(x)=2
⇒dxdy=x22xy−2
⇒dxdy−x2y=x2−2
It is a linear differential equation,
Now, finding IF=e−2lnx=x21
Now, the solution is given by,
y⋅x21=32x−3+c
Given at x=1,y=1
⇒1=32+c⇒c=31
Hence, the equation of the curve will be,
Y=32⋅X1+31X2
⇒12Y(2)=35×12=20