# Writing Mathematical Expressions to HTML ## Writing Inline Expressions ### Markdown ```markdown This sentence uses `$` delimiters to show math inline: $\sqrt{3x-1}+(1+x)^2$ ``` ### Parsed HTML ```html

This sentence uses $ delimiters to show math inline: 3 x 1 + ( 1 + x ) 2

``` ### Markdown ```markdown This sentence uses $\` and \`$ delimiters to show math inline: $`\sqrt{3x-1}+(1+x)^2`$ ``` ### Parsed HTML ```html

This sentence uses a n d delimiters to show math inline: 3 x 1 + ( 1 + x ) 2

``` --- ## Writing Expressions as Blocks ### Markdown ```markdown **The Cauchy-Schwarz Inequality**\ $$\left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right)$$ ``` ### Parsed HTML ```html

The Cauchy-Schwarz Inequality
( k = 1 n a k b k ) 2 ( k = 1 n a k 2 ) ( k = 1 n b k 2 )

``` ### Markdown ```markdown **The Cauchy-Schwarz Inequality** ```math \left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right) ``` ``` ### Parsed HTML ```html

The Cauchy-Schwarz Inequality

( k = 1 n a k b k ) 2 ( k = 1 n a k 2 ) ( k = 1 n b k 2 ) ``` ### Markdown ```markdown The equation $a^2 + b^2 = c^2$ is the Pythagorean theorem. ``` ### Parsed HTML ```html

The equation a 2 + b 2 = c 2 is the Pythagorean theorem.

``` ### Markdown ``` $$ \int_0^\infty e^{-x} dx = 1 $$ ``` ### Parsed HTML ```html

0 e x d x = 1

``` --- ## Dollar Sign Inline with Mathematical Expression ### Markdown ```markdown This expression uses `\$` to display a dollar sign: $`\sqrt{\$4}`$ ``` ### Parsed HTML ```html

This expression uses \$ to display a dollar sign: $ 4

``` ### Markdown ```markdown To split $100 in half, we calculate $100/2$ ``` ### Parsed HTML ```html

To split $100 in half, we calculate 100 / 2

```