Solution:
Key idea: If A and B have position vectors a and b, then AB=b−a (end minus start), and BA=−AB.
Step 1 — Find AB.
We subtract OA from OB component by component.
AB=OB−OA
AB=(5−2)i^+(2+1)j^+(3−3)k^
AB=3i^+3j^
Step 2 — Find BA.
The vector BA has the same length as AB but the opposite direction, so we change every sign.
BA=−AB
BA=−3i^−3j^
Therefore, AB=3i^+3j^ and BA=−3i^−3j^.