```python

```

Support the display of mathematical expressions typeset in LaTeX, which is rendered in the browser thanks to the `MathJax library`.


```python
from IPython.display import Math
Math(r'F(k) = \int_{-\infty}^{\infty} f(x) e^{2\pi i k} dx')
```




$\displaystyle F(k) = \int_{-\infty}^{\infty} f(x) e^{2\pi i k} dx$



With the Latex class, you have to include the delimiters yourself. This allows you to use other LaTeX modes such as eqnarray:


```python
from IPython.display import Latex
Latex(r"""\begin{eqnarray}
\nabla \times \vec{\mathbf{B}} -\, \frac1c\, \frac{\partial\vec{\mathbf{E}}}{\partial t} & = \frac{4\pi}{c}\vec{\mathbf{j}} \\
\nabla \cdot \vec{\mathbf{E}} & = 4 \pi \rho \\
\nabla \times \vec{\mathbf{E}}\, +\, \frac1c\, \frac{\partial\vec{\mathbf{B}}}{\partial t} & = \vec{\mathbf{0}} \\
\nabla \cdot \vec{\mathbf{B}} & = 0 
\end{eqnarray}""")
```




\begin{eqnarray}
\nabla \times \vec{\mathbf{B}} -\, \frac1c\, \frac{\partial\vec{\mathbf{E}}}{\partial t} & = \frac{4\pi}{c}\vec{\mathbf{j}} \\
\nabla \cdot \vec{\mathbf{E}} & = 4 \pi \rho \\
\nabla \times \vec{\mathbf{E}}\, +\, \frac1c\, \frac{\partial\vec{\mathbf{B}}}{\partial t} & = \vec{\mathbf{0}} \\
\nabla \cdot \vec{\mathbf{B}} & = 0 
\end{eqnarray}



Or you can enter latex directly with the %%latex cell magic:


```latex
%%latex
\begin{align}
\nabla \times \vec{\mathbf{B}} -\, \frac1c\, \frac{\partial\vec{\mathbf{E}}}{\partial t} & = \frac{4\pi}{c}\vec{\mathbf{j}} \\
\nabla \cdot \vec{\mathbf{E}} & = 4 \pi \rho \\
\nabla \times \vec{\mathbf{E}}\, +\, \frac1c\, \frac{\partial\vec{\mathbf{B}}}{\partial t} & = \vec{\mathbf{0}} \\
\nabla \cdot \vec{\mathbf{B}} & = 0
\end{align}
```


\begin{align}
\nabla \times \vec{\mathbf{B}} -\, \frac1c\, \frac{\partial\vec{\mathbf{E}}}{\partial t} & = \frac{4\pi}{c}\vec{\mathbf{j}} \\
\nabla \cdot \vec{\mathbf{E}} & = 4 \pi \rho \\
\nabla \times \vec{\mathbf{E}}\, +\, \frac1c\, \frac{\partial\vec{\mathbf{B}}}{\partial t} & = \vec{\mathbf{0}} \\
\nabla \cdot \vec{\mathbf{B}} & = 0
\end{align}




```python

```

To insert a mathematical formula we use the dollar symbol $, as follows:
Euler's identity: $ e^{i \pi} + 1 = 0 $
To isolate and center the formulas and enter in math display mode, we use 2 dollars symbol:
$$
...
$$
Euler's identity: $$ e^{i \pi} + 1 = 0 $$


```python

```

ee672dac9bbb29611e9aa190e801536f899d5bce
ipynb
Jupyter Notebook
02_Latex_Format.ipynb
erkundanec/Jupyter-Notebook-Formatting
38b04f5c7bd05ebced0409d014dcdb3192a76ceb
MIT
02_Latex_Format.ipynb
erkundanec/Jupyter-Notebook-Formatting
38b04f5c7bd05ebced0409d014dcdb3192a76ceb
MIT
02_Latex_Format.ipynb
erkundanec/Jupyter-Notebook-Formatting
38b04f5c7bd05ebced0409d014dcdb3192a76ceb
MIT
Qwen/Qwen-72B
1. YES
2. YES