0

This question already has an answer here:

I have a lengthy function that is messing up:

\begin{align*}
D(a,z) &= \frac{1}{\sqrt{\pi}}2^{\frac{a}{2}}e^{-\frac{z^2}{4}} \left(\cos \left(\frac{\pi a}{2}\right)\Upgamma \left(\frac{a+1}{2}\right) \ {_1F_1}\left(-\frac{a}{2};\frac{1}{2};\frac{z^2}{2}\right) \\
 &+ \sqrt{2}z\sin \left(\frac{\pi a}{2}\right)\Upgamma\left(\frac{a}{2}+1\right) \ {_1F_1}\left(\frac{1}{2}-\frac{a}{2};\frac{3}{2};\frac{z^2}{2}\right) \right)
\end{align*}

The last bracket \right) is not showing up. I think this is because I broke the lines in the middle at &+. Rather than splitting up the function into another set with the term right next to D(a,z)=, would it be possible to get this bracket working? I'm sure it would, I just don't know how.

Equation

Thanks!

marked as duplicate by Henri Menke, Zarko, siracusa, dexteritas, Stefan Pinnow Sep 26 '18 at 8:56

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

0

You can't pair left and right on two separate lines. Just use \left( … \right. and \left. … \right).

You can also use \Bigg

\documentclass{article}
\usepackage{amsmath}

\begin{document}

    With \verb|\left( … \right.| and \verb|\left. … \right)|
    \begin{align*}
    D(a,z) &= \frac{1}{\sqrt{\pi}}2^{\frac{a}{2}}e^{-\frac{z^2}{4}} \left(\cos \left(\frac{\pi a}{2}\right)\Gamma \left(\frac{a+1}{2}\right) \ {_1F_1}\left(-\frac{a}{2};\frac{1}{2};\frac{z^2}{2}\right)\right.\\
    &\left.+ \sqrt{2}z\sin \left(\frac{\pi a}{2}\right)\Gamma\left(\frac{a}{2}+1\right) \ {_1F_1}\left(\frac{1}{2}-\frac{a}{2};\frac{3}{2};\frac{z^2}{2}\right) \right)
    \end{align*}

    With \verb|\Biggl( …\Biggr)|
    \begin{align*}
    D(a,z) &= \frac{1}{\sqrt{\pi}}2^{\frac{a}{2}}e^{-\frac{z^2}{4}} \Biggl(\cos \left(\frac{\pi a}{2}\right)\Gamma \left(\frac{a+1}{2}\right) \ {_1F_1}\left(-\frac{a}{2};\frac{1}{2};\frac{z^2}{2}\right)\\
    &+ \sqrt{2}z\sin \left(\frac{\pi a}{2}\right)\Gamma\left(\frac{a}{2}+1\right) \ {_1F_1}\left(\frac{1}{2}-\frac{a}{2};\frac{3}{2};\frac{z^2}{2}\right) \Biggr)
    \end{align*}

\end{document}

I use \Gamma instead of \Upgamma

enter image description here

  • Using \left( ... \right. ... \left. ... \right) is generally not advisable as you'll easily end up with () of different sizes. Manual scaling is better. – daleif Sep 26 '18 at 8:27

Not the answer you're looking for? Browse other questions tagged or ask your own question.