Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

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

I have been trying to find an integral that wolfapha would not compute an answer and I have finaly found out.

My problem I don't know how to solve it.

$$\int \frac{\mathrm{d}x}{x+\sqrt{-x^2}}$$

Some help would be greatly liked.

share|cite|improve this question
On the real line, what the software could do when the value under the square root was always negative? – Babak S. Dec 20 '12 at 5:16
Regarding your initial question about finding a function which WA cannot integrate. Did you try, e.g., the function $ \exp(\sin x^2)$ – Fabian Dec 20 '12 at 6:30
@BabakSorouh I really have no idea of exactly what you are saying, I am studying calculus. – yiyi Dec 20 '12 at 7:22
@MaoYiyi: I was noting exactly what Ross pointed in a complete way below. ;-) – Babak S. Dec 20 '12 at 7:25
up vote 2 down vote accepted

The most sensible interpretation of the problem I can find is to take $\sqrt {-x^2}$ as $\sqrt {(-x)^2}=|x|$ though I think the usual interpretation applies the $-$ after the square and would get $\sqrt{-(x^2)}$ and claim the square root is invalid. Accepting the first, you have $\int \frac {dx}{2x}$ which you can probably solve easily.

share|cite|improve this answer
Why not $\int \frac{1}{(1+i\, \text{sgn}\,x)} \frac{dx}{x}$? – copper.hat Dec 20 '12 at 6:17
@copper.hat: also a nice choice. I think one should point out to the OP that this ambiguity is exactly the reason which hinders Mathematica from evaluating the integral... – Fabian Dec 20 '12 at 6:19
@copper.hat: this looks like a real problem to me, mostly as the variable is $x$ instead of $z$. You are free to propose that solution. – Ross Millikan Dec 20 '12 at 6:19
Then I think I would go with your invalid claim? – copper.hat Dec 20 '12 at 6:22
@copper.hat: that is my approach. I think getting answers in both fields may help OP or others with this question. – Ross Millikan Dec 20 '12 at 6:25

I would interpret the integral as either $\int \frac{1}{(1+i\, \text{sgn}\,x)} \frac{dx}{x}$, or invalid as in Ross' answer.

share|cite|improve this answer

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.