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.

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

Useful references for LaTeX users are Herbert Voß' Math mode and (if this recommended package is used) the amsmath user's guide.

6098 questions
139
votes
6 answers

How to write partial differential equation (Ex. dQ/dt=ds/dt) with real partial derivative signs?

I would like to make a partial differential equation by using the following notation: dQ/dt (without / but with a real numerator and denomenator). Earlier today I got help from this page on how to u_t, but now I also have to write it like dQ/dt. I…
David
  • 1,711
84
votes
4 answers

add vertical space between equations

I am using the following code to combine two equations with one number in parentheses but the two equations are very close to each other and using '\vspace{} not working How can i add a vertical space between these two equations ? \begin{equation} …
53
votes
1 answer

Gather vs aligned - centered equation with one number

What is the way to achieve something between gather and aligned? \documentclass[12pt]{article} \usepackage{amsmath} \usepackage{amssymb} \usepackage[utf8]{inputenc} \begin{document} \begin{gather} 3(a-x) = 3.5x + a - 1 \\ 3a - 3x = 3.5x + a…
43
votes
1 answer

How to decrease space above and below displayed equations

This is my code. \documentclass{article} \usepackage{amssymb,amsmath,amsthm,enumitem} \begin{document} How can I decrease vertical space between text above and below \$\$ \ldots \$\$ ? $$x^{2}+y^{2} = 1$$ How can I decrease vertical space between…
Mr.Lilly
  • 533
43
votes
1 answer

Multiline equation without number

I am trying to have a multiline equation without any numbering, even not in the last one. \begin{align} a = x \nonumber \\ b = y \end{align} However, this is producing a line number in the last line, which would like not to happen. I have also…
nunos
  • 1,019
39
votes
2 answers

Left/Right across multi-line equation

I have a multi-line equation that I want to have matching sized parentheses. The advice I read online was to use \left( equation \right. \\ left. rest-of-equation \right) . However, this syntax leaves first half of the equation unaware of what is in…
crasic
  • 1,606
34
votes
1 answer

How would one have an expression for an exponent?

How can I write 2^((n-1)/3) or anything similar in LaTeX? I am new to the whole thing, but I tried giving it a shot and it doesn't look the way I want it too. It looks like I am taking the 2 to the power of parenthesis, which is silly.
Ishmael
  • 443
  • 1
  • 4
  • 5
32
votes
3 answers

Which one should I use: \begin{align} or \begin{aligned}?

Which one should I use: \begin{align} or \begin{aligned}?
Display Name
  • 46,933
30
votes
1 answer

Multiline \text in an equation

There are a number of possibilities to have multiline equations, but I am looking for multiline \text{...} elements. For example: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} a^3 + b^3 \neq c^3 \text{ I have…
quazgar
  • 1,273
23
votes
6 answers

Is there a way to format the equation like this?

My friend is taking pre-calculus class, and I would like to create some notes for him. Is there a way I can do the following in latex? Right now I only have the very basic down. I want to make it look nicer and more personal. (The color can stay…
George
  • 333
22
votes
3 answers

Optimization formulas in LaTeX

This is the code I'm using for my optimization problem. \begin{equation} \begin{array}{rrclcl} \displaystyle \min_{w,b,\xi} & \multicolumn{3}{l}{\frac{1}{2}w^{t}w+C\sum_{i=1}^{N}{\xi_{i}}}\\ \textrm{s.t.} &…
21
votes
1 answer

LaTex Error: Environment equation* undefined

I am trying to work on a Poisson problem (BVP) which looks like the pic above. However, when I executed my codes as below, the compiler showed that "LaTex Error: Environment equation* undefined." I don't know…
18
votes
2 answers

How do I show the equation formula again instead of its number of ref?

I have an equation: \begin{equation}\label{eq:equation} f(x)=x \end{equation} I would like to refer to this equation and show the whole formula again, and not only its number. In other words, I wanna get $f(x)=x$ instead of \eqref{eq:equation}. How…
Diogo
  • 407
18
votes
2 answers

what's a replacement for \lefteqn in the align environment?

I would like to avoid the use of eqnarray. I would like to use the align environment instead. However, I have an equation that I specify currently the following way: \begin{eqnarray} \lefteqn{f(a,b,c,d,e,...)} \\ & = & A \end{eqnarray} as you can…
kloop
  • 9,684
17
votes
3 answers

Writing steps in an equation

What is the "best LaTeX practices" for writing equations with multiple steps? Feel free to recommend packages that might help. Do these methods work just as well within an enumeration? Here is what I currently…
jamaicanworm
  • 29,114
1
2 3
51 52