Hello

Im trying to write something using TeXnicCenter, and I want these to come on a new line. How do I do it?

Thanks.Code:`\[`

f(x) = \tan(x^2) \\

f'(x) = \left(\tan(x^2)\right)' \cdot (x^2)'

f'(x) = 2x\left(\tan^2(x^2)+1\right)

\]

Printable View

- Sep 11th 2008, 04:55 AMMatteNoobNew line in latex
Hello

Im trying to write something using TeXnicCenter, and I want these to come on a new line. How do I do it?

Code:`\[`

f(x) = \tan(x^2) \\

f'(x) = \left(\tan(x^2)\right)' \cdot (x^2)'

f'(x) = 2x\left(\tan^2(x^2)+1\right)

\]

- Sep 11th 2008, 05:35 AMjanvdl
- Sep 11th 2008, 05:51 AMCaptainBlack
- Sep 11th 2008, 05:59 AMMatteNoob
Thank you both for the replies, but I've tried:

Code:`\documentclass[11pt,norsk,a4paper]{article}`

\usepackage[latin1]{inputenc}

\usepackage[T1]{fontenc}

\title{test}

\author{testauthor}

\tolerance = 5000 % LaTeX er normalt streng når det gjelder linjebrytingen.

\hbadness = \tolerance % Vi vil være litt mildere, særlig fordi norsk har så

\pretolerance = 2000 % mange lange sammensatte ord.

\begin{document}

\maketitle{}

\[

f(x) = \tan(x^2) \\

f'(x) = \left(\tan(x^2)\right)' \cdot (x^2)' \\

f'(x) = 2x\left(\tan^2(x^2)+1\right) \\

\]

\end{document}

Any ideas? - Sep 11th 2008, 06:25 AMbkarpuz
try replacing

**\[**with**\begin{equation}**and**\]**with**\end{equation}**.

and for better view u may use the following codes:

Code:`\documentclass[12pt,reqno]{article}`

\usepackage{amsmath}

\begin{document}

\begin{equation}

\begin{aligned}

f(x)=&\tan(x^{2}) \\

f^{\prime}(x)=&(\tan(x^{2}))^{\prime}\cdot(x^{2})^{\prime}\\

f^{\prime}(x)=&2x(\tan^{2}(x^{2})+1)

\end{aligned}\notag

\end{equation}

\end{document}

- Sep 11th 2008, 06:35 AMMatteNoob
Unfortunately, that didn't help much either. :(

- Sep 11th 2008, 06:39 AMbkarpuz
The code I gave works fine with me in

*Texnic Center*.

Why don't you install WinEdt? http://www.mathhelpforum.com/math-he...ons/icon10.gif - Sep 11th 2008, 06:52 AMMatteNoob
Weird that it doesn't work for me :\

However, I can do them individually by nesting each line within \[ and \] or \begin{equation} \end{equation} those lead to a (#) at the right of the equations though, which is a bit annoing.

Do you know if it is possible to make the math symbols align to the left by any chance? The centered math seems a bit undordered, hehe.

I've never heard about WinEdt before, so I'll check it out. Thank you for the tip. - Sep 11th 2008, 11:42 AMKrizalid
There're many alignment environments which you can use.

Following up on bkarpuz's suggestion, we gotta a point here:

Code:`\begin{equation}`

\begin{aligned}

f(x)=&\tan(x^{2}) \\

f^{\prime}(x)=&(\tan(x^{2}))^{\prime}\cdot(x^{2})^{\prime}\\

f^{\prime}(x)=&2x(\tan^{2}(x^{2})+1)

\end{aligned}\notag

\end{equation}

Code:`\begin{equation}`

\begin{aligned}

f(x)&=\tan(x^{2}) \\

f^{\prime}(x)&=(\tan(x^{2}))^{\prime}\cdot(x^{2})^{\prime}\\

f^{\prime}(x)&=2x(\tan^{2}(x^{2})+1)

\end{aligned}\notag

\end{equation}

- Sep 11th 2008, 11:55 AMbkarpuz
However it does not effect much if you use &= or =&.

You should put the sign & where you want the terms to be in vertical que.

I prefer =& because when some formulas are very long you have to split them into two or more parts, and the second part should start the line with +,-,\times or sth like these, but this should be after = sign.

Let me clear it with a figure:

Code:`a=&aaaaaaaaaaaaaa`

&\times aaaaaaaaa

......

But if you use the way,**Krizalid**suggested, you get

...

from

Code:`a&=aaaaaaaaaaaaaa`

&\times aaaaaaaaa

from

Code:`a&=aaaaaaaaaaaaaa`

\times&aaaaaaaaa