Vector triple product
The vector triple product is the cross product of one vector with the cross product of two others, $\vec{a}\times(\vec{b}\times\vec{c})$. Its value is a linear combination of $\vec{b}$ and $\vec{c}$, so it lies in the plane these two vectors span.
It differs from the scalar triple product $\vec{a}\cdot(\vec{b}\times\vec{c})$, which is a scalar.
Formal definition
For $\vec{a},\vec{b},\vec{c}\in\mathbb{R}^{3}$,
$$\vec{a}\times(\vec{b}\times\vec{c})=\vec{b}(\vec{a}\cdot\vec{c})-\vec{c}(\vec{a}\cdot\vec{b})$$
where $\times$ denotes the cross product and $\cdot$ the dot product.[1]
where $\times$ denotes the cross product and $\cdot$ the dot product.[1]
Equivalently,
$$ \vec{a}\times(\vec{b}\times\vec{c})=(\vec{a}\cdot\vec{c})\,\vec{b}-(\vec{a}\cdot\vec{b})\,\vec{c}, $$
often memorised as the BAC-CAB rule: the two terms list the same three vectors in the orders $\vec{b},\vec{a},\vec{c}$ and $\vec{c},\vec{a},\vec{b}$. The symbol $\wedge$ denotes the same cross product as $\times$.
Reversed nesting
The bracket cannot be moved freely: for $\vec{a},\vec{b},\vec{c}\in\mathbb{R}^{3}$,
$$ (\vec{a}\times\vec{b})\times\vec{c}=(\vec{a}\cdot\vec{c})\,\vec{b}-(\vec{b}\cdot\vec{c})\,\vec{a}. $$
The two nestings differ in general. For $\vec{a}=\vec{b}=\vec{i}$ and $\vec{c}=\vec{j}$,
$$ \vec{i}\times(\vec{i}\times\vec{j})=-\vec{j}, \qquad (\vec{i}\times\vec{i})\times\vec{j}=\vec{0}. $$
Geometric interpretation
$$ \begin{cases} \bigl(\vec{a}\times(\vec{b}\times\vec{c})\bigr)\cdot\vec{a}=0\\[4pt] \bigl(\vec{a}\times(\vec{b}\times\vec{c})\bigr)\cdot(\vec{b}\times\vec{c})=0 \end{cases} $$
Since $\vec{b}\times\vec{c}$ is normal to the plane spanned by $\vec{b}$ and $\vec{c}$ (see orthogonality of the cross product), the vector triple product lies in that plane; the identity shows this directly through its right-hand side, a combination of $\vec{b}$ and $\vec{c}$. Being also orthogonal to $\vec{a}$, it is the vector of that plane orthogonal to $\vec{a}$, and it vanishes when the two conditions cannot both be met:
$$ \vec{a}\times(\vec{b}\times\vec{c})=\vec{0}\iff\vec{a}\parallel\vec{b}\times\vec{c}\ \text{or}\ \vec{b}\parallel\vec{c}. $$
Example
Applications
Acceleration in rotation. A point of a rigid body rotating with angular velocity $\vec{\omega}$ about a fixed point $O$ has velocity $\vec{v}=\vec{\omega}\times\vec{r}$, so the centripetal part of its acceleration is
$$ \vec{\omega}\times(\vec{\omega}\times\vec{r})=(\vec{\omega}\cdot\vec{r})\,\vec{\omega}-|\vec{\omega}|^{2}\,\vec{r}. $$
Writing $\hat{\vec{\omega}}=\vec{\omega}/|\vec{\omega}|$ and $\vec{r}_{\perp}=\vec{r}-(\vec{r}\cdot\hat{\vec{\omega}})\hat{\vec{\omega}}$ for the distance to the axis, the right-hand side collapses to
$$ \vec{\omega}\times(\vec{\omega}\times\vec{r})=-|\vec{\omega}|^{2}\,\vec{r}_{\perp}, $$
the axial part $(\vec{r}\cdot\hat{\vec{\omega}})\hat{\vec{\omega}}$ cancelling.
Angular momentum of a rotating body. The integrand $\vec{r}\times(\vec{\omega}\times\vec{r})$ is expanded with the same identity in the derivation of the Inertia matrix.