Efficient Integration of Step Function with Variable Denominator

Rectifier
Gold Member
Messages
313
Reaction score
4
The problem
I want to calculate ## \int^6_{-6} \frac{g(x)}{2+g(x)} \ dx ## for the step function below.
2YSK7nM.jpg
The attempt
I started with rewriting the function as with the help of long-division
## \int^6_{-6} \frac{g(x)}{2+g(x)} \ dx = \int^6_{-6} 1 \ dx - 2\int^6_{-6} \frac{1}{g(x)+2} \ dx##

I know that ##\int^6_{-6} 1 \ dx = 12## but that's about it. I am not sure how I should continue.

And here is where I get stuck.
 
Last edited:
Physics news on Phys.org
If you look closely at ## g(x) ##, it takes on constant values for various intervals. You need to break up the integral from -6 to 6 into these various segments.
 
  • Like
Likes Rectifier
Rectifier said:
The problem
I want to calculate ## \int^6_{-6} \frac{g(x)}{2+g(x)} \ dx ## for the step function below.
2YSK7nM.jpg
The attempt
I started with rewriting the function as with the help of long-division
## \int^6_{-6} \frac{g(x)}{2+g(x)} \ dx = \int^6_{-6} 1 \ dx - 2\int^6_{-6} \frac{1}{g(x)+2} \ dx##

I know that ##\int^6_{-6} 1 \ dx = 12## but that's about it. I am not sure how I should continue.

And here is where I get stuck.
This shouldn't be too difficult. On the interval [-6, -4], g(x) = -1, so g(x) + 2 = 1. What is ##\int_{-6}^{-4} \frac 1 1 dx##? Do the same for the other intervals.
 
  • Like
Likes Rectifier and Charles Link
Hi Rectifier:

I suggest breaking the integral into six pieces, one piece for each step. For each piece, g(x) has a specific constant value, so the integrand is a specific constant.

Hope this helps.

Regards,
Buzz
 
  • Like
Likes Rectifier
Thank you for your help, everyone!
 
  • Like
Likes Charles Link
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top