Wolfram Integrator Error, Am I Missing Something?

  • Thread starter Poopsilon
  • Start date
  • Tags
    Error
In summary: The indefinite integral is quite long ...You are hitting Wolfram Alpha in a weak point. It doesn't understand what you are going to do with the antiderivative. Your integral clearly goes to infinity as the upper limit of the definite integral goes to infinity. WA's indefinite integral doesn't. Because arctan is really multivalued unless you restrict the domain of tan. It gave you what is probably a valid antiderivative in a certain range of x. It's not valid on the whole range 0 to 1. I'll give it some points for getting the answer right when you told it the limits.So does that mean there is not one antiderivative for this function that works over any interval
  • #1
Poopsilon
294
1
So I put the function 1/(2*(cos(2*pi*x))^2+3*(sin(2*pi*x))^2) into the Wolfram indefinite integral calculator here: http://integrals.wolfram.com/index.jsp?expr=1%2F%282*%28cos%282*pi*x%29%29%5E2%2B3*%28sin%282*pi*x%29%29%5E2%29&random=false. And I get an antiderivative which when evaluated from 0 to 1 is clearly equal to 0.

Now I take the same function and put it into Wolfram's definite integral calculator evaluated from 0 to 1 here: http://www.wolframalpha.com/input/?i=integrate+1%2F%282*%28cos%282*pi*x%29%29%5E2%2B3*%28sin%282*pi*x%29%29%5E2%29+dx+from+x%3D0+to+1. And I get 1/sqrt(6), what is going on with this discrepancy, is Wolfram wrong, or am I missing something?
 
Physics news on Phys.org
  • #2
That's crazy. Did you take the derivative of the function the indefinite integral calculator gives you to make sure it was right?

Your function is always positive so it's clear that the answer of 0 is wrong
 
  • #3
I tried integrating your function using a TI-89, and I come up with a definite integral of (√6) / 6 when evaluated from 0 to 1.

The indefinite integral is quite long ...
 
  • #4
You are hitting Wolfram Alpha in a weak point. It doesn't understand what you are going to do with the antiderivative. Your integral clearly goes to infinity as the upper limit of the definite integral goes to infinity. WA's indefinite integral doesn't. Because arctan is really multivalued unless you restrict the domain of tan. It gave you what is probably a valid antiderivative in a certain range of x. It's not valid on the whole range 0 to 1. I'll give it some points for getting the answer right when you told it the limits.
 
  • #5
So does that mean there is not one antiderivative for this function that works over any interval, but actually a plurality of them depending on what range of x values you are interested in?

Although if that was the case I can't see how taking the derivative of all these different antiderivatives would give you the same function back.
 
  • #6
Poopsilon said:
So I put the function 1/(2*(cos(2*pi*x))^2+3*(sin(2*pi*x))^2) into the Wolfram indefinite integral calculator here: http://integrals.wolfram.com/index.jsp?expr=1%2F%282*%28cos%282*pi*x%29%29%5E2%2B3*%28sin%282*pi*x%29%29%5E2%29&random=false. And I get an antiderivative which when evaluated from 0 to 1 is clearly equal to 0.

Now I take the same function and put it into Wolfram's definite integral calculator evaluated from 0 to 1 here: http://www.wolframalpha.com/input/?i=integrate+1%2F%282*%28cos%282*pi*x%29%29%5E2%2B3*%28sin%282*pi*x%29%29%5E2%29+dx+from+x%3D0+to+1. And I get 1/sqrt(6), what is going on with this discrepancy, is Wolfram wrong, or am I missing something?

Look at a graph of the function that's given as the anti-derivative. It's discontinuous (with jump discontinuities) on the interval over which you are integrating.

Here is what WolframAlpha shows.
attachment.php?attachmentid=41923&stc=1&d=1323838474.gif
 

Attachments

  • wolframalpha-20111213224334050.gif
    wolframalpha-20111213224334050.gif
    10.1 KB · Views: 743
  • #7
Poopsilon said:
So I put the function 1/(2*(cos(2*pi*x))^2+3*(sin(2*pi*x))^2) into the Wolfram indefinite integral calculator here: http://integrals.wolfram.com/index.jsp?expr=1%2F%282*%28cos%282*pi*x%29%29%5E2%2B3*%28sin%282*pi*x%29%29%5E2%29&random=false. And I get an antiderivative which when evaluated from 0 to 1 is clearly equal to 0.

Now I take the same function and put it into Wolfram's definite integral calculator evaluated from 0 to 1 here: http://www.wolframalpha.com/input/?i=integrate+1%2F%282*%28cos%282*pi*x%29%29%5E2%2B3*%28sin%282*pi*x%29%29%5E2%29+dx+from+x%3D0+to+1. And I get 1/sqrt(6), what is going on with this discrepancy, is Wolfram wrong, or am I missing something?

Maple gives exactly the same thing (with slightly different ways of writing equivalent results). If you plot the antiderivative function F(x) as given by Mathematica or Maple, you will see it has jump discontinuities at x = 1/4 and x = 3/4. You could have a *continuous* antiderivative by essentially adding the jump discontinuity to the formula in (1/4,3/4) and once again in (3/4,1). Basically, this amounts to changing the constant of integration as you pass through x = 1/4 and again as you pass through x = 3/4. For that continuous antiderivative, Fc(x) we do, indeed, get the definite integral as the difference Fc(1)-Fc(0).

Fortunately, both Mathematica and Maple are smart enough to know they must be more careful when dealing with the definite integral. In fact, we can get Maple to give us the appropriate result using the commands J1 := int(f,x=0..t) assuming t>0,t<1/4; and J2:=int(f,x=0..t) assuming t>1/4,t<3/4. The result for t>1/4, t<3/4 has an extra term that switches on at t = 1/4 (and again at t = 3/4), to give a continuous F(t).

RGV
 
  • #8
Poopsilon said:
So I put the function 1/(2*(cos(2*pi*x))^2+3*(sin(2*pi*x))^2) into the Wolfram indefinite integral calculator here: http://integrals.wolfram.com/index.jsp?expr=1%2F%282*%28cos%282*pi*x%29%29%5E2%2B3*%28sin%282*pi*x%29%29%5E2%29&random=false. And I get an antiderivative which when evaluated from 0 to 1 is clearly equal to 0.
The integrand is always positive. How could a definite integral from 0 to some positive number ever be negative?

What Mathematica is doing is using a substitution involving the principal branch of the inverse tangent that is only valid in the range x∈(-1/4,1/4).
 

1. What is the Wolfram Integrator Error?

The Wolfram Integrator Error is an error message that appears when the Wolfram Integrator tool fails to compute an integral. This error message often indicates that there may be an issue with the input, such as an undefined function or an expression that cannot be integrated.

2. What does the error message "Am I Missing Something?" mean?

The "Am I Missing Something?" error message is a prompt from the Wolfram Integrator tool that suggests there may be a mistake or missing information in the input. This could be a missing variable, incorrect syntax, or an invalid expression.

3. How can I fix the Wolfram Integrator Error?

To fix the Wolfram Integrator Error, carefully review the input and make sure all variables are defined and the syntax is correct. If the error persists, try breaking up the integral into smaller parts and computing each one separately. You can also consult the Wolfram Integrator help documentation for troubleshooting tips and examples.

4. Can the Wolfram Integrator Error be caused by an incorrect function or expression?

Yes, the Wolfram Integrator Error can be caused by an incorrect function or expression. The tool is designed to only integrate functions that have a defined integral. If the function or expression is invalid or undefined, the tool will not be able to compute the integral and will return an error message.

5. Is the Wolfram Integrator Error a common issue?

The Wolfram Integrator Error is a common issue, especially for complex or poorly defined integrals. However, with careful input and troubleshooting, the error can often be resolved. If you continue to experience the error, you can also seek help from the Wolfram community or support team.

Similar threads

  • Precalculus Mathematics Homework Help
Replies
34
Views
2K
  • Calculus and Beyond Homework Help
Replies
10
Views
1K
Replies
3
Views
541
  • Calculus and Beyond Homework Help
Replies
7
Views
1K
  • Calculus and Beyond Homework Help
Replies
2
Views
1K
  • Introductory Physics Homework Help
Replies
5
Views
1K
  • Calculus and Beyond Homework Help
Replies
5
Views
343
  • Calculus and Beyond Homework Help
Replies
2
Views
2K
  • Calculus and Beyond Homework Help
Replies
1
Views
1K
  • Advanced Physics Homework Help
Replies
15
Views
2K
Back
Top