4

How could I arrange this equation with bigger boundaries, similar to the example in picture below?

enter image description here

What I've tried:

\[\begin{split}\max_{\{W^{*}_{h,t}\}}E_{t}\sum_{s=0}^{\infty}(\xi_w \beta)^s\Biggl[\phi_{t+s}(1-\tau^w_{t+s})\mu^s_t\Pi^s_t                             W^{\star}_{h,t}\Biggl(\frac{\mu^s_t\Pi^s_t W^{\star}_{h,t}}{W_{t+s}}\biggr)^{\frac{\lambda_{w,t+s}}{1-\lambda_{w,t+s}}}H_ {t+s}\\%-\frac{\zeta^L_{t+s}}{1+\sigma_l}\Biggl(\biggl(\frac{\mu^s_t\Pi^s_t W^{\star}_{h,t+s}}{W_{t+s}}\biggr)^{\frac{\lambda_{w,t+s}}{1-\lambda_{w,t+s}}}H_{t+s}\Biggr)^{1+\sigma_l}\Biggr]\end{split}\]

But I am getting:

enter image description here

4 Answers 4

4
\documentclass{article}

\usepackage{amsmath}

\begin{document}
\[
  \max_{\{W^{*}_{h,t}\}}E_{t}\sum_{s=0}^{\infty}(\xi_w \beta)^s\left[
    \begin{array}{c}
      \phi_{t+s}(1-\tau^w_{t+s})\mu^s_t\Pi^s_t W^{\star}_{h,t}\Biggl(\frac{\mu^s_t\Pi^s_t
      W^{\star}_{h,t}}{W_{t+s}}\biggr)^{\frac{\lambda_{w,t+s}}{1-\lambda_{w,t+s}}}H_ {t+s}
    \\
      -\frac{\zeta^L_{t+s}}{1+\sigma_l}\Biggl(\biggl(\frac{\mu^s_t\Pi^s_t
      W^{\star}_{h,t+s}}{W_{t+s}}\biggr)^{\frac{\lambda_{w,t+s}}{1-\lambda_{w,t+s}}}H_{t+s}\Biggr)^{1+\sigma_l}
    \end{array}
    \right]
\]

\end{document}

enter image description here

0
3

enter image description here

Instead split use multlined inside \left[ ...\right].

\documentclass{article}
\usepackage{mathtools}

\begin{document}
\[
\max_{\{W^{*}_{h,t}\}}E_{t}\sum_{s=0}^{\infty}(\xi_w \beta)^s
    \left[\begin{multlined}[0.75\textwidth]
    \phi_{t+s}(1-\tau^w_{t+s})\mu^s_t\Pi^s_t W^{\star}_{h,t}
    \left(\frac{\mu^s_t\Pi^s_t W^{\star}_{h,t}}{W_{t+s}}
    \right)^{\frac{\lambda_{w,t+s}}{1-\lambda_{w,t+s}}}H_ {t+s}\\[1ex]
%
    -\frac{\zeta^L_{t+s}}{1+\sigma_l}
    \left(\left(\frac{\mu^s_t\Pi^s_t W^{\star}_{h,t+s}}{W_{t+s}}
    \right)^{\frac{\lambda_{w,t+s}}{1-\lambda_{w,t+s}}}
        H_{t+s}\right)^{1+\sigma_l}
    \end{multlined}\right]
\]
\end{document}
3

You can use a code from mathtools to define paired delimiters which can break across lines. I called the command\brbracket. The starred version adds an implicit \left … \right pair.

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{mathtools}
\usepackage{lmodern}

\newcommand\MTkillspecial[1]{% helper macro
\bgroup
\catcode`\&=9
\let\\\relax%
\scantokens{#1}%
\egroup
}

\DeclarePairedDelimiter\brbracket \lbrack \rbrack
\reDeclarePairedDelimiterInnerWrapper\brbracket{star}{
\mathopen{#1\vphantom{\MTkillspecial{#2}}\kern-\nulldelimiterspace\right.}
#2
\mathclose{\left.\kern-\nulldelimiterspace\vphantom{\MTkillspecial{#2}}#3}}

\begin{document}

 \[ \begin{split}\max_{\{W^{*}_{h,t}\}}E_{t}\sum_{s=0}^{\infty}(\xi_w \beta)^s\brbracket*{\phi_{t+s}(1-\tau^w_{t+s})\mu^s_t\Pi^s_t W^{\star}_{h,t}\Biggl(\frac{\mu^s_t\Pi^s_t W^{\star}_{h,t}}{W_{t+s}}\biggr)^{\frac{\lambda_{w,t+s}}{1-\lambda_{w,t+s}}}H_ {t+s} & \\-\frac{\zeta^L_{t+s}}{1+\sigma_l}\Biggl(\biggl(\frac{\mu^s_t\Pi^s_t W^{\star}_{h,t+s}}{W_{t+s}}\biggr)^{\frac{\lambda_{w,t+s}}{1-\lambda_{w,t+s}}}H_{t+s}\Biggr)^{1+\sigma_l} & }\end{split}\]

\end{document} 

enter image description here

0
3

I think what you're looking for is either a 2-line multline* environment or a 2-row bmatrix environment -- the screenshot you posted and the code you wrote up leave some ambiguity as to what's correct.

enter image description here

\documentclass{article}
\usepackage{amsmath}
% define macros for some recurring items
\newcommand\terma{\mu^s_t\Pi^s_t W^{\star}_{\!h,t}}
\newcommand\termb{\frac{\lambda_{w,t+s}}{1-\lambda_{w,t+s}}}
\newcommand\termc{\biggl(\frac{\terma}{W_{t+s}}
   \biggr)^{\!\!\termb}H_{t+s}}

\begin{document} 
\begin{multline*}
\max_{\{W^{*}_{\!h,t}\}} E_{t} \sum_{s=0}^{\infty}(\xi_w \beta)^s
\left[\phi_{t+s}(1-\tau^w_{t+s}) \terma\termc \right.\\
\left.{} -\frac{\zeta^L_{t+s}}{1+\sigma_l} \Biggl(\termc\Biggr)^{\!\!1+\sigma_l}\right]
\end{multline*}
\[
\max_{\{W^{*}_{\!h,t}\}} E_{t} \sum_{s=0}^{\infty}(\xi_w \beta)^s
\begin{bmatrix}
\displaystyle
\phi_{t+s}(1-\tau^w_{t+s}) \terma\termc \\[3ex]
\displaystyle
-\frac{\zeta^L_{t+s}}{1+\sigma_l} \Biggl(\termc\Biggr)^{\!\!1+\sigma_l}
\end{bmatrix}
\]
\end{document}
3
  • @haithem - Glad I gave you some options. :-)
    – Mico
    Commented Dec 31, 2016 at 21:45
  • My compliments for your work and happy new year.
    – Sebastiano
    Commented Dec 31, 2016 at 22:32
  • @Sebastiano - Thanks so much! Happy New Year to you too!!
    – Mico
    Commented Dec 31, 2016 at 22:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .