In 1977, famed computer scientist Donald Knuth decided he didn’t like the typesetting of the second edition of *The Art of Computer Programming*. Rather than unhappily accept the results of photographic typesetting techniques, Knuth invented his own digital typesetting solution, TeX, which would eventually become the standard typesetting system for mathematical and academic content. Wikipedia displays math content using a variant of TeX, and research papers from a large range of fields are very commonly submitted in TeX format.

Our team recently added the ability to understand TeX notation and convert it to the *Mathematica* form used by the powerful Wolfram|Alpha engine. We’ve received many requests for this functionality from people who use Wolfram|Alpha for advanced math and physics. It’s often easy and natural to write mathematics using TeX, whereas it can otherwise be quite difficult to express clearly in plaintext notation.

The beauty of this new capability is that one can now see, compute, and understand typeset mathematics all through the union of TeX notation and Wolfram|Alpha computation. Complicated expressions are now easily represented using the elegance of TeX:

You can use it with full-fledged TeX notation, for example, to get a sense of Gauss’ famous formula for the sum of the first *n* integers:

Or just incorporate parts to help write characters that are not so easy to represent, and, for instance, check that the square root of two really is irrational:

While this new functionality is definitely *not* a reimplementation of TeX (e.g., programming constructs like “def” et al. aren’t supported), it should allow math-like things to work. And when in doubt, use braces.

If you find other interesting things to fix or add, please let us know in the comment box below, but we can’t promise that we’ll send you a reward check!

This post was written by Buddy Ritchie and Greg Thole.

It’s been very hard to search on the internet for a specific formula or a particular pattern for math expressions, even Google is not doing very well on this issue now. I’ve been wondering maybe WolframAlpha can design a “math expression search engine” and search every webpage on the internet for that specific expression we want. Thanks.

Great for TeX programmers who is not famiiar w/ Mathematica syntax

TeX output would be great, and it’s already in Mathematica!!

Awesome…

Now can you please change the iPhone app so the “\” key is not hidden… it’s a pain to “quickly” type in a TeX eq. in the app :-(

This is very useful, specially for people typing in the TeX.

A lot more people would probably try to copy and paste existing TeX formulas (from papers, webpages, applications, etc), but there are some problems:

\int_a^b \! f(x)\,dx \,

(copied from Wikipedia) gets interpreted as f(x), because of the spaces \! and \,

\sum_limits{i=0}^n i

becomes just {i=0}^n i (but works fine without \limit)

Unnecessary braces also seem to trip Alpha:

\sum_{{i=0}}^n i

again fails to be interpreted as the sum of i from 0 to n.

If Alpha could be made to just ignore TeX commands (like \limits, or spaces) that are used to improve the way a formula looks but have no mathematical meaning, then cut and paste from existing sources could become really useful and popular.

I agree with this. W|A seems to trip on

\cos\left(x ? \frac{3\pi}{4}\right)

but not on

\cos(x ? \frac{3\pi}{4})

If it just interpreted \leftx \righty as x and y, it would be that much easier for us. But overall, great new feature.

Fantastic work. Built environment professionals have to refer to a lot of guides, which can be super painstaking. CIBSE for instance, gives numeric values for pretty much every thing in the built environment (pipe sizes, air exchange rates, u-values etc). Just mull over it and try to see how you could use your engine to stop people like me having to flip through hundreds of pages a week. Big love!

D

Hi! This an excellent work. I had thought of that. Thanks.

Excellent addition, especially for those who works a lot with LaTeX, thanks!.

A great feature. Keep it going.

best,

R

Even better for people not familiar with TeX, would be an interface like the one provided in Mathcad where you write your expression exactly as you would write them on a piece of paper: You would just use the integral or the Sum symbol as inputs ( no possible error due to the translation from the math expression to the TeX expression, and so much better…)

Thank you! I was one of the folks who requested this functionality. Now I can typeset and evaluate equations in one pass. Absolutely wonderful.

Here’s a suggestion: add a “typset” or “save as” button that will give us the ability to save our equation in .pdf vector graphic format or high-res .jpeg. Then we could use Wolfram to quickly easily produce eqations for emails, papers, etc.

Thanks for that excellent work, a TeX output also wouldn’t hurt, does it?

You can now download results in TeX format with Wolfram|Alpha Pro. For more information, see

http://www.wolframalpha.com/pro/ and http://blog.wolframalpha.com/2012/02/08/announcing-wolframalpha-pro/. Thanks!

I got the pro version but still can’t find how to download the results in tex.

Adam, you should be able to hover over a pod with math results, click on “Data download”, and then choose the appropriate format.

It would be great if Wolfram|Alpha understood \intop as \int (they are the same symbol).

This is super convenient as I can just paste what I am working on into WA and get my answers or check my work instantly.

The only issue I have found is that two binomial coefficients next to other don’t implicitly multiply as I would expect.

`\binom{a}{b}\binom{c}{d}` causes WA to throw a fit, you have to add the multplication explicitly as `

\binom{a}{b}*\binom{c}{d}`. It’s not a big issue but it is an annoying step when copy-pasting.