LaTeX Math for Confluence enables you to add mathematical formula and equations in Confluence pages seamlessly.
If you are Confluence admin, you can install the app from Atlassian Marketplace.
Go to LaTeX Math for Confluence on Atlassian Marketplace
Click on Get it now
Choose your instance and click Install app
Wait for a while for installation to complete. After that, you can start using the macros in Confluence pages.
If you are not a Confluence admin, you can request admin to install following the same steps.