Use the unicode-math package for OpenType mathematics
masterThe unicode-math package enables the use of Unicode/OpenType mathematics in XeLaTeX and LuaLaTeX. This allows you to use modern OpenType math fonts instead of traditional TeX math fonts.
To use the package, include it in your LaTeX preamble and use \setmathfont to specify your desired math font file.
Note: While most standard LaTeX math commands remain compatible, the visual appearance of the math will change to match the selected OpenType font.
\usepackage{unicode-math}
\setmathfont{texgyrepagella-math.otf}