Calculate the slope of line AB:
mAB=xB−xAyB−yA=5−11−3=4−2=−21
When two lines with slopes m1 and m2 intersect at angle θ, we use the formula:
tanθ=1+m1m2m2−m1
In our case, m1=−21 and m2=m. Since the angle is 45°, tan(45°)=1.
So we have:
1=1+(−21)mm−(−21)=1−2mm+21
Removing the absolute value gives us two cases:
Case 1: 1−2mm+21=1
m+21=1−2m
m+2m=1−21
23m=21
m=31
Case 2: 1−2mm+21=−1
m+21=−1+2m
m−2m=−1−21
2m=−23
m=−3
Therefore, the possible values of m are 31 and −3.