Most websites consist of basic text and images but to add equation to websites some extra tools are required. In Drupal 9 two such tools are available: MathJax and Equation Editor.
The Equation Editor module offers a WYSIWYG environment to design the equation in LaTeX. It uses codecogs to show the equation as an externally hosted GIF image. The CKEditor Equation Editor plugin has to be installed as a library and a button to insert equations has to be added to CKEditor. This theoretically limits the equation code length to about 650 characters. It is not possible to host the image creating software locally, of course it's possible to download the image and store that locally. The WYSIWYG environment can be tried out at the codecogs demo.
Because it can be hosted locally MathJax would be my module of preference. However, I want to hook it up to my Book Export RTF module and using MathJax would require me to also convert the equations to RTF. As RTF does support some mathematical denotations this seems possible, and it sounds like fun. But adding the GIF support required for Equation Editor seems to be the easier way to go for now.