On peut se placer dans une base orthonormée, par exemple
\[\left(\frac 1 3\overrightarrow{AB},\overrightarrow{AD},\overrightarrow{AE}\right).\]
Alors :
-
$\overrightarrow{AB}(3a;0;0)$ et $\overrightarrow{AF}(3a;0;a)$ donc
\[\overrightarrow{AB}\cdot\overrightarrow{AF} = (3a)^2 + 0^2 + 0\times a = 9a^2.\]
-
$\overrightarrow{AB}(3a;0;0)$ et $\overrightarrow{AG}(3a;a;a)$ donc
\[\overrightarrow{AB}\cdot\overrightarrow{AG} =
(3a)^2 + 0\times a + 0\times a = 9a^2.\]
-
$\overrightarrow{EG}(3a;a;0)$ et $\overrightarrow{HF}(3a;-a;0)$ donc
\[\overrightarrow{EG}\cdot\overrightarrow{HF}
=(3a)^2 + a\times (-a) + 0\times 0 = 8a^2.\]
-
$\overrightarrow{AH}(0;a;a)$ et $\overrightarrow{DB}(3a;-a;0)$ donc
\[\overrightarrow{AH}\cdot\overrightarrow{DB}
=0\times 3a + a \times (-a) + a \times 0 = -a^2.\]