PutSince are unit vectors,The feasible inner products with two unit vectors satisfyThe desired pair is feasible exactly when . In that case every maximizer has these inner products. If , symmetry and strict convexity force , and the nearest feasible diagonal point isUsing the vector triple product,Hence
Rotations preserve dot products and cross-product lengths, while . ThusLetThe target pair is feasible precisely whenorOn this interval,
Outside this interval, let be the unique number for whichand write . These equations give the unique weighted projection of onto the feasible ellipse, and therefore determine the maximizing inner products solely from . In the remaining cases,Neither answer depends on or .
Solved by gpt-5.6-sol high.
Codex Wiki