\(a,\)Áp dụng hệ thức lượng trong tam giác vuông ABC ta có
\(BC^2=AB^2+AC^2\Rightarrow BC^2=3^2+4^2\Rightarrow BC=\sqrt{9+16}\)
\(\Rightarrow BC=5cm\)
\(AB^2=BH.BC\Rightarrow BH=\frac{AB^2}{BC}\Rightarrow BH=\frac{3^2}{5}=\frac{9}{5}cm\)
\(AC^2=CH.BC\Rightarrow CH=\frac{AC^2}{BC}\Rightarrow CH=\frac{4^2}{5}=\frac{16}{5}cm\)
\(AH^2=\frac{9}{5}.\frac{16}{5}\Rightarrow AH^2=\frac{144}{25}\Rightarrow AH=\sqrt{\frac{144}{25}}=\frac{12}{5}cm\)
\(b,\)
\(BC=BH+CH\Rightarrow BC=9+16\Rightarrow BC=25cm\)
\(AB^2=BH.BC\Rightarrow AB^2=9.25\Rightarrow AB=\sqrt{225}=15cm\)
\(AC^2=CH.BC\Rightarrow AC^2=16.25\Rightarrow AC=\sqrt{400}=20cm\)
\(AH^2=BH.CH\Rightarrow AH^2=9.16\Rightarrow AH=\sqrt{144}=12cm\)