It can be a tedious task to insert mathematical equations in the eBook. If we create images of each equation and insert them, it disrupts the layout. To avoid this, we can use MathJax.
How to use MathJax?
There are two ways to access MathJax: the easiest way is to use the copy of MathJax available from distributed network service at cdn.mathjax.org, but you can also download and install a copy of MathJax on your own server, or use it locally on your hard disk.
Using the MathJax Content Delivery Network (CDN):
To use MathJax from server, you need to do two things:
Link to MathJax in the web pages that are to include mathematical equations.
Put mathematical equations into your web pages so that MathJax can display it.
Add following script into <head> section of .xhtml file: