12 votes

How can I write the next step exactly below the previous step in the equation without repeating the L.H.S. of the equation?

The following solution also employs an align* environment (cf @RaffaeleSantoro's solution), but also takes care of several typographical niceties such as using upright lettering for a "math ...
Mico's user avatar
  • 479k
11 votes
Accepted

How to align equations like this?

You want aligned, rather than matrix. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} \left. \begin{aligned} \frac{dx}{dy} &= a(y-x)+u \\ \frac{dy}{dt} &= -...
egreg's user avatar
  • 1.1m
10 votes
Accepted

Arrow to an equal symbol in a equation to justify it

Here's a solution that uses the \mathclap macro of the mathtools package and the \substack macro of the amsmath package. (Aside: the mathtools package loads the amsmath package automatically. \...
Mico's user avatar
  • 479k
10 votes
Accepted

How can I write the next step exactly below the previous step in the equation without repeating the L.H.S. of the equation?

Try this: \documentclass[10pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{amsmath} \usepackage{amssymb} \usepackage{graphicx} \begin{document} \begin{align*} ...
Raffaele Santoro's user avatar
10 votes
Accepted

Square roots look ugly with high and long expression

I assume that by "ugly", you mean that the square root symbol in question -- see the top row of the following screenshot -- somehow looks either "too big" (in an absolute sense) or ...
Mico's user avatar
  • 479k
10 votes

Adding explanation next to the successive equations in latex

I think it's better to use an alignat or alignat* environment rather than an array environment to display several rows of equations, for two reasons. First, the rows are spaced slightly farther apart ...
Mico's user avatar
  • 479k
10 votes
Accepted

How to write equation where all equation are in only opening curly bracket and there is no closing curly bracket and with equation number

I suggest you embed a \left\{ \begin{aligned} ... \end{aligned} \right. construct in an ordinary equation environment. \documentclass{article} % or some other suitable document class \usepackage{...
Mico's user avatar
  • 479k
9 votes
Accepted

How set the bounding box for \middle

This is a prime illustration of why relying uncritically on \left, \middle, and \right can be a poor idea. Just employ 4 instances each of \biggl\langle, \biggm\vert (and lose the \, spacers!), and \...
Mico's user avatar
  • 479k
9 votes
Accepted

Display Long Trigonometric Identity Manipulation

I'd not present the identity that way, which I consider pedagogically unsuitable, to be honest. Anyway, you can detach the first line pretending it has small width and split the two longer lines. \...
egreg's user avatar
  • 1.1m
9 votes
Accepted

Custom \big command

You should use \bigl and \bigr to preserve the \mathopen and \mathclose classes of ( and ). that also makes it easy to have commands adding space correction. It's better to use mu space than em but \! ...
David Carlisle's user avatar
9 votes

Multiple alignments of equations

In addition to employing a single align* environment, I would also like to recommend that you encase all six \sum terms in \smashoperator "wrappers" to achieve a more compact appearance of ...
Mico's user avatar
  • 479k
8 votes

LaTeX long subequation

I'd first get rid of all \left and \right commands that do nothing useful and something harmful. Next I'd use more lines even if some could fit in a merged line. Most important: blank lines inside ...
egreg's user avatar
  • 1.1m
8 votes
Accepted

not showing bengali equation as output in latex

The math fonts don't know how to handle bengali. I would suggest to switch temporarly to text mode: \documentclass[a4paper,12pt]{book} \usepackage[inner=1.5cm, outer=1.5cm, top=1.5cm, bottom=1.5cm]{...
Ulrike Fischer's user avatar
8 votes

Aligning a set of linear equations

I used [the] \systeme command too but wasn't successful. How about the following? In the following code, note (a) the use of [xyz] to enforce a particular order of the variables and (b) the presence ...
Mico's user avatar
  • 479k
8 votes
Accepted

Undesired spaces in mathematics two column paper

The main problem you're facing is that the split environment does not allow column (and page) breaks. To allow column breaks, I would like to suggest you switch from a nested equation*/split setup to ...
Mico's user avatar
  • 479k
8 votes
Accepted

Writing an s-expression with indented lines?

An option would be to use the tabbing environment (inside a minipage and center environment for centering the construction) \begin{center} \begin{minipage}{.5\textwidth} \begin{tabbing} $(-$\=\+\\ ...
Guido's user avatar
  • 30.3k
8 votes

Writing an s-expression with indented lines?

This obeys newlines but ignores white space re-indenting acording to () nesting depth. * and − can be entered as ascii * and - or Unicode ∗ − as in the question. The whole expression is centred on its ...
David Carlisle's user avatar
8 votes
Accepted

Why I get brackets different in the size?

It's worth placing the two main code chunks from lines 1 and 2 on the same line: In the first code chunk, the expression \left(H_n-\frac1n\right) is raised to the third power -- highlighted in ...
Mico's user avatar
  • 479k
8 votes

Equation issue in the LaTeX

If you are typesetting a lot of partial derivatives, you may want to create a macro to make your code simpler. You could use \newcommand{\pdif}[3][]{\frac{\partial^{#1}#2}{\partial{#3}^{#1}}}` Which ...
Sandy G's user avatar
  • 36.4k
8 votes
Accepted

Break equation with \left( and \right) doesn't work exactly while using classicthesis

\left/\right automatically size the brackets to fit the inner formula, so if you pass formulas of different height to them you can't expect to get the same size of brackets. Use explicit sizes using e....
Marcel Krüger's user avatar
8 votes
Accepted

Multiple alignments of equations

I think the simplest way to achieve what you want is really to use a single align* environment. Then you can manually add some extra spacing between the three expressions in the optional argument of \\...
Vincent's user avatar
  • 19.2k
8 votes
Accepted

Centered equation with raggeredleft text

"The customer is always right" is an old truism. However, this rule does have some exceptions. The OP's request is just such case: By placing the word "or" on the same line as -- ...
Mico's user avatar
  • 479k
8 votes
Accepted

\hat not working in LaTex equation

\pmb (poor man bold) gives ugly result (text write 2 times to obtain "bold"). Uses instead \mathbf and \textbf for bold. And \boldsymbol for bold greek (boldsymbol is from package amsbsy ...
quark67's user avatar
  • 4,096
8 votes
Accepted

How can I place two equations on one line, but each is numbered separately?

I wouldn't use such an approach, which makes for difficult reading. Anyway… \documentclass{article} \usepackage{amsmath} \usepackage{amssymb} \usepackage{lipsum} % for mock text \ExplSyntaxOn \...
egreg's user avatar
  • 1.1m
8 votes

How do I add an arrow from one equation to another

You could try the witharrows package: \documentclass{article} \usepackage{witharrows} \begin{document} $\begin{WithArrows} x^4 &= x \cdot x \cdot x \cdot x \Arrow[tikz=<-]{${} \cdot x$} \\ x^3 ...
Jasper Habicht's user avatar
8 votes

How to get two matrices/vectors in the same equation?

No blank lines are allowed inside the code for a math display. The outer braces are redundant. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} \begin{bmatrix} 1 &...
egreg's user avatar
  • 1.1m
8 votes
Accepted

Typsetting a variant of division

A simple array could do the trick, but I have no idea about what it means. First time I see something like that. Update: added the array package for better rules connections, as suggested in the ...
Juan Castaño's user avatar
7 votes
Accepted

eqnarray.sty (equationarray) spacing

Why not using array? And why the b argument specifier? It's a standard environment, no need for it. Now let's look at the problem. The output log shows for the line before the first display ....\OT1/...
egreg's user avatar
  • 1.1m
7 votes

Undesired spaces in mathematics two column paper

A small variation of @Mico answer: used is \MoveEqLeft macro defined in the mathtools package a little bit are rearranged math terms \documentclass[journal]{IEEEtran} \usepackage{amssymb, ...
Zarko's user avatar
  • 284k
7 votes
Accepted

Tasks and align* environments baseline alignment

You may achieve your formatting goal by replacing the {align*} environments with {aligned}[t] environments. Just be sure to place the aligned environments in inline-math mode. \documentclass[12pt,...
Mico's user avatar
  • 479k

Only top scored, non community-wiki answers of a minimum length are eligible