This question already has an answer here:

Is there any difference between




apart of the fact that \DeclareMathOperator is defined in amsmath package?

marked as duplicate by GuM, Zarko, Mico, Jesse, Steven B. Segletes Jan 7 '17 at 4:33

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • I’m afraid I don’t understand: \mathop is a TeX primitive and does not define a new command/macro. In any case, note that \DeclareMathOperator defines robust commands, and that it has a *-form for managing the behavior of the newly defined operator wrt. “limits”. – GuM Jan 7 '17 at 2:54
  • 1
    Also, the "Related" is showing mathop shifts the baseline, DeclareMathOperator doesn't. – Teepeemm Jan 7 '17 at 2:56
  • @Teepeemm: Thank you for providing the reference to a very similar question. I have got enough reputation to vote to mark the question as a duplicate, as you suggest. – GuM Jan 7 '17 at 3:01