Ta có: \(ab=6\)
\(\Rightarrow2ab=12\)
\(\Rightarrow a^2+b^2+2ab=a^2+b^2+12\)
\(\Rightarrow a^2+b^2+2ab=13+12=25\)
\(\Rightarrow\left(a+b\right)^2=5^2\)
\(\Rightarrow a+b=5\) hoặc \(a+b=-5\)
\(\Rightarrow\left|a+b\right|=5\)
Vậy \(\left|a+b\right|=5.\)