带括号的多行方程式的错误

带括号的多行方程式的错误

我正在为超出边缘的方程式运行此代码:

\begin{eqnarray}
        N(t,x) &=& \inf_{u_{I+1} \in [-u_{I+1}, w_{I+1}], T_{I+1} \in \Real_+} \left\{ \inf_{u_I \in [-u_I, w_I], T_I \in \Real_+} \left\{ c(t - T_I-T_{I+1}, x + T_Iu_I+T_{I+1}u_{I+1})\\          
        &+& T_I\varphi_I(u_I) + T_{I+1}\varphi_{I+1}(u_{I+1}) \right\} \right\} \nonumber
\end{eqnarray}

这使:

在此处输入图片描述

我不断收到无数错误:

Extra }, or forgotten \right. &
Missing \right. inserted. &
Missing \right. inserted. &
Missing } inserted. &
Missing } inserted. ..._I) + T_{I+1}\varphi_{I+1}(u_{I+1}) \right
Extra \right. ...) + T_{I+1}\varphi_{I+1}(u_{I+1}) \right\}
Extra \right. ...1}\varphi_{I+1}(u_{I+1}) \right\} \right\}
Incomplete \ifcase; all text was ignored after line 64. \end{eqnarray}
Missing $ inserted. \end{eqnarray}
Extra alignment tab has been changed to \cr. \end{eqnarray}
Extra \or. \end{eqnarray}
Extra \or. \end{eqnarray}
Forbidden control sequence found while scanning definition of \reserved@a. \end{eqnarray}
Extra alignment tab has been changed to \cr. \end{eqnarray}
Extra \else. \end{eqnarray}
Missing $$ inserted. \end{eqnarray}
Too many columns in eqnarray environment. \end{eqnarray}
Extra \fi. \end{eqnarray}

我不确定如何将双括号延伸到两行。

答案1

这或多或少能起到作用,但是第一行太长了:

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{eqnarray}
        N(t,x) &=& \inf_{u_{I+1} \in [-u_{I+1}, w_{I+1}], T_{I+1} \in \mathbf{R}_+} \left\{ \inf_{u_I \in [-u_I, w_I], T_I \in \mathbf{R}_+} \left\{ c(t - T_I-T_{I+1}, x + T_Iu_I+T_{I+1}u_{I+1})\right.\right.\\          
        &+& \left.\left.\vphantom{\inf_{u_I \in [-u_I, w_I], T_I \in \mathbf{R}_+}}T_I\varphi_I(u_I) + T_{I+1}\varphi_{I+1}(u_{I+1}) \right\} \right\} \nonumber
\end{eqnarray}
\end{document}

你将得到这个:

在此处输入图片描述

顺便说一句,我敦促你使用align而不是eqnarray

答案2

geometry\substack+环境的另一种可能性aligned

\documentclass{article}
\usepackage{mathtools}
\usepackage{geometry}

\begin{document}

    \begin{equation}%
    N(t,x) = \inf_{\substack{u_{I+1} \in [-u_{I+1}, w_{I+1}],\\ T_{I+1} \in \mathbf{R}_+}} \Biggl\{ \inf_{\substack{u_I \in [-u_I, w_I],\\ T_I \in \mathbf{R}_+}} \Biggl\{\begin{aligned} c(t - T_I-T_{I+1}, x + T_Iu_I+T_{I+1}u_{I+1})\\
        {}+ T_I\varphi_I(u_I) + T_{I+1}\varphi_{I+1}(u_{I+1})
        \end{aligned} \Biggr\} \Biggr\}%
     \end{equation}

\end{document} 

在此处输入图片描述

答案3

一个很好的@Bernard 答案的变体,用于multlined等式的右侧和\left\{\right\}括号:

\documentclass{article}
\usepackage{mathtools}
\usepackage{geometry}

\begin{document}
    \begin{equation}%
N(t,x) = \inf_{\substack{u_{I+1} \in [-u_{I+1}, w_{I+1}],\\ T_{I+1} \in \mathbf{R}_+}}
            \left\{ \inf_{\substack{u_I \in [-u_I, w_I],\\ T_I \in \mathbf{R}_+}} \Biggl\{\begin{multlined} 
                    c(t - T_I-T_{I+1}, x + T_Iu_I+T_{I+1}u_{I+1})\\
                    {}+ T_I\varphi_I(u_I) + T_{I+1}\varphi_{I+1}(u_{I+1})
                    \end{multlined} \Biggr\} 
            \right\}
     \end{equation}
\end{document}

在此处输入图片描述

相关内容