I am confused by the fact that on Wolfram Alpha x(2)/x(2) = 1 but 2(x)/2(x) = x^2. Could someone explain what rules are being used here?
Asked
Active
Viewed 359 times
0
Chris_F
- 175
1 Answers
2
It's probably interpreting the first as $\frac{x(2)}{x(2)}$ and the second as $2\frac{(x)}{2}(x)$.
Note that things like $\rm letter(number)$ often refer to evaluating functions, not multiplication. This is why it won't necessarily split the $x$ and the $2$ in the expression $x(2)$ from each other.
Edit: in fact W|A even tells you this is how it's interpreting your input:

anon
- 151,657
xis a function or variable does not seem like it would be relevant here. – Chris_F Aug 16 '14 at 07:32x(2)/x(2)as $\frac{x(2)}{x}2$, because you can't split the $x$ and the $2$ from each other! – anon Aug 16 '14 at 07:33xso it should know already thatx(2)is the same as2(x). – Chris_F Aug 16 '14 at 07:35xcould be defined, but one was not. If it had been, then it truly would have been ambiguous and Wolfram would not be able to interpret the input. – Chris_F Aug 16 '14 at 07:39x(2)/x(2)and not an error to the effect of "no function by the name of x" means that W|A knows full well thatxis a variable being multiplied by juxtaposition, not a function, so why would it treat it differently? – Chris_F Aug 16 '14 at 07:43x(2)/x(2)with the letters/numbers ordered as it is to automagically determine thatxis (most likely) a function. – anon Aug 16 '14 at 07:45funcx(2)/funcx(2). Based on what you've said, I would have expected it to yield an answer of1. – Chris_F Aug 16 '14 at 07:49x(2)/x(3)and see what you get. Does it cancel out thexs? Nope. If you type in(x*2)/(x*3)it does cancel out the $x$s. Because then it's clearly a variable. (Note if you type in(x2)/(x3)W|A automagically believes you forgot to type in^signs, so it interprets it as(x^2)/(x^3)! See how it makes assumptions and fills in the blanks for the user?) – anon Aug 16 '14 at 07:55