Math & ScienceBreak an Equation

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
rayman
Posts: 24
Joined: Thu Feb 24, 2011 11:53 am

Break an Equation

Post by rayman »

Hello, I would appreciate any help on this. I tried to break this equation into lines...but I cannot get this to work

Code: Select all

\begin{equation*}
\begin{split}
T(f+g)=(f+g)(tg(\pi x-\frac{\pi}{2}))\cdot\Bigl( (\frac{\pi}{cos^{2}(\pi x-\frac{\pi}{2})}\Bigr)^{\frac{1}{p}}=
& f(tg(\pi x-\frac{\pi}{2}))\cdot\Bigl( (\frac{\pi}{cos^{2}(\pi x-\frac{\pi}{2})}\Bigr)^{\frac{1}{p}}+
& g(tg(\pi x-\frac{\pi}{2}))\cdot\Bigl( (\frac{\pi}{cos^{2}(\pi x-\frac{\pi}{2})}\Bigr)^{\frac{1}{p}}=
& Tf+Tg
\end{split}
\end{equation*}
thank you for any help
Last edited by localghost on Tue Nov 08, 2011 9:35 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Break an Equation

Post by localghost »

You have to insert a \\ command after each line to introduce a new one.

Code: Select all

\documentclass[11pt]{article}
\usepackage{mathtools}

\begin{document}
  \begin{equation*}
    \begin{split}
      T(f+g)
      &= (f+g)\tan\Bigl(\pi x-\frac{\pi}{2}\Bigr)\cdot\Bigl(\frac{\pi}{\cos^2(\pi x-\frac{\pi}{2})}\Bigr)^{\frac{1}{p}} \\
      &= f\tan\Bigl(\pi x-\frac{\pi}{2}\Bigr)\cdot\Bigl(\frac{\pi}{\cos^2(\pi x-\frac{\pi}{2})}\Bigr)^{\frac{1}{p}} \\
      &+ g\tan\Bigl(\pi x-\frac{\pi}{2}\Bigr)\cdot\Bigl(\frac{\pi}{\cos^2(\pi x-\frac{\pi}{2})}\Bigr)^{\frac{1}{p}} \\
      &= Tf+Tg
    \end{split}
  \end{equation*}
\end{document}

Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
rayman
Posts: 24
Joined: Thu Feb 24, 2011 11:53 am

Re: Break an Equation

Post by rayman »

thank you looks beautiful!
Could you please look at this
\begin{equation*}
\begin{split}
Ker T
&={f\inL^{p}(\mathbb{R}):Tf=0 a.e. on (0,1)}
&={f\inL^{p}(\mathbb{R}): f(tan(\pi x-\frac{\pi}{2}))\cdot\Bigl(\frac{\pi}{\cos^2(\pi x-\frac{\pi}{2})}\Bigr)^{\frac{1}{p}}=0 a.e}
&={f\inL^{p}(\mathbb{R}): f(t)=0 a.e. on \mathbb{R}}=0
\end{split}
\end{equation*}

I cannot see why it does not work.....
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Break an Equation

Post by localghost »

Same problem as shown in my last reply. Pay attention to the end of a line.

By the way, it would very kind if you use the »Code« button when posting code to tag it as such (as you can see in my posts). You can find the button right above the input window when composing or editing a message. It just keeps your post clear and legible. And please get used to always providing a minimal example to describe a problem.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Post Reply