求向量
先求 $\overset{\large\rightharpoonup}{AB}$
兩點都已知,終點座標減起點座標就是向量。
$$\overset{\large\rightharpoonup}{AB}=B-A=(4-1,2-1)=(3,1)$$
利用垂直條件
由垂直條件寫出 $C$ 滿足的關係式
題組說 $u$ 與 $\overset{\large\rightharpoonup}{CA}$ 垂直,把 $C$ 設成 $(x,y)$ 就能寫出一條關係式。
設 $C=(x,y)$,則
$$\overset{\large\rightharpoonup}{CA}=A-C=(1-x,1-y)$$
因為 $u=(1,2)$ 與 $\overset{\large\rightharpoonup}{CA}$ 垂直,兩者的內積為 $0$:
$$(1,2)\cdot(1-x,1-y)=(1-x)+2(1-y)=0$$
化簡得
$$x+2y=3\ \text{(式1)}$$
利用夾角條件
由夾角條件求出 $|\overset{\large\rightharpoonup}{CB}|$
夾角的餘弦值已知,把內積公式寫出來,分子剛好可以用(式1)化掉。
$\overset{\large\rightharpoonup}{CB}=B-C=(4-x,2-y)$,由夾角餘弦的定義
$$\dfrac{u\cdot \overset{\large\rightharpoonup}{CB}}{|u||\overset{\large\rightharpoonup}{CB}|}=\dfrac{1}{\sqrt{10}}$$
其中 $|u|=\sqrt{5}$,而分子用(式1)化簡:
$$u\cdot \overset{\large\rightharpoonup}{CB}=(4-x)+2(2-y)=8-(x+2y)=8-3=5$$
代回去得
$$\dfrac{5}{\sqrt{5}\,|\overset{\large\rightharpoonup}{CB}|}=\dfrac{1}{\sqrt{10}}$$
解得 $|\overset{\large\rightharpoonup}{CB}|=5\sqrt{2}$。把這個長度改寫成座標的式子:
$$(x-4)^2+(y-2)^2=50$$
求點的坐標
解出 $C$ 的座標
兩條關係式聯立,再用「$C$ 在第二象限」挑出正確的解。
由(式1)得 $x=3-2y$,代入上式:
$$(3-2y-4)^2+(y-2)^2=50$$
左式展開為
$$(-2y-1)^2+(y-2)^2=4y^2+4y+1+y^2-4y+4=5y^2+5$$
所以 $5y^2+5=50$,得 $y^2=9$,即 $y=3$ 或 $y=-3$。
因為 $C$ 在第二象限,必須 $y>0$,所以 $y=3$;代入得 $x=3-2\times 3=-3$。此時 $x=-3<0$,確實在第二象限,故 $C=(-3,3)$。
求夾角餘弦
求 $\cos\angle BAC$
$\angle BAC$ 的兩邊是 $\overset{\large\rightharpoonup}{AB}$ 與 $\overset{\large\rightharpoonup}{AC}$,用內積公式即可。
$$\overset{\large\rightharpoonup}{AC}=C-A=(-3-1,3-1)=(-4,2)$$
$$\cos\angle BAC=\dfrac{\overset{\large\rightharpoonup}{AB}\cdot \overset{\large\rightharpoonup}{AC}}{|\overset{\large\rightharpoonup}{AB}||\overset{\large\rightharpoonup}{AC}|}=\dfrac{3\times(-4)+1\times 2}{\sqrt{10}\sqrt{20}}=\dfrac{-12+2}{\sqrt{200}}=\dfrac{-10}{10\sqrt{2}}=-\dfrac{\sqrt{2}}{2}$$
整理結論
故 $\overset{\large\rightharpoonup}{AB}=(3,1)$,$\cos\angle BAC=-\frac{\sqrt{2}}{2}$。