Using large or 'big' parentheses

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

This discussion focuses on using large parentheses in LaTeX expressions, specifically through the commands \left and \right, as well as \bigl, \Bigl, \biggl, and \Biggl for manual sizing. Users shared examples demonstrating how to properly format expressions like $$ f(g(x)) $$ and how to achieve larger parentheses around nested functions. Additionally, the correct method for rendering large curly braces using \Biggl\{ and \Biggr\} was clarified, emphasizing the need to escape the brackets with a backslash.

PREREQUISITES
  • Familiarity with LaTeX syntax and commands
  • Understanding of mathematical expressions and notation
  • Knowledge of how to use LaTeX environments for formatting
  • Basic experience with rendering mathematical symbols in LaTeX
NEXT STEPS
  • Explore advanced LaTeX formatting techniques for mathematical expressions
  • Learn about LaTeX environments such as align and gather for better layout control
  • Research the use of escape characters in LaTeX for special symbols
  • Investigate the differences between \left/\right and \big/\Big commands in LaTeX
USEFUL FOR

Mathematicians, educators, students, and anyone involved in typesetting complex mathematical documents using LaTeX.

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
2K
  • · 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
5K
  • · Replies 4 ·
Replies
4
Views
841
Replies
5
Views
4K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 4 ·
Replies
4
Views
2K