Hello friends,

does anyone know how to write mathematical formulas. I tried with mathjax but does not work.

Thank you

# Math formula ionic

**Ervis**#1

**nagarjunbn8**#2

Hi,

Use UTF-8 Mathematical Operators

http://www.w3schools.com/charsets/ref_utf_math.asp

And even the mathjax is working fine.

**nagarjunbn8**#5

Ionic 1 Steps :

1 . http://docs.mathjax.org/en/latest/installation.html Download the MathJax .

2 . Link the JS and configuration as per your requirement .

Example :

`<script type="text/javascript" src="/js/MathJax.js?config=TeX-AMS_HTML-full"></script> <script type="text/x-mathjax-config"> MathJax.Hub.Config({ tex2jax: {inlineMath: [["$","$"],["\\(","\\)"]]} }); </script>`

```
3. Add the Required formula .
Example :
```

`<p> When $a \ne 0$, there are two solutions to \(ax^2 + bx + c = 0\) and they are $$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$ </p>`

I have not tried this with Ionic 2 . I will try once in Ionic 2 and reply back again after downloading the latest android build tools .

**bshikhar13**#6

@nagarjunbn8 Thanks for the reply. Please try with Ionic 2. I am stuck in installing it in Ionic 2.

**Bhekor**#7

Using CDN itâ€™s only working in the first view (that is your default view) when the app loads, but does not work when you switch the view. **Mathjax**

Please can anyone help me, I think am missing something.