MHB Using large or 'big' parentheses

  • Thread starter Thread starter Math Amateur
  • Start date Start date
AI Thread Summary
Using large parentheses in LaTeX can enhance the clarity of complex expressions. The commands \left and \right adjust the size of parentheses based on the enclosed content, but for more control, commands like \bigl, \Bigl, \biggl, and \Biggl can be used to specify sizes manually. When combining these with exponents, additional spacing adjustments may be necessary using the \! command to prevent excessive rightward displacement. For curly braces, the correct syntax requires escaping them with a backslash, using \Biggl\{ and \Biggr\}. Proper use of these commands can significantly improve the presentation of mathematical expressions in 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
Views
2K
Replies
5
Views
3K
Replies
3
Views
8K
Replies
4
Views
3K
Replies
3
Views
2K
Replies
4
Views
2K
Back
Top