One of WordPress’s weaknesses is that it doesn’t come with full support for math equations. However, there are a lot of helpful plugins that can help expand this functionality in WordPress. In today’s blog, we will bring 2 methods to write Math Equations in WordPress by using plugins.

When do you need to write Math Equations in WordPress?

If you are running an educational website, it is sure that you will use Math Equations to display knowledge and tasks that are related to subjects such as Mathematics, Physical, Chemistry. However, by default, WordPress editor doesn’t offer all characters for mathematical equations in HTML. So, to handle this problem, WordPress developers have introduced a lot of useful plugins that will make it easy for you to write mathematical and scientific equations in WordPress.

How to Write Math Equations in WordPress

Method 1: Write Math Equations by using the MathML Block plugin

MathML is a mathematical markup language, an application of XML to display mathematical equations on the web. To sum up, it also makes use of a semantic XML markup that is similar to HTML. Nevertheless, WordPress doesn’t support MathML. So, if you insert the MathML code in the WordPress editor, it will not render properly.

Fortunately, the MathML Block plugin uses MathJax, so it will render MathML Formulas in the editor and on the front-end of your website. To use this tool, first of all, you need to install and activate the plugin.

The process of installing the plugin will take you a few clicks, you can see our detailed tutorial on how to install the WordPress plugin for beginners to get more support.

Once the plugin was activated, let’s open any existing post or go to All posts > Add New to create a new one where you want to write math equations.

In the Block Editor, click on the add new block button (“+” symbol) and add the MathML block to your content.

Write Math Equations In Wordpress

Then, add your LaTex code in the given space like below:

\[write your equations at here\]

For example, we are going to add the following formula.

\[x = {-b \pm \sqrt{b^2-4ac} \over 2a}\]

Write Math Equations In Wordpress 2

Now, you can click on the preview button to see how your math equations display on your website.

Write Math Equations In Wordpress

Alternatively, you can also use a custom HTML block to write your math equations.

Write Math Equation In Wordpress 4

Then, you simply paste your MathML code inside the block.

Write Math Equations In Wordpress

Now, you can save your post and open it on a new tab to see your Math equations converted on your website.

Write Math Equation In Wordpress 5 2

Method 2: Write math equations using the WP QuickLaTex plugin

LaTex provides a lot of useful features to typesetting mathematics, so this makes it a perfect choice for writing equations as well as technical documents.

In order to write math equations in Latex. Firstly, you need to install and activate the WP QuickLatex Plugin.

After activating the plugin, let’s edit your available post/page where you want to write math equations, or create a new one by going to All posts > Add new.

Similarly, on the block editor, click on the Add New Block button and add the “Shortcode” block.

Write Math Equation In Wordpress 7

Next, you need to add the shortcode [latexpage] followed by your Latex code.

For example, we will add the following Latex code:

[latexpage]
\begin{equation}
\label{eq:sedov}
R(t)= A \left(\frac{E_0}{\rho_0}\right)^{1/5}t^{2/5}
\end{equation}

Write Math Equation In Wordpress 8 E1646714954737

Now, it’s time to visit your post/page in a new tab to view your math equation with formating.

Write Math Equation In Wordpress 8 2

The final words

Hopefully, through our blog, you are able to write math equations in WordPress without trouble. If you encounter any difficulties, don’t hesitate to leave a comment below to get our assistance. In addition, don’t forget to share it with your friend, if you find our blog useful.

Further, don’t ignore a wide array of eye-catching, delightful, and responsive Free WordPress Themes on your website.

5/5 - (1 vote)
Lt Digital Team (Content &Amp; Marketing)
Latest posts by LT Digital Team (Content & Marketing) (see all)

Flash Sale! Get 25% Off for everything on today, don't miss it. Coupon code: FLASHSALE25 Check it out
Black Firday Sale! Get 50% Off for everything on today, don't miss it. Coupon code: BFCM50 Redeem Now