add tag
Laurenso
I am trying to show this verylong equation, but I receive a not nice result.
```
\documentclass[12pt,a4paper]{article}
\usepackage{amsthm}
\usepackage{lscape}
\usepackage{mathtools}
\usepackage[paperwidth=20.5cm, paperheight=29cm, left=1.5cm,right=1.5cm,top=1.5cm,bottom=2cm]{geometry}
\begin{document}
\begin{landscape}
	\[ \begin{dcases}
		x = \frac{c^{2}+m^{2}-n^{2}}{2 c},\\
		y = 
		\frac{a^{2} c^{2}+a^{2} m^{2}-a^{2} n^{2}+b^{2} c^{2}-b^{2} m^{2}+b^{2} n^{2}-c^{4}+c^{2} m^{2}+c^{2} n^{2}-2 p^{2} c^{2}}{2 \sqrt{-\left(a +b -c \right) \left(a -b +c \right) \left(a -b -c \right) \left(a +b +c \right)}\, c}
		,\\
		\frac{\sqrt{\left(a^{4}-2 a^{2} b^{2}-2 a^{2} c^{2}+b^{4}-2 b^{2} c^{2}+c^{4}\right) \left(a^{4} m^{2}+a^{2} b^{2} c^{2}-a^{2} b^{2} m^{2}-a^{2} b^{2} n^{2}-a^{2} c^{2} m^{2}-a^{2} c^{2} p^{2}+a^{2} m^{4}-a^{2} m^{2} n^{2}-a^{2} m^{2} p^{2}+a^{2} n^{2} p^{2}+b^{4} n^{2}-b^{2} c^{2} n^{2}-b^{2} c^{2} p^{2}-b^{2} m^{2} n^{2}+b^{2} m^{2} p^{2}+b^{2} n^{4}-b^{2} n^{2} p^{2}+c^{4} p^{2}+c^{2} m^{2} n^{2}-c^{2} m^{2} p^{2}-c^{2} n^{2} p^{2}+c^{2} p^{4}\right)}}{a^{4}-2 a^{2} b^{2}-2 a^{2} c^{2}+b^{4}-2 b^{2} c^{2}+c^{4}}
	\end{dcases} \]
\end{landscape}	
\end{document}
```

![image.png](/image?hash=eb4ef85e3ac4a4dc28e2fdd0596850e74cbe89a0abe7a77ade60f92ab165ea86)

How can I get a nice result?
Top Answer
samcarter
Trying to read such a long equation and trying to keep track which terms belong to which parenthesis etc. will probably be hard for your readers.

Personally, I think it would be easier to read if you give names to your two terms and then define the terms separately:

```
\documentclass[12pt,a4paper]{article}
\usepackage{amsthm}
\usepackage{lscape}
\usepackage{mathtools}
\usepackage[paperwidth=20.5cm, paperheight=29cm, left=1.5cm,right=1.5cm,top=1.5cm,bottom=2cm]{geometry}
\begin{document}

	\[ \begin{dcases}
		x = \frac{c^{2}+m^{2}-n^{2}}{2 c},\\
		y = 
		\frac{a^{2} c^{2}+a^{2} m^{2}-a^{2} n^{2}+b^{2} c^{2}-b^{2} m^{2}+b^{2} n^{2}-c^{4}+c^{2} m^{2}+c^{2} n^{2}-2 p^{2} c^{2}}{2 \sqrt{-\left(a +b -c \right) \left(a -b +c \right) \left(a -b -c \right) \left(a +b +c \right)}\, c}
		,\\
		\frac{\sqrt{\left(\text{first term}\right) \left(\text{second term}\right)}}{a^{4}-2 a^{2} b^{2}-2 a^{2} c^{2}+b^{4}-2 b^{2} c^{2}+c^{4}}
	\end{dcases} \]
  
  \begin{align*}
  \intertext{with}
  \text{first term} &= a^{4}-2 a^{2} b^{2}-2 a^{2} c^{2}+b^{4}-2 b^{2} c^{2}+c^{4}\\
  \intertext{and}
  \text{second term} &= a^{4} m^{2}+a^{2} b^{2} c^{2}-a^{2} b^{2} m^{2}-a^{2} b^{2} n^{2}-a^{2} c^{2} m^{2}-a^{2} c^{2} p^{2}+a^{2} m^{4}-\\
  &\quad- a^{2} m^{2} n^{2}-a^{2} m^{2} p^{2}+a^{2} n^{2} p^{2}+b^{4} n^{2}-b^{2} c^{2} n^{2}-b^{2} c^{2} p^{2}-b^{2} m^{2} n^{2}+\\
  &\quad+b^{2} m^{2} p^{2}+b^{2} n^{4}-b^{2} n^{2} p^{2}+c^{4} p^{2}+c^{2} m^{2} n^{2}-c^{2} m^{2} p^{2}-c^{2} n^{2} p^{2}+c^{2} p^{4}
  \end{align*}

\end{document}
```

![Screenshot 2023-05-07 at 17.39.11.png](/image?hash=b34b8ec99b8cf9a2309344afe86ad4e0654928885f4a3c93618740e20816a34f)

(replace `first/second term` either with descriptive name or a letter from an alphabet you're not yet using for your equations, so they stand out as "placeholders")

This room is for discussion about this question.

Once logged in you can direct comments to any contributor here.

Enter question or answer id or url (and optionally further answer ids/urls from the same question) from

Separate each id/url with a space. No need to list your own answers; they will be imported automatically.