I am trying to get this to display:

enter image description here

My current attempt is :

\frac{\dd{x_c^{*}(t,u)}}{\dd{u}}=\gamma + \alpha \lambda \{[r(t)-x(t,0)]\\
+ \frac{1}{1+\alpha\beta\lambda}[\frac{\dd{r(t)}}{\dd{t}}-\gamma]

I have defined a macro \dd above as (uses the physics package) :


I couldn't find how to display that vertical line next to the derivative ( just left of the = sign ) with u=0 on it. Everything else displays fine with my code.

  • 1
    A compilable example would be nice
    – user31729
    Commented Dec 15, 2015 at 16:07
  • @ChristianHupfer Done.
    – Karup
    Commented Dec 15, 2015 at 16:11
  • 1
    Well, the equation stuff is still only a fragment ;-)
    – user31729
    Commented Dec 15, 2015 at 16:18

2 Answers 2


One way is to use a fake \mleft. and \mright\vert mathematical delimiter pair.

There might be better ways.




 \mleft.\dfrac{\dd{x_c^{*}(t,u)}}{\dd{u}}\mright\vert_{u=0} &= \gamma + \alpha \lambda \mleft\{\mleft[r(t)-x(t,0)\mright] + \frac{1}{1+\alpha\beta\lambda}

enter image description here

  • No comments: I will update with a better way ;-)
    – user31729
    Commented Dec 15, 2015 at 16:11

Just thought I should present a better solution. You can use


in the amsmath package to create the vertical line.

You must log in to answer this question.

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