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.

2
votes
1answer
63 views

How to align an equation with equations inside of a begin{case}

I have the following code \documentclass{article} \usepackage{amsmath} \usepackage{mathtools} \begin{document} \begin{align*} \Omega &= \begin{cases} X &= Y\\ W &= X \...
3
votes
1answer
59 views

align \sim like equal signs in equation modus

I want to align a \sim like an equal sign in an equation environment. Is there an easy way to make Latex recognize the \sim like an equal sign? \begin{equation} \begin{aligned} Z \sim ...
2
votes
0answers
49 views

Displaying equation number+name [closed]

I am writing a chapter of a book and I would like some help to display the equations along with a name+number instead of just a number. For example, Eq. 1.11 instead of the default (1.11) which ...
5
votes
3answers
163 views

align two piecewise functions

I have problem with my piecewise functions I read others post and I tried this but I have errors \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} $x_{{i}{j}}$ = ...
1
vote
2answers
75 views

Equation numbering does not continue correctly in Latex

In my thesis, I have a problem when I want to refer to equations. Reference is basically happening based on section or subsections numbering in three digits (e.g. 1-1-1). Also, if I have more than one ...
1
vote
1answer
30 views

Using \tag in \aligned embedded within \equation environment

I want to tag my equations with parallel aligned environments. The code is shown below \begin{equation*} \begin{aligned} & \bold{H}_1^\top\bold{x}_1^*+\bold{K}_1^\top\bold{y}+\bold{U}(\omega_t)= \...
4
votes
4answers
47 views

how to put equation number at the bottom

i want my eq number 11.72 to appear at the last line.how can i do that? After a wick rotation we obtain \begin{equation} \begin{split} \int \frac{d^4 \mathnormal{k}}{(2\pi)^4}\text{log}(-k^2+m^2)=&...
1
vote
1answer
18 views

i want written equation with key in one line

i want written this but lack a braces, How can I write just like the image? \documentclass{article} \usepackage{tikz} \usepackage{float} \usepackage{amsmath} \usepackage{...
3
votes
3answers
93 views

Centering an equation that's wider than \textwidth?

What to do if one want's to center an equation that's to wide for the margins and the equation isn't possible to split between rows like my example where there is a big fraction containing ...
1
vote
0answers
75 views

Difference between eqnarray and eqnarray*

What is the difference between environments eqnarray and eqnarray* in a LaTeX input document?
3
votes
2answers
32 views

How can I temporarily replace 'and' with 'or' when using `\cref` command?

The code below generates correct output. However, I would like to know how I can temporarily replace every instance of 'and' with 'or' just for specific instances of \cref usage. I included xcolor and ...
1
vote
1answer
39 views

Multiline math environment that allows for individually tagged equations grouped by brace as rhs

I'm looking for a math environment that would allow me to write two lines/equations, that needn't be aligned per se, but in which one of the lines looks like this: a = {a(x), where a(x) is a system of ...
2
votes
1answer
41 views

Normal font in equations quoted with Dollar

Text or formula within ${---}$ and in itemize are in italic. How to convert into normal?? I have used \text and \mathrm but it's not working. Anyone please find solution for this following code: \...
4
votes
2answers
56 views

Align multiple answers in equation

I want the following nicely aligned \begin{alignat*}{3} & x^2(x-1) &&= 0\\ x^2 &= 0 \vee x-1 &&= 0\\ x &= 0 \vee x&&=1 \end{alignat*} result: edit: ...
2
votes
1answer
100 views

Is this possible to use two \label for same equation

Is this possible to use different labels for same equation number, I've tried with the below code: \documentclass{book} \usepackage{amsmath} \begin{document} \begin{align} \label{test} a+b=c\label{...
6
votes
5answers
661 views

How to fit a large equation that goes out of the page?

I have the following equation \begin{equation} Ep = (Required Personality Level of Each Resource - Assigned Personality Level of each Resources) \times (da\textsubscript{i}) \end{equation} ...
2
votes
1answer
35 views

Is there any other way of typing aligned equations aside from cases and align?

I want to type aligned equations x = a y = b z = c I only know two ways of achieving this. One is using \begin{align}, the other is by using \begin{cases} wrapped within a \begin{equations}. Is ...
3
votes
2answers
125 views

How to left alignment of formulas in parentheses?

I want the follow one, but my code dosen't achieve, can someone help? my code: \begin{equation} \begin{aligned} \rho=\left\{ \begin{array}{lr} 0, & |v_{y}^{CH}|<V_{...
5
votes
1answer
183 views

Math equation in latex (varnothing)

In a pseudocode, I would like to assign \varnothing to a variable. My code goes like this: \documentclass[runningheads]{llncs} \usepackage{graphicx} \usepackage{algpseudocode} \usepackage{...
1
vote
1answer
48 views

Multi-line equation alignment

I want to use multi-line equation in my essay but when I use it the alignment of the equations become destruct. please help me, thank you in advance this is my code: \documentclass[5p,fleqn]{...
0
votes
1answer
29 views

cases in equation mode

I want to write this equation The curly brace I can't give. I tried this code \begin{equation} \begin{table} \begin{tabular}{ll} m_i^2 &=\lambda\phi^2_{cl}-\mu^2 \ \mathnormal{acting ...
1
vote
1answer
94 views

special characters in equation [closed]

I need to use a special character {\i} in a equation, but it is escaped inside the \begin{equation} block although it appear clearly in text. I have tried \usepackage[utf8]{inputenc} and \usepackage[...
1
vote
1answer
29 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
2answers
110 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
26 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
325 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) ...
0
votes
2answers
52 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&...
2
votes
1answer
96 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
70 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
36 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
26 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
40 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
115 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
59 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
271 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
66 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
39 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
66 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
184 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
81 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
106 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
65 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
39 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
27 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
244 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
4answers
45 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
57 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
28 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
102 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
64 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 ...