# How to write an Equation on CC :: Equation Formatting

We can write simple equation using HTML as follows:
Equation: hθ(x) = θo x + θ1x

h<sub>&theta;</sub>(x) = &theta;<sub>o</sub> x + &theta;<sub>1</sub>x


## How to write complex equation on CC:

Here is my approach (in GIF image):

Inline

We know $x=\frac{-b\pm&space;\sqrt{b^2-4ac}}{2a}$

<img src="https://latex.codecogs.com/svg.latex?x=\frac{-b\pm&space;\sqrt{b^2-4ac}}{2a}"/>

In a new line:

$x=\frac{-b\pm&space;\sqrt{b^2-4ac}}{2a}$

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="https://latex.codecogs.com/svg.latex?x=\frac{-b\pm&space;\sqrt{b^2-4ac}}{2a}" />

Links

#share_your_approach
#Equation_formatting
I’m eager to know your approach. Thanks

UPD: No need to use <sub> for inline equation formatting.

2 Likes

Learn \LaTeX. You don’t need to embed images then!

4 Likes

Thanks for suggesting a better approach
Absolutely, we can write equation here… like this: x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}

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

2 Likes