I have a problem for an online assignment which I was able to complete. The problem was:
Gandalf the Grey started in the Forest of Mirkwood at a point with coordinates (−1,3) and arrived in the Iron Hills at the point with coordinates (1,6). If he began walking in the direction of the vector v=5i+1j and changes direction only once, when he turns at a right angle, what are the coordinates of the point where he makes the turn.
I was able to solve the problem by moving the the initial coordinates to the origin and hence moving the other at (2,3). Then, I took the inverse of the speed (which is the normal as well) and got w=1i-5j.
From there, I went freestyle and found the y=x+b version of the vectors, solved for x and y and moved them back to the original place finishing with the turn being at (1.5,3.5).
I got the right answer so I guess it works but would you guys have made it differently? I'm quite new to that kind of stuff so I couldn't think of a way of doing it with vectors and points only.
Thanks!
I think translation of the axes is totally unnecessary. In particular, his coordinates before turning can be described as $x = -1 + 5a$ and $y=3+a$ (which implies $5y=x+16$ if you prefer to not work with parametric equations).
Now, we need to compute the coordinates of the point where he turns at the right angle. Obviously, the vector from that point to $(1,6)$ is perpendicular to $5 \vec i + 1 \vec j$. Consequently, $((2-5a)\, \vec i + (3-a)\, \vec j)\cdot(5\vec i + \vec j)=0 \implies a=1/2 \implies (x,y)=(3/2,7/2)$.