The correct option is
B x2+y2−8x−2y+7=0Consider equation of line i.e.
3x+y−3=0Put y=0 in above equation, we get,
3x−3=0
∴x=1
Now, put $x=0$ in above equation, we get,
y−3=0
∴y=3
Thus, line passes through (1,0) and (0,3)
Refer to the figure. We can draw two circles which can pass through two points A(1,2) and B(3,4) and tangential to the line 3x+y−3=0
Let center of one of the circles is C(h,k). Thus, AC and BC will be radii of the circle.
By distance formula, we can write as
d(AC)=√(h−1)2+(k−2)2 Equation (1)
Similarly, d(BC)=√(h−3)2+(k−4)2 Equation (2)
But, d(AC)=d(BC) (Radii of the same circle)
∴√(h−1)2+(k−2)2=√(h−3)2+(k−4)2
Squaring both sides, we get,
(h−1)2+(k−2)2=(h−3)2+(k−4)2
∴h2−2h+1+k2−4k+4=h2−6h+9+k2−8k+16
On simplifying, we get,
4h+4k−20=0
Dividing both sides by 4, we get,
h+k−5=0
∴k=5−h
Putting this value in equation (1), we get,
r=d(AC)=√(h−1)2+(5−h−2)2
∴r=√(h−1)2+(3−h)2
∴r=√h2−2h+1+9−6h+h2
∴r=√2h2−8h+10
Now, let us draw a perpendicular from center of circle C to the line 3x+y−3=0 which is tangential to the circle. Let M be foot of the perpendicular.
∴d(CM)=r (Refer the figure)
∴d(CM)=√2h2−8h+10 Equation (3)
Now, Distance between a point C(h,k) and a line 3x+y−3=0 is calculated by using vector form as,
d(CM)=|Equationofline|√(Coefficientofx)2+(Coefficientofy)2
d(CM)=|3x+y−3|√(3)2+(1)2
d(CM)=|3x+y−3|√10
Replace x by h and y by k, we get,
d(CM)=|3h+k−3|√10
From equation (3), we get,
|3h+k−3|√10=√2h2−8h+10
But, k=5−h
∴3h+5−h−3√10=√2h2−8h+10
∴2h+2√10=√2h2−8h+10
Squaring both sides, we get,
(2h+2)210=2h2−8h+10
∴4h2+8h+4=10(2h2−8h+10)
∴4h2+8h+4=20h2−80h+100
∴16h2−88h+96=0
Dividing both sides by 8, we get,
2h2−11h+12=0
∴a=2, b=−11 and c=12
∴h=−b±√b2−4ac2a
∴h=−(−11)±√(−11)2−4×2×122×2
∴h=11±√121−964
∴h=11±√254
∴h=11±54
We will consider positive root only.
∴h=164=4
∴k=5−4=1
Thus, coordinates of center of circle are, C(4,1)
Thus, From equation (1),
r=√(4−1)2+(1−2)2
∴r=√9+1=√10
Thus, equation of circle will be,
(x−h)2+(y−k)2=r2
(x−4)2+(y−1)2=(√10)2
∴x2−8x+16+y2−2y+1=10
∴x2+y2−8x−2y+7=0
Thus, Answer is option (A)