# Just a test for LaTeX on this forum.

#### guinster

Hi

This is only for my own use to make sure my LaTeX comes out right.

I don't want to make a mess of any maths layout I submit in my posts.

$$\displaystyle \frac{dy}{dx}(2x^2+6) = 4x$$

Regards

#### guinster

Test Post :

$$\displaystyle \frac{dy}{dx}(2x^2+6) = 4x$$

Layout ok ?

#### guinster

Test Post :

$$\displaystyle \frac{dy}{dx}(2x^2+6) = 4x \\ \log_{5} 25=2$$

$$\displaystyle \sqrt[3]{2}$$

$$\displaystyle \arctan 45$$

$$\displaystyle \sum x_i$$

$$\displaystyle 178 \pm 5$$

$$\displaystyle this \Leftrightarrow \\ this$$

$$\displaystyle \begin{array}{l|cr|}4&1&2\\-4&-1&-2\\\hline\end{array}$$

$$\displaystyle f(x)=\left\{\begin{array}{cc}0,&\mbox{ if }x\leq 0\\1, & \mbox{ if } x>0\end{array}\right.$$

$$\displaystyle \left(\begin{array}{cc}1&9\\7&1\end{array}\right)$$

$$\displaystyle \begin{array}{cc}1&0\\0&1\end{array}$$

$$\displaystyle \begin{array}{lcr}4&1&2\\-4&-1&-2 \\-4&-1&-2 \end{array}$$

Last edited:

#### Soroban

MHF Hall of Honor
Hello, guinster!

You're doing great!

Personally I dislike those long minus-signs.

To me, $$\displaystyle \begin{pmatrix} 3 & -1 \\ -2 & 0 \end{pmatrix}$$ looks awkward.

I prefer: .$$\displaystyle \begin{pmatrix}3 & \text{-}1 \\ \text{-}2 & 0 \end{pmatrix}$$

where I replace - with \text{-}.

2 people

#### Prove It

MHF Helper
If you put \phantom{-} before the positive terms they end up lined up properly

3 people

#### topsquark

Forum Staff
$$\displaystyle \begin{matrix} \phantom{-} 1 & -3 \\ -2 & \phantom{-} 4 \end{matrix}$$

Cooooool! (Bow)

-Dan

#### guinster

Hi

I really appreciate the tips.

Regards

#### Prove It

MHF Helper
Also it's common practice to write the d's in a different font when they're used for differentials.

\frac{\mathrm{d}y}{\mathrm{d}x} gives \displaystyle \begin{align*} \frac{\mathrm{d}y}{\mathrm{d}x} \end{align*}

In fact, the mathrm font is used when your letter is used for something other than a variable, such as a predefined constant like \displaystyle \begin{align*} \mathrm{e} \end{align*} or \displaystyle \begin{align*} \mathrm{i} \end{align*} as well

2 people

#### guinster

Thanks Prove It

Cheers

Similar Math Discussions Math Forum Date
LaTeX
LaTeX
LaTeX
LaTeX