Stack Exchange Network

Stack Exchange network consists of 175 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
This site is currently in read-only mode; we'll return with full functionality soon. Follow @StackStatus or visit our status blog for more info.

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
4answers
43 views

how to write given equation? [duplicate]

I want to read an equation in latex, this is my code: $$ \left \{ \begin{array}{l} \hat{p}=1/N \sum_{i=1}^{N} I_{i} \\ \begin{split} \mathrm{Var}(\hat{p})= & 1/(N^2) \sum_{i=1}^{N} \sum_{j=1}^{N}...
0
votes
2answers
29 views

Changing font size of a specific portion of the overall document

I have to write a paper for one of my classes and I have what I'm sure is a very basic question that I can't seem to find the answer for. Basically, I just want to be able to increase the font size ...
1
vote
1answer
23 views

function multiple lines into box

I'm trying to write the Leapfrog integrator for Monte Carlo Hamiltonian, but I can not properly align each of the rows, any suggestions please. Expected Output: My code: \documentclass[12pt,a4paper]...
1
vote
4answers
44 views

How to align the derivation of equation?

The derivation of equation is given below. Can anyone suggest on how to align the equations in such a way that all the equations get covered under same equation number? \begin{multline}\label{eqn-5.9}...
3
votes
2answers
318 views

How to get a single big right brace?

I am trying to make the right brace cover the whole matrix like the `\overbrace'. Is there a way to do this? \documentclass[reqno,12pt]{amsart} \usepackage{amsmath,mathtools,amssymb} \usepackage[top=...
0
votes
0answers
20 views

How do I make a multiline equation but giving this only one equation number [duplicate]

I want all these three equations to be known as (1). Not (1), (2), (3). \documentclass[11pt]{article} \usepackage{fancyhdr, lastpage} \renewcommand{\headrulewidth}{0pt} \pagestyle{fancy} \fancyhf{} \...
112
votes
7answers
380k views

How do I turn off equation auto numbering

I have an equation like this: \begin{align} P(A \cup B) = \sum_{\omega \in A \cup B} P(\omega) = \sum_{\omega \in A} P(\omega) + \sum_{\omega \in B} P(\omega) = P(A) + P(B) \end{...
0
votes
2answers
45 views

How can I simplify an equation in LaTeX?

I am new to LaTeX, and I am using OverLeaf. I am trying to typeset simplifying the equation u+v-w=p*r+q*s-(q-p)*(s-r)=p*s+q*r. I tried: \begin{align} \left\ u+w-v &= p\times r + q\times s - ...
15
votes
3answers
6k views

Equations and Double Spacing

If a document (in any class) is double spaced, how do you redefine the spacing around centered equations as if there was single spacing? Whenever I use double spacing, I feel like the space before and ...
1
vote
2answers
28 views

How can I write underneath the equation “b+b+…+b” n-times? [duplicate]

I am new to LaTex, I am using a Overleaf. I'm trying to write the equation n\times b= b+b+...+b with 'n-times' in the bottom.
0
votes
1answer
35 views

How can I write a long equation in two lines and name it?

\begin{eqnarray} \tag{A8} 2x+3y+4z+2u+7o+8k+90l+43+56+45p+33h \nonumber \\ &+& 89n+90m+34j+23a+45b+56f \end{eqnarray} But I am not getting the required equation with name A8. If anyone ...
3
votes
2answers
47 views

left-align latex multiline equation

I have a multiline equation in a 2-column document. I want the last item after the "+" sign, i.e. L_{p}^{ITM}\delta_{i,B}, to be left-aligned.As can be seen from the picture, the following latex ...
-1
votes
1answer
22 views

change equation label with amsmath

I would like to change equation number from style (N) to (N.). I can do this by redefining \def\@eqnnum{{\normalfont \normalcolor (\theequation.)}} ...
0
votes
2answers
24 views

How to have “local” numbering for amsmath align environments?

I am trying to re-start the numbering in amsmath align environment. My MWE is as follows: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \begin{document} The following ...
1
vote
2answers
29 views

How to use references within equations and refstyle?

The refstyle package seems to break references within equations \documentclass{article} \usepackage{amsmath} \usepackage{refstyle} \begin{document} \begin{enumerate} \item \label{enu:test} \end{...
2
votes
3answers
27 views

Formula doesn't fit, equation number strolls behind (using flalign)

I have spent some time already trying to fix the way this formula looks, but to no avail. Does anyone have an idea on how to make this look better? Mainly the equation number should fit to the right ...
3
votes
3answers
1k views

Error in multline

This is related to my early question, but with some changes: \documentclass[11pt,twoside,a4paper]{article} \usepackage{amsmath} \usepackage{enumerate} \begin{document} \begin{multline} E(y_{i})= ...
3
votes
2answers
242 views

I could not break this equation. Please help me

f_2=\frac{\sqrt{\frac{s-4 \text{mpsi}^2}{s-4 \text{me}^2}} \left(16 \text{ca} \text{cw} \text{EE}^2 g \text{gpsi} s^2 \sqrt{s \left(-4 \text{me}^2+4 \text{mpsi}^2+s\right)} \cos (\theta ) \text{mZ}^...
0
votes
0answers
14 views

Numbering and Referencing [duplicate]

Is it possible to renew a command to stop equation referencing using the chapter number? I would like the numbering to restart every subsection. Thank you.
2
votes
2answers
42 views

Align multiple equations at multiple points with \alignat

I'm trying to generate an aligned pair of equations with the alignat environment. However, I have two major problems: There is extra horizontal space before my aligned points. The euqation numbers ...
2
votes
1answer
37 views

\linegoal: its use in the second column of the two column document doesn't work correctly

This is the following-up question to interesting @Bernard answer. For some reason I test his interesting solution, how it works if i repeat the same equation four times: \documentclass[twocolumn]{...
0
votes
1answer
18 views

Subnumbering equations while also aligning them

Using AMSMATH's gather environment I can subnumber equations, hoewever I am also losing the alignment at the "=". Is there a way to have both, alignment and subnumbering? \documentclass{article} \...
0
votes
1answer
29 views

I want to write the following equation in multiple lines in two column paper?

the case of multiple resources the total time of activity \emph{"i"} with respect to the effect of personality of resources will be calculated as follows; \begin{equation} TotalTime of a\...
148
votes
5answers
98k views

What are the differences between $$, \[, align, equation and displaymath?

I once learnt, that it is uncool to use $$, but why is that? Why does \[ not act as a abbreviation to \begin{align}? I noticed, that there is a difference, since one cannot use & and \\ inside a ...
0
votes
0answers
12 views

How to add equation number? [duplicate]

\[L_{AABB}=-logI_o\cup(\hat{R},R^\star)=-log\frac{\mid\hat{R}\cap{R^\star}\mid}{\mid\hat{R}\cup{R^\star}\mid}\]\label{one}\] how to add equation number?
5
votes
2answers
205 views

Why do I get an error when I try to begin an equation?

This is what I have typed so far in latex: \documentclass[10pt,letter]{article} \usepackage{amsmath} \usepackage{amsthm} \usepackage{mathtools} \usepackage{graphicx} \usepackage{setspace} \...
124
votes
4answers
132k views

align* but show one equation number at the end

I am using align*, but I still need an equation number. I know one solution is to use align and add \nonumber to all lines but the last. Is there a 'lazy' way to do it? I searched a little and found ...
2
votes
1answer
30 views

Alignment in nested align [duplicate]

How can I align equations in nested align ? \documentclass{article} \usepackage{amsmath,amssymb,amsfonts} \usepackage{flexisym} \begin{document} \begin{equation*} CT_i = \left\{\begin {aligned} ...
2
votes
0answers
30 views

Split Equation not working in trivial case in Overleaf

I,m quite new at LaTeX and I've been having problems with the split equation environment with error messages on every line in my environment. I'm trying to isolate the problem and I've reduced to ...
5
votes
2answers
423 views

Programmatically populating tables with probability data

I have the following template for a journal article featuring a basic table: The code looks something like this: \documentclass[jou,apacite]{apa6} \usepackage[utf8]{inputenc} \usepackage{amsmath} ...
0
votes
3answers
244 views

Enable Spanish tick inside equation environment

How can I enable an accented letter, like in Spanish, inside an \begin{equation} ... \end{equation} environment like below? It's just curiosity. \begin{equation*} P : Presión \end{equation*}
13
votes
4answers
5k views

How to draw slope fields with all the possible solution curves in latex

Sorry, I have no code to submit, mostly because I have no idea how to do this. I want to type up my homework (I can do the homework by hand) and I am looking for a simple method that I can use ...
5
votes
2answers
106 views

Matrices with same height in keynote

I am trying to write some matrices with latex in Keynote and I cant make them the same height. There are some answers to this problem but can't make them work in Keynote. The equation looks like this:...
4
votes
1answer
32 views

Change equation numbering without changing labels

The crux of the issue is I want to refer to some equations as "Equation 1" in the body of the text. However, the actual numbering of the equations I want to appear as a right justified "eq. 1". Below ...
1
vote
4answers
97 views

Write several systems of linear equations in one line

How to write several systems of linear equations in one line with automatic transfer? \begin{multline*} \begin{split} \begin{cases} - x + 8y = -15\\ 4x -4y = 32\\ \end{cases} \end{split} \end{...
3
votes
2answers
43 views

Typeset equation with multiple aligned conditions on the right

Here is my LaTeX code: \documentclass[11pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{amsmath,amsfonts,amssymb} \begin{document} \begin{align} DS &= \...
0
votes
1answer
89 views

What LaTeX version should I download and use [closed]

I just want to build math formulas that look nice, no documents, no books. Thanks
1
vote
1answer
29 views

How to align the equations to start from left

\begin{align*} (pq+p-3)^2-(3pq+p+q-6)(pq+p-3)+2(p^2q^2+p^2q+pq^2-7pq+p+q+2)\\ =(p^2q^2+p^2+9+2p^2q-6q-6pq)-(3p^2q^2+p^2q+pq^2-6pq+3p^6q+p^2+pq-6p-9pq-3p-3q+18)+2(p^2q^2+p^2q+pq^2-7pq+p+q+2)\\ =pq^2-...
4
votes
2answers
42 views

subequations: Equation numbering does not start with no. 1

The user egreg has posted a nice approach on how to increase equation numbers within subequations. Minimum Working Example (MWE): \documentclass{article} \usepackage{amsmath} \usepackage{mathtools} ...
2
votes
2answers
41 views

subequations: How to continue numbering while considering scrbook numbering scheme?

The user daleif has posted a nice approach on how to increase equation numbers when using subequations. Minimum Working Example (MWE): \documentclass{scrbook} \usepackage{amsmath} \newcommand\...
9
votes
1answer
276 views

subequations: How to continue numbering within subequation?

Let's assume we want to create one subequation including four aligned single equations. The first two single equations should be numbered as 1a and 1b while the third and fourth one should continue ...
2
votes
1answer
34 views

How to make a system of equations with a number after every line and a tall curly brace on the left [duplicate]

So, i have this code: \begin{align} S(t+\Delta) &= S(t)-\beta S(t)I(t)\Delta + \phi R(t) \Delta \label{S}\\ I(t+\Delta) &= I(t) + \beta S(t)I(t) \Delta - \gamma I(t) \Delta \label{I}\\ R(t+\...
1
vote
1answer
30 views

What is wrong in the following latex math code?

$$ \left. \begin{array}{c} \frac{NR}{K}=50\\ 0<R\leqslant 35\\ NR\geqslant 65\\ N>0\\ K=24\\ NR\geqslant \text{600 }\left( an\,\,initial\,\,guess \right)\\ \end{array} \...
0
votes
1answer
24 views

inconsistent Vertical Spacing between equation and text

I have some problems in spacing. I just want to put equations in the text. What I found is that the vertical spacing between the equation and text is not consistent. Some is large and some is small. ...
4
votes
2answers
81 views

Multiple labels for a single equation

I have an equation that looks like y=4x \text{ for } x\in \{1,2\} and would like to label it equation (1-2) so that the next equation in the paper is automatically labeled equation (3). How can I ...
2
votes
3answers
94 views

Showing Factorising via Tikz

Im trying to show how to factorise equations on latex Im using the following code. However, I want to the nodes coming from the 8x to be above the 4x's not the centre of the function and I dont want a ...
1
vote
1answer
85 views

change equation color

\documentclass[10pt,landscape,a4paper,svgnames,x11names]{article} \usepackage[utf8]{inputenc} \usepackage[ngerman]{babel} \usepackage[utopia,sfscaled]{mathdesign} \usepackage{amsmath} \everymath{\...
1
vote
1answer
33 views

Latex repeat equation numbering (unwanted)

I'm using the equation environment in my latex document. All went ok until half a chapter when I find the two equation have the same equation number (3.44). Why could this happens? Moreover, from that ...
2
votes
1answer
29 views

Custom eqref with letter

On a specific equation, how can I customize the equation environment/referencing, such that The equation is numbered by as custom acronym, say "(NEW)" (instead of a squentially generated number, such ...
2
votes
1answer
71 views

Express mathematically that a vector has an element greater zero [closed]

This might not only be related to latex, but I'm struggling to find a way of expressing a condition which is if a vector contains at least one element that is greater than zero. Currently I have this,...