Kẻ AE vuông góc BC \(\Rightarrow ED=\dfrac{BD}{2}=1\Rightarrow AE=\sqrt{AD^2-ED^2}=2\)
Theo định lý phân giác: \(\dfrac{BD}{AB}=\dfrac{CD}{AC}\Rightarrow\dfrac{CD}{AC}=\dfrac{2}{\sqrt{5}}\Rightarrow AC=\dfrac{CD\sqrt{5}}{2}\)
Pitago: \(AE^2+EC^2=AC^2\)
\(\Leftrightarrow AE^2+\left(ED+DC\right)^2=AC^2\)
\(\Leftrightarrow4+\left(1+DC\right)^2=\dfrac{5CD^2}{4}\)
\(\Leftrightarrow\dfrac{1}{4}CD^2-2CD-5=0\) \(\Rightarrow\left[{}\begin{matrix}CD=10\\CD=-2\left(loại\right)\end{matrix}\right.\)