
In the answer, at last why we have taken (2-t)=±1 ? I think magnitude can only be positive so (2-t)=1 only .
(Feel free to edit if any)

In the answer, at last why we have taken (2-t)=±1 ? I think magnitude can only be positive so (2-t)=1 only .
(Feel free to edit if any)
You are correct that the magnitude of a vector must ALWAYS be positive. However, in the problem they are solving for dot product divided by magnitude and dot product can be negative. Also note the absolute value in the numerator, that's where the plus or minus comes from.