Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

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
add comment

1 Answer 1

up vote 7 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
5  
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
add comment

Your Answer

 
discard

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.