Write math on your site with Mathjax

 

What is this?

Notations

Type in your LaTex Syntax like this $LaTex Syntax$ (inline) or $x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$

$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$

<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script>
window.MathJax = {
  tex: {
    inlineMath: [ ['$','$'], ['\\(','\\)'] ],
    displayMath: [ ['$$','$$'], ['\[','\]'] ],
    processEscapes: true,
    processEnvironments: true
  },
  options: {
    renderActions: {
      findscriptmathtex: [11, function (doc) {
        for (const node of document.querySelectorAll('script[type^="math/tex"]')) {
          const display = !!node.type.match(/; *mode=display/);
          const math = new doc.options.MathItem(node.textContent, doc.inputJax[0], display);
          const text = document.createTextNode('');
          node.parentNode.replaceChild(text, node);
          math.start = {node: text, delim: '', n: 0};
          math.end = {node: text, delim: '', n: 0};
          doc.math.push(math);
        }
      }, '']
    }
  }
};
</script>
<script async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js" id="MathJax-script"></script>