Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I enter a LaTeX integral into Mathematica? For example, I evaluated the expression

ToExpression["\int 2*x\[DifferentialD]x ", TeXForm]

but Mathematica told me that this is wrong.

share|improve this question
up vote 8 down vote accepted

Looking at

TeXForm[Integrate[f[x], x]]

We see that integrals can be entered like:

ToExpression["\int f(x) \, dx", TeXForm]
(* \[Integral]f[x]\[DifferentialD]x *)
share|improve this answer
This can be done a little more directly with TeXForm @ HoldForm @ Integrate[2 x, x], which gives \int 2 x \, dx – m_goldberg Oct 11 '13 at 0:04

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.