the tangent is in the form:
y=mx+b
solving simultaneously with y=x^2-2x+5
x^2-(m+2)x+(5-b)
discriminant = 0 since the line is tangent and there is only 1 point of contact
i.e. (m+2)^2-4(5-b)=0 => m^2+4m-16+4b=0 [1]
(1,3) satisfies y=mx+b since it passes through it
i.e. 3=m+b => b=3-m [2]
sub [2] in [1]
m^2-4=0
m= 2 or -2
from [2] b = 1 or 5
hence,
y=2x+1 and y=-2x+5 are the tangents