Given some vector $v\in \mathbb R^n\setminus\{0\}$, a scalar product $\langle \cdot,\cdot \rangle$ and a norm $||\cdot||$ I want to find a unit vector $x$ with $||x||=1$ such that $|\langle v,x \rangle|$ is maximal.
If the norm is induced by the scalar product i.e. $||x||:=\sqrt{\langle x,x \rangle}$ then the solution is simply $\pm \frac{v}{||v||}$, because with Cauchy-Schwarz we attain: $|\langle v,x \rangle| \leq ||v||\cdot ||x||= ||v|| = |\langle v,\pm \frac{v}{||v||} \rangle|$.
But what if this is not the case - in particular, what if we are given the standard scalar product $\langle x,y \rangle := x^Ty$ and A-norm $||x||:=\sqrt{x^TAx}$ for some symmetric, positive definite Matrix $A$?
I read that $x = A^{-1}v$ would be optimal, have not yet seen a proof of this.
$v = |v| e_v$, where $||e_v|| = 1$
Use the Cauchy-Schwartz inequality: $$|\langle v,x \rangle|^2 \le \langle v,v \rangle \cdot \langle x,x \rangle = ||v||^2$$
But $$|\langle v,e_v \rangle|^2 = ||v||^2$$ So it's necessarily a maximum.
Note that I used the induced norm $||.||$ which is not necessarily the same that you provided in your question.