Using large or 'big' parentheses

  • Context: MHB 
  • Thread starter Thread starter Math Amateur
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around the use of large or 'big' parentheses in LaTeX expressions, particularly in complex mathematical contexts. Participants explore various commands and techniques for achieving the desired size of parentheses and other brackets in their LaTeX code.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • Some participants suggest using the \left and \right commands to create large parentheses, but express that these commands only adjust the height to match the enclosed expressions.
  • Others propose using manual size commands like \bigl, \Bigl, \biggl, and \Biggl for more control over the size of parentheses.
  • There are mentions of spacing issues when using \left and \right with exponents, with suggestions to use \! to adjust spacing.
  • Some participants note advantages of using the big commands over left and right commands, particularly in specific environments like align.
  • Participants inquire about obtaining large curly braces, with some providing solutions involving escape characters.

Areas of Agreement / Disagreement

There is no consensus on the best method for achieving large parentheses, as participants present various techniques and preferences. The discussion remains unresolved regarding the optimal approach for different scenarios.

Contextual Notes

Participants express uncertainty about the effectiveness of certain commands and the appearance of the output, indicating that results may vary based on specific use cases.

Math Amateur
Gold Member
MHB
Messages
3,920
Reaction score
48
In some expressions like $$ f(g(x)) $$ , especially complex ones, it may be helpful to use large or 'big' parentheses ... for example for the first and last parentheses in the given expression above.

Can someone help with the correct Latex for this?

Peter
 
Physics news on Phys.org
I use the \left and \right commands. For example the code:

\left(\frac{x^2}{3y^2-2} \right)^2

produces:

$$\left(\frac{x^2}{3y^2-2} \right)^2$$

You can use them with other brackets (right-click to see the codes used)

$$\left\lfloor \frac{\sqrt{x}}{2} \right\rfloor$$

$$\left.\frac{dy}{dx} \right|_{x=3}$$

$$\left\langle \cos^2(t),\sin(t)-\frac{t}{3} \right\rangle$$
 
MarkFL said:
I use the \left and \right commands. For example the code:

\left(\frac{x^2}{3y^2-2} \right)^2

produces:

$$\left(\frac{x^2}{3y^2-2} \right)^2$$

You can use them with other brackets (right-click to see the codes used)

$$\left\lfloor \frac{\sqrt{x}}{2} \right\rfloor$$

$$\left.\frac{dy}{dx} \right|_{x=3}$$

$$\left\langle \cos^2(t),\sin(t)-\frac{t}{3} \right\rangle$$

Thanks Mark, appreciate the help ...

I tried

f \left( g(x) \right)

and got

$$ f \left( g(x) \right) $$

but I wanted the parentheses around the g(x) to be larger ... in some cases I would want them considerably larger ... than the parentheses around the x - which, alas, as you can see did not happen

Can you help further ... what am I missing?
 
Peter said:
I tried

f \left( g(x) \right)

and got

$$ f \left( g(x) \right) $$

but I wanted the parentheses around the g(x) to be larger ... in some cases I would want them considerably larger ... than the parentheses around the x - which, alas, as you can see did not happen

Can you help further ... what am I missing?
You can specify the size manually if you do not like the results given by \left and \right. The commands (for increasing sizes) are \bigl, \Bigl, \biggl and \Biggl, with corresponding commands on the right (\bigr etc.). The results (starting with a regular size parenthesis) look like $(\ \bigl( \ \Bigl( \ \biggl( \ \Biggl($.

I always use the \bigl and \bigr commands for expressions like the one you want: $f\bigl(g(x)\bigr).$
 
Opalg said:
You can specify the size manually if you do not like the results given by \left and \right. The commands (for increasing sizes) are \bigl, \Bigl, \biggl and \Biggl, with corresponding commands on the right (\bigr etc.). The results (starting with a regular size parenthesis) look like $(\ \bigl( \ \Bigl( \ \biggl( \ \Biggl($.

I always use the \bigl and \bigr commands for expressions like the one you want: $f\bigl(g(x)\bigr).$
Thanks Opalg ... Most helpful

Peter
 
Peter said:
Thanks Mark, appreciate the help ...

I tried

f \left( g(x) \right)

and got

$$ f \left( g(x) \right) $$

but I wanted the parentheses around the g(x) to be larger ... in some cases I would want them considerably larger ... than the parentheses around the x - which, alas, as you can see did not happen

Can you help further ... what am I missing?

The left and right commands only make the bracketing symbols as "tall" as the expressions they are enclosing...but I also learned some new commands from Opalg. (Yes)
 
Also just a note about \left and \right: I find that when combined with exponents, $\LaTeX$ tends to put it too far to the right. So you can use two \! commands to reduce that spacing. Compare
$$\left( \frac{45}{x-3} \right)^{2} \quad \text{with} \quad \left( \frac{45}{x-3} \right)^{ \! \!2} \quad \text{or even, with one \!, } \left( \frac{45}{x-3} \right)^{ \! 2}.$$
 
There are a few more advantages of the big over left and right.
  1. If you want to have just a right, you have to \left. and then \right| whereas with big you can just do \big|
  2. If you are using an align environment, and you want a \left one side of the ampersand =, you need to then do a phantom to have equal hieght spacing on the right sides and you need \right. and a \left. Again, the use of \big( doesn't cause this issue
 
dwsmith said:
There are a few more advantages of the big over left and right.
  1. If you want to have just a right, you have to \left. and then \right| whereas with big you can just do \big|
  2. If you are using an align environment, and you want a \left one side of the ampersand =, you need to then do a phantom to have equal hieght spacing on the right sides and you need \right. and a \left. Again, the use of \big( doesn't cause this issue

Can someone help me with the Latex code to obtain a large { and a large }?

I have tried the following but it does not seem to work:\Biggl{ \Biggr}Help would be appreciated.

Peter
 
  • #10
Peter said:
Can someone help me with the Latex code to obtain a large { and a large }?

I have tried the following but it does not seem to work:\Biggl{ \Biggr}Help would be appreciated.

Peter

You need to "escape" the brackets by preceding them with a backslash:

\Biggl\{ \Biggr\}

produces:

$$\Biggl\{ \Biggr\}$$
 
  • #11
Peter said:
Can someone help me with the Latex code to obtain a large { and a large }?

I have tried the following but it does not seem to work:\Biggl{ \Biggr}Help would be appreciated.

Peter

What you are trying to do is render an escape character. The escape characters are: \ % $ { & # ~ ^. These render with \%, \$, \{, \&, \#. You can render \ with either \_ or \textbackslash. ~ can be render with \sim or \textasciitilde. Lastly, ^ is rendered with \textasciicircum
 
Last edited:

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 3 ·
Replies
3
Views
8K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 9 ·
Replies
9
Views
6K
  • · Replies 4 ·
Replies
4
Views
4K
Replies
5
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K