Not understanding some integration results

  • Context: Undergrad 
  • Thread starter Thread starter dBrandon/dC
  • Start date Start date
  • Tags Tags
    Integration
Click For Summary
SUMMARY

The discussion centers on the integration of the equation dy = xSIN(x) - 0.03356(x^2)SIN(x) dx, which resembles a sine function. The user encounters a negative result when integrating this equation using Wolfram Mathematica Online Integrator, specifically for x values between 0 and 0.56 radians. The confusion arises from the distinction between indefinite and definite integrals; without an initial condition, the indefinite integral lacks a constant, leading to negative values in the graph. The solution involves recognizing the need for a constant to adjust the graph properly.

PREREQUISITES
  • Understanding of calculus concepts, particularly integration
  • Familiarity with sine functions and their properties
  • Experience using Wolfram Mathematica or similar integration tools
  • Knowledge of the difference between definite and indefinite integrals
NEXT STEPS
  • Study the properties of sine functions and their integrals
  • Learn how to apply initial conditions to indefinite integrals
  • Explore the use of Wolfram Mathematica for calculus problems
  • Research the concept of definite integrals and their applications in finding areas under curves
USEFUL FOR

Students and professionals in mathematics, particularly those studying calculus, as well as educators seeking to clarify integration concepts and their graphical interpretations.

dBrandon/dC
Messages
20
Reaction score
0
I was wondering if you guys could help me understand something. I have an equation that, when I graph it, looks a lot like a regular sine function. However, when I integrate it to find the area under it and graph the new function, I'm getting a negative result in the first 0.56 radians or so.

The equation is:

dy = xSIN(x) - 0.03356(x^2)SIN(x) dx

Integrating for x (actually, letting Wolfram Mathematica Online Integrator do it for me), I get:

y = (1 - 0.06712x)SIN(x) + 0.03356(x - 29.8643)(x + 0.0669695)COS(x)

(I'm trying to analyze this for x = 0 to pi, by the way.)

The first equation gives me nothing negative, so why when it's integrated and graphed do I get a negative dip before x = 0.56?
 
Physics news on Phys.org
Unless you have a given initial condition for y (i.e. y(a) = b), you cannot graph the indefinite integral just knowing the area under the graph. Wolfram alpha gives you a + Constant at the end, not sure why you got rid of that. However, if the problem you're working on does have an initial condition, then you can use that to find the constant and graph the integral properly.
 
Wolfram didn't mention a constant, though I know I could use one. I just didn't think I needed to. ... I'm including two pictures here - screenshots of an online graphing calculator (http://www.coolmath.com/graphit/) where I plugged in these equations. In both of them, I've zoomed into the region of x = 0 to about 3.14.View attachment Capture1.bmp View attachment Capture2.bmp The first picture is a graph of the original equation. As you can see, the curve is entirely in the y+ quadrant. But in the second picture, after the equation is integrated, the first part of the curve is negative. It's been a long time since I took a calculus class, but isn't an integration supposed to give me the area under the curve? And when I solve the integrated equation for, let's say, x = 0.5, shouldn't that give me the area under the curve down to the y = 0 line, and from x = 0 to x = 0.5? But when I solve for x = 0.5, I get -0.027. That makes sense given the second picture, but it doesn't make sense to me given the first picture. Where's the negative area under the curve in the first graph?
 
I think you're getting definite integrals confused with indefinite integrals. If you're dealing with a definite integral (i.e. an integral with a lower bound and upper bound), you will get the exact area under the curve between the two x values. However, if you find the indefinite integral, you cannot graph it unless you know what the constant is. The program you used might have just set a default value for a constant, maybe 0.

Assuming you know what the constant is and looking at the two graphs you have, it's usually easier looking at the slope instead of area. The slope of the second graph should be the y-value of the first graph.
 
Bingo. If I add a constant, bringing y up to 0 when x = 0, that solves my problem, and the rest of the numbers line up with what I thought they should be. Thanks a lot!
 

Similar threads

  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 14 ·
Replies
14
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 6 ·
Replies
6
Views
3K