a: \(=\sqrt{\left(\sqrt{3}+1\right)^2}+\sqrt{\left(\sqrt{3}-1\right)^2}\)
\(=\sqrt{3}+1+\sqrt{3}-1=2\sqrt{3}\)
b: \(=\sqrt{\left(\sqrt{5}+1\right)^2}+\sqrt{\left(\sqrt{5}-1\right)^2}\)
\(=\sqrt{5}+1+\sqrt{5}-1=2\sqrt{5}\)
c: \(C=\left|3x\right|-2x=3x-2x=x\)
d: \(D=x-4+\left|x-4\right|\)
=x-4+x-4(x>4)
=2x-8