Put , , and . At impact the unit vector from A to B is . The impulse is normal, so tangential velocity is unchanged, while the normal components undergo a one-dimensional elastic collision. Therefore