Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [equations]

{equations} is about the various environments to typeset displaystyle mathematics, e.g. equation and {align}. For general questions about mathematical typesetting use {math-mode}. Both tags are possible on the same question.

1
vote
1answer
8 views

Align ragged right and ragged left in equation environment

I would like to write a financial calculation that is numbered as an equation. tabular, split and align do not seem to work. tabular delivers an error witin the equation environment. The result ...
0
votes
0answers
30 views

MAE equation in latex

\begin{equation} \label{equ:mae} \begin{tabulary} {18cm}{L R @{} >{${}}c<{{}$} @{} L} & MAE &= &$\displaystyle\frac{1}{n}\sum_{i=1}^{n}|p_i-r_i|$ \\ \end{tabulary} \end{equation} I ...
0
votes
2answers
58 views

Why do I get a “! Missing \right. inserted.” message?

What's wrong with this? Error message: "! Missing \right. inserted." (But I don't see it. Everythink works!) \begin{multline} U=\sum\limits_{n=0}^{\infty}\sum\limits_{k=0}^{\infty}\left[(a_{nk}\cos ...
1
vote
1answer
23 views

Problem with side by side equation tag and custom tag style

Consider the following MWE: \documentclass{article} \usepackage{mathtools} \usepackage{amsmath} \newtagform{brackets}{[}{]} \usetagform{brackets} \AtBeginDocument{\let\latexlabel\label} \...
3
votes
4answers
281 views

2 x 2 lines equation on a single line separated by a text in the middle

How to write 2 x 2 rows equation on a single line separated by a text in the middle of the form: The picture example is the result that I want to reproduce and can't (which I found in a textbook) ...
1
vote
1answer
20 views

What is the problem in this code?

\begin{doublespace} \left( {\begin{array}{*{20}{cccc}} {\cosh \left[ {2t} \right]}&0&{\sinh \left[ {2t} \right]}&0\\ 0&{\cosh \left[ {2t} \right]}&0&...
0
votes
0answers
27 views

Provide a LateX equation with more than 1 tag

To refer to an equation, I use either \ref (or \eqref) or I set an explicit \tag in the equation environment. I would like to to use both of them so I can keep the convenience of \tag and the ...
0
votes
1answer
47 views

How to put text below some text in an equation

Please refer the attached image. I want to write \omega \in \mathbb{R} below sup as shown in the equation in the image. How should I do it?
3
votes
4answers
32 views

Customize subequation numbering

I need to customize equation numbering as follows: Some text ... a+b (5) 3+2 (5') ... some more text.... c+d (6) The idea is that (5') is an example of (5). I thought of using ...
3
votes
2answers
31 views

Problem of aligning three equations horizontally by using multicols

I have trouble to align three equations horizontally by using multicols. Any idea how to fix this? Thanks! \begin{multicols}{3} \begin{equation} f(x)=tanh(x) \end{equation} \begin{...
0
votes
1answer
24 views

Equation - gathered error

Why is here error please? When I delete '+ \ +' the compilation is OK. \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[english]{babel} \...
0
votes
2answers
35 views

split of equation

How can I please get this equation to center align? \documentclass[12pt, a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage[english]{babel} \...
1
vote
2answers
48 views

Scheme for showing integration by parts

I am sorry for duplicate question, but I don't know to to call it to find it here. How can I please write this? u = r_2^2 u' = 2r_2 v'=e^{-\frac{2Zr_2}{a}} v = -\frac{a}{2Z} e^{-\frac{2Zr_2}{a}}
2
votes
2answers
47 views

gathered - split an equation

What is please the problet that the equation is not split two times? \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[english]{babel} \...
6
votes
2answers
233 views

Equation - brackets

How can I improve brakets in this equation please? \begin{equation}\label{E} E_0^{(1)} = \expval{\frac{e'^2}{|\vec{r_1}-\vec{r_2}|}}{\Phi} \end{equation} EDIT: And please, what is wrong here? I ...
1
vote
0answers
57 views

How to improve the visual appearance of my document? [closed]

Introduction I typed out some definitions from our theoretical computer science lecture for the fun of it. Unfortunately I noticed, that it didn't look very professional and clean . The reason for ...
1
vote
1answer
36 views

2-column alignment of equations: left-center

It's a long time since I try to align equations centerly with a prefix on the very left of the page. I was able to develop a basic version of it using IEEEeqnarray of IEEEtran class, but since I'm ...
0
votes
2answers
44 views

problem with text formatting \ itemize

I looked for a command to improve the equation item and I met this one. \usepackage{amsmath} newcommand{\itemEq}[1]{% \begingroup% \setlength{\abovedisplayskip}{0pt}% \...
0
votes
3answers
49 views

Equation of partial derivatives

How could I write down this equation in latex. As a editor I am using overleaf. Thank you in advance.
1
vote
1answer
34 views

Highlighting part of equation with text underneath

I am trying to use this but change the text to be down and to be not divided but I did not know how to alter the code. Any help?
1
vote
2answers
105 views

How to write this equation in LaTeX

I want the code LaTeX of the following equation. Can anyone help me? As shown in my code below, the term (n/r)is not small, How I can do it as in the source picture? source pic: Code: %%%%%%%%%%%%...
1
vote
3answers
47 views

Formatting of optimization equations

I am writing an optimization problem for a two-column scientific paper. The problem is that I am using the following code to produce the equations, but the output is not aesthetically good as it ...
2
votes
1answer
36 views

“Numbering” equations inside array{l}

i have this situation: \begin{equation} \begin{array}{l} A \xrightarrow{T4} \\ \\ B \xrightarrow{S} \\ \\ C \xrightarrow{T5} \\ \\ D \end{array} \end{equation} Here i have reported a minimal example ...
1
vote
1answer
24 views

Flalign* environment: Put two equations side by side and separate them with vertical line

I need your help. What I want is putting two formulas/equations side by side. They should be clearly separated with a vertical line in the middle. Here comes the code: \documentclass{article} \...
1
vote
2answers
133 views

How to write a long equation without it going over the margin?

This is my LaTeX code I'm using these packages \usepackage{physics} \usepackage{amsmath} \usepackage{amssymb,latexsym,mathrsfs} And the code is \documentclass[a4paper]{article} \usepackage[utf8]{...
0
votes
0answers
22 views

Replacing [ by \left[? [duplicate]

I am getting an error while replacing [ and ] by \left[ and \right]. \begin{equation} \begin{split} -\frac{\hbar^2}{2m_0}[\frac{1}{r^2}\frac{\partial}{\partial r}\left( r^2 \frac{\partial }{\partial ...
0
votes
4answers
36 views

brackets in equations

How do I make the fraction in this equation sit in the middle of the big brackets? \documentclass{article} \usepackage{amsmath} \begin{document} \[ T = \ln \left (\frac{\displaystyle\frac{\...
1
vote
1answer
41 views

Add vertical space in equations

i have a series of equalities in an equation so i want to start a new line. I've seen the use of \begin{align*} but i want to work inside an equation. For example : \begin{equation} a+b=c+d=d+e \end{...
1
vote
1answer
24 views

How to remove the equation number from both lines when equation is split in two lines?

I am writing an optimization problem for a scientific paper using IEEE tran conference library. I am splitting long equations into 2 lines but then, latex is putting equation number on both lines. ...
1
vote
1answer
90 views

Trying to make school report in latex for first time. Can't get equations to work

\begin{equation} my_list = [1, 2, 3, 4, 5], then new_list = [(2\cdot3\cdot4\cdot5), (1\cdot3\cdot4\cdot5), (1\cdot2\cdot4\cdot5), (1\cdot2\cdot3\cdot5), (1\cdot2\cdot3\cdot4)] = [120, 60, 40, 30, 24] \...
2
votes
3answers
49 views

combine equations

I'm trying to add the moving average equation, but keep getting errors saying: 1. missing $ inserted 2. runaway argument? 3. missing } 4. undefined control sequence despite the error my equation does ...
2
votes
0answers
21 views

Why can't I create an equation in my list? [duplicate]

\documentclass[11pt]{article} \usepackage{physics} \usepackage{blindtext} \usepackage{amsmath} \usepackage{bm} \usepackage{cancel} \usepackage{sidecap} \usepackage{array} \usepackage[utf8]{inputenc} \...
0
votes
1answer
51 views

How to bold the letter in equation in LateX effectively

Suppose I have an equation involve many letters: \begin{equation} \min \|S-A\|_F^2 \end{equation} How can I bold the letter in equation, such as S and A in the equation. We can \bm{A}...
2
votes
2answers
36 views

Tabularx and align, gather or something else for a two line equation

I am trying to insert a two line equation in a tabularx environment. I managed to do it with vbox for a one line equation, but I can't seem to do it for a two line equation. I tried multirow, but I ...
2
votes
2answers
49 views

Tabularx misconfiguration with equations

I am trying to make a table like this: I am using tabularx for creating it, here is the code: \setlength{\tabcolsep}{2pt} \renewcommand{\arraystretch}{2} \newcolumntype{C}[1]{>{\hsize=#1\hsize\...
6
votes
2answers
157 views

Box to appear fully around equation

In the code below, I am only getting a box around part of my equation like this: How do I get the box to appear around the full equation? Thanks! CODE \documentclass{article} \usepackage{mathtools}...
2
votes
2answers
38 views

Equation numbering not shown

I am writing an equation using the syntax s follows:- { \[ N\!D_{\max} = \begin{cases} \frac{n}{2} &: \text{$n$ even,} \\ \frac{n-1}{2} &: \text{$n$ odd.} \end{cases} \] ...
4
votes
2answers
25 views

Align boxed equation to the left margin

I am attempting to left align a boxed equation but I failed. Can you help me align this boxed equation to the left margin:? Thank you! CODE \documentclass{article} \usepackage{mathtools} \...
5
votes
1answer
79 views

Rightarrow at 45 degrees in equation

I have attempted to get this output: Instead I got this: Can you help me get the correct output? Thanks! CODE \documentclass{article} \usepackage{mathtools} \usepackage{amssymb,amsthm} \...
4
votes
1answer
85 views

\downarrow in equation

could you suggest me a method to write the equation with the arrow pointing down as in the picture? I do not understand how it could be set. i see this post: Undersetting an arrow beneath an ...
0
votes
1answer
38 views

Add white line to align environment

I want to add a white line in between the two equations of the code below. Everything I tried resulted in the white line being listed as an additional equation. \begin{align} \begin{split} {}&\...
5
votes
1answer
132 views

Place box around text and equation

I would like to get an output where I there is a box around the equation and text like this: I tried \mbox and \fbox but couldn't get it to work correctly. Thanks for your help! CODE \...
0
votes
0answers
16 views

Ignoring brackets when using multi-line equations [duplicate]

I don't know why the following code is not working, i. e. the last bracket is ignored. I want to have brackets spanning the whole multi-line equation. Thanks for any help! \documentclass{article} \...
1
vote
2answers
32 views

Huge white space in fraction [duplicate]

I'm trying to create an equation in LaTeX, however, there seems to be a gigantic white space that is rather unsightly. Here's the code I'm using: \[ x=a\sqrt[n]{1-\left(\dfrac{\sqrt[n]{\dfrac{\sqrt[2-...
1
vote
1answer
39 views

Problem with equation numbering location

I have two very long equation but the problem is the number of the equation locating is wrong my code is, I now that the margin is 6 cm from the left but still it has to work my code looks like: \...
1
vote
1answer
23 views

Subequation Numbering and placement arrangements

\begin{subequations} \renewcommand\arraystretch{1.33} % or some other suitable value \begin{flalign} {}_{\mathrm{L}}^{}\mathbf{M} &\equiv \begin{bmatrix} {}_{\mathrm{L}}^{}\mathbf{M}^{\...
5
votes
2answers
80 views

Indications for improving the numbering of equations contained in a system

As you can easily see from the attached image and code, I numbered each equation manually using \textbf. How do you have to proceed to have a correct automatic numbering of this type with a correct ...
0
votes
1answer
33 views

italic after math equation: how to solve (not solved with $) [duplicate]

I am not an expert with equations on latex. I have wrote these ones within a chapter of a book, but I missed how to write the label on the left with the equation number. Moreover, the text after the ...
1
vote
2answers
52 views

Range Subequation numbers like (1a-z) instaed of 1a, 1b, 1c, 1d, 1e, …1z

\begin{subequations} %\begin{flalign} \begin{eqnarray} _{\mathrm L}\mathbf{M} \equiv \left\[ \begin{array}{ccc} _{\mathrm L}\mathbf{M}^{\mathrm ...
4
votes
2answers
60 views

Multiple math accents in exponents

How can I prevent an offset in stacked accents (hat is not in the middle of the tilde) and how can I typeset the exponent 'a' in the example below not to be so high and near the tilde? For your ...