Integrate a constant
OK, I''ve looked through my Calculus book and my notes from class, and for some reason I cannot find out how to do this! How do you integrate a constant? Like this:
|-5
| 10 dx
_| 0
(I dunno if that looks right, but I guess yall know what I mean.) Is it 50? 1? 0?
I like the DARK layout!
November 22, 2002 12:13 PM
the constant can be taken out ie
Integral(a)dx
=
aIntegral()dx
which turns out to be
ax + c
is this what you are asking?
Integral(a)dx
=
aIntegral()dx
which turns out to be
ax + c
is this what you are asking?
Think of it this way: the integral is the area under the curve y = 10 from x = -5 to x = 0. I''m sure you can find the answer yourself.
Cédric
Cédric
But what about a definite integral?
Would it be 50 (in my previous example) since its like this:
10(5 - 0)
cause of the Fundamental Theorem of Calculus or whatever its called (if i''m even thinking of the right theorem, I just don''t know!)
Would it be 50 (in my previous example) since its like this:
10(5 - 0)
cause of the Fundamental Theorem of Calculus or whatever its called (if i''m even thinking of the right theorem, I just don''t know!)
I like the DARK layout!
November 22, 2002 12:36 PM
oh i see (previous anon) what that was :>
yes... it would come out to be
10x
between 5 and 0
which indeed is
10(5-0) = 50
Brad: you may or may not know this, but please remember in the future that we like to keep a focus on gamedev-only math and physics.
Now to the problem.
/
| k dx
/
where k is a constant
is kx + c.
That means you have a trapeziod; and when you have that, you can find the area easily.
For a more calculus-based operation, examine the fundamental theorem of calculus like so:
f(x) = k
/b
| f(x) dx
/a
F(x) = kx + C
F(b) - F(a) = (kb + C) - (ka + C)
Which yields
kb - ka
Limits of integration are [b,a] aka [-5,0]
k = 10
Pushed into the equation:
= 10*-5 - 10*0
= 10(-5 - 0)
= 10*-5
= -50
Thats the definate integral from -5 to 0 of f(x).
Now I can`t rightly remember if you would set it up differenly for a area or simply take the absolute value.
Regardless, the area under that curve is 50 units.
~V''lion
Bugle4d
Now to the problem.
/
| k dx
/
where k is a constant
is kx + c.
That means you have a trapeziod; and when you have that, you can find the area easily.
For a more calculus-based operation, examine the fundamental theorem of calculus like so:
f(x) = k
/b
| f(x) dx
/a
F(x) = kx + C
F(b) - F(a) = (kb + C) - (ka + C)
Which yields
kb - ka
Limits of integration are [b,a] aka [-5,0]
k = 10
Pushed into the equation:
= 10*-5 - 10*0
= 10(-5 - 0)
= 10*-5
= -50
Thats the definate integral from -5 to 0 of f(x).
Now I can`t rightly remember if you would set it up differenly for a area or simply take the absolute value.
Regardless, the area under that curve is 50 units.
~V''lion
Bugle4d
~V'lionBugle4d
I''m sure you remember the "imaginary one" rule from Algebra - everything is being multiplied by an invisible one that you don''t write out because it''s assumed. Same concept when integrating a constant. However, this time you have an invisible variable, x0. You don''t write x0 because it equals one, but it still exists. So in your case, you really have this:
You can then apply basic anti-deriviation rules.
10x0dx
You can then apply basic anti-deriviation rules.
~CGameProgrammer( );
Developer Image Exchange -- New Features: Upload screenshots of your games (size is unlimited) and upload the game itself (up to 10MB). Free. No registration needed.
quote:
Original post by Zipster
I''m sure you remember the "imaginary one" rule from Algebra - everything is being multiplied by an invisible one that you don''t write out because it''s assumed.
Muuaahh....
More or less. 10 * x ^ 0 != 10, because 0 ^ 0 is not defined.
Cédric
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement