The equation of the line passing through A and B is:
y−3x−4=5−32−4=−1⇒y−3=4−x⇒x+y=7
This line cuts the y axis at the point P=(0,7). Note that this point P is different from the point P which is mentioned in the question.
Let the coordinates of the point C' be (0,k).
By power of a point theorem, we have:
PC′2=PB×PA
PB=√22+22=2√2
PA=√42+42=4√2
⇒(7−k)2=16⇒k=3
Since the circle is tangent to the y-axis, the y-coordinate of the center C is same as the y-coordinate of C' which is 3.
The midpoint of AB is (2+42, 5+32)=(3,4)
The equation of the perpendicular bisector of AB is therefore x−y+1=0
The center of the circle lies on the perpendicular bisector of AB and the line parallel to x-axis through C'. So the center is (h,k) where k=3 and h=3−1=2
Thus the equation of the circle is (x−h)2+(y−k)2=h2
⇒x2+y2−4x−6y+9=0
Now, coming to the second part of the question, we need a point P (different from above) so that the angle APB is maximum.
Let the point be (0,y0).
Let m1 be the slope of AP and m2 be the slope of BP.
Then we want to maximize the angle between the lines and hence the expression m1−m21+m1m2 which represents the tangent of the angle between the lines.
m1=3−y04, m2=5−y02
⇒m1−m21+m1m2=−2y0−14y20−8y0+23
This expression is maximized for the value of y0=3
Thus the required point P is (0,3)