TeXForm[(Sqrt[(a^2)+(b^2)])]

TeXForm[HoldForm[Sqrt[4]]]

Export["expr.tex",HoldForm[(Sqrt[4])]]