\documentclass{article}

\usepackage[latin2]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[magyar]{babel}
\usepackage{amsopn}           %%% vagy \usepackage{amsmath}
\DeclareMathOperator{\tg}{tg} \DeclareMathOperator*{\Trace}{Trace}

\begin{document}


\end{document}
