18.
Do D thuộc trục hoành nên tọa độ có dạng: \(D\left(a;0;0\right)\)
\(\Rightarrow\left\{{}\begin{matrix}\overrightarrow{AD}=\left(a-3;4;0\right)\\\overrightarrow{BC}=\left(4;0;-3\right)\end{matrix}\right.\)
\(AD=BC\Leftrightarrow\left(a-3\right)^2+4^2=4^2+\left(-3\right)^2\)
\(\Rightarrow\left(a-3\right)^2=9\Rightarrow\left[{}\begin{matrix}a=0\\a=6\end{matrix}\right.\)
\(\Rightarrow\left[{}\begin{matrix}D\left(0;0;0\right)\\D\left(6;0;0\right)\end{matrix}\right.\)
19.
\(cos\left(\overrightarrow{a};\overrightarrow{b}\right)=\dfrac{2.\left(-1\right)+1.0+0.\left(-2\right)}{\sqrt{2^2+1^2+0^2}.\sqrt{\left(-1\right)^2+0^2+\left(-2\right)^2}}=-\dfrac{2}{5}\)
20.
\(\overrightarrow{OA}=\left(2;2;1\right)\Rightarrow OA=\sqrt{2^2+2^2+1^2}=3\)