How do I write this formula in latex?
enter image description here

I tried this:


enter image description here

but the result is different from what I want (the line is shorter).

I understand that this is probably a simple question but I can't find the answer probably because I can't find good words for the search

  • 2
    – user241266
    May 5, 2021 at 1:34
  • @user241266 thanks! It's what I want May 5, 2021 at 1:38
  • For a pretty exhaustive discussion, also see tex.stackexchange.com/q/294499/158639 .
    – chsk
    May 5, 2021 at 7:32

2 Answers 2


As posted in comments by user241266, the correct thing to do is


You probably want something like





enter image description here

You must log in to answer this question.

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