Example of a vector equation

Solve $$ \vec x - (\vec x \times \vec a)\times\vec b = \vec c $$ for $\vec x$.

Using vector triple product, $$\begin{align*} \vec c &= \vec x - (\vec x\cdot\vec b)\vec a + (\vec a\cdot\vec b)\vec x \\ &= (1+\vec a\cdot\vec b)\vec x - (\vec x\cdot\vec b)\vec a \\ \vec c\cdot\vec b &= (1+\vec a\cdot\vec b)(\vec x\cdot\vec b) - (\vec x\cdot\vec b)(\vec a\cdot b) \\ &= \vec x\cdot\vec b. \end{align*}$$

Putting this back, $$\begin{align*} \vec c &= (1+\vec a\cdot\vec b)\vec x - (\vec c\cdot\vec b)\vec a \\ (1+\vec a\cdot\vec b)\vec x &= \vec c + (\vec c\cdot\vec b)\vec a. \end{align*}$$