I tried to use vphantom{...} and overleaf does not take breaqn package, so I still have the question:
I have the following formula, but I get an error with it that I can't fix. What is wrong here really?
\begin{equation}
\begin{split}
\psi(x)=\sum_{j=1}^l\sum_{v=0}^{m_j-1}U_v(x,\mu)V_{m_j-1-v}(\psi,\mu)\left|_{\mu=\mu_j}\\
+\int_{-\infty}^{\infty}\frac{\sqrt{\mu}}{\pi\alpha(\sqrt{\mu})\alpha(-\sqrt{\mu})}\left\{e^+(x,\sqrt{\mu})e^+(\psi,-\sqrt{\mu})\\+e^-(x,\sqrt{\mu})e^-(\psi,\sqrt{-\mu})\right\}d\mu
\end{split}
\end{equation}
The preamble is:
\documentclass{article}
\usepackage{hyperref}
\usepackage{amssymb}
\usepackage{MnSymbol}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\newcommand{\norm}[1]{\left\lVert#1\right\rVert}
\newcommand{\R}{\mathbb{R}}
\newcommand{\C}{\mathbb{C}}
\newcommand\Setst[3][big]{\csname #1l\endcsname\{ #2 :
\begin{array}[t]{@{}l@{}}#3\csname #1r\endcsname \}\end{array}}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage{mathtools}
\usepackage[mathscr]{euscript}
\usepackage{mathrsfs}
\usepackage{yfonts}
\usepackage{setspace}
\doublespacing
\usepackage{imakeidx}
\makeindex[columns=1, title=Alphabetical Index]
\newcommand{\footremember}[2]{%
\footnote{#2}
\newcounter{#1}
\setcounter{#1}{\value{footnote}}%
}
\newcommand{\footrecall}[1]{%
\footnotemark[\value{#1}]%
and the comment by overleaf is:
Extra }, or forgotten \right.
Missing \right. inserted.
Missing } inserted.
Extra \right.
Missing { inserted.
Thanks
\leftand\righton different lines. Use manual sizing:\biggl\{,\biggr\}and so on. – campa Mar 11 '20 at 11:25\left...\rightcannot span rows, so it is better to manually case. You are mentioning\vphantomwhich leads me to think you are trying to do open ended\left...\rightin which case you need\dots\right.(note the dot) and\left. \dots(note the dot) – daleif Mar 11 '20 at 11:29\biggl |and\bigl\{...\bigr\}will work, presumably if you got an error then you made an error but we can not help with that if you just repost a fragment we can not run, that uses\left..\right– David Carlisle Mar 11 '20 at 12:04\bigl\{and\bigr\}rather than\leftand\right, and do not say "it does not work" give the exact error message that you get, – David Carlisle Mar 11 '20 at 12:28breqnbut you have mis-spelled it above as breakn (but I wouldn't use breqn here) – David Carlisle Mar 11 '20 at 12:29