Problem with integrating heaviside function.

In summary, the integral of the Heaviside function, H(x), can be evaluated using integration by parts and the properties of the Dirac delta-function. However, if a < 0, then the integral is 0, and if a ≥ 0, the integral is a. The indefinite integral of H(x) is 0 + C for x < 0 and x + C for x ≥ 0.
  • #1
perpich08
2
0

Homework Statement


I need to find the integral of the following equation..

integral from 0 to 8 of {(2H[x-0]+2H[x-4])*(x/8)}dx

The Attempt at a Solution


Im am not sure what the integral of the heaviside function is?
is it 1 or 0?

Any help would be appreciated!
Thanks
 
Physics news on Phys.org
  • #2
Write your function as a piecewise defined function and you will see how to integrate it.

f(x) = ? if 0 < x < 4
f(x) = ? if 4 < x < 8

Remember H(x) = 0 if x < 0 and H(x) = 1 if x > 0.

Also drawing the graph might help.
 
Last edited:
  • #3
The integral of the Heaviside function, H(x), is just xH(x)+ C.
 
  • #4
perpich08 said:
Im am not sure what the integral of the heaviside function is?

Use integration by parts and the fact that [itex]h'(x - x_{0}) = \delta(x - x_{0})[/itex]:

[tex]
\int_{a}^{b}{h(x - x_{0}) \, dx} = \left. x \, h(x - x_{0}) \right|^{b}_{a} - \int_{a}^{b}{x \, \delta(x - x_{0}) \, dx}
[/tex]

Next, the integral with the Dirac delta-function can be evaluated using its property:

[tex]
\int_{a}^{b}{x \, \delta(x - x_{0}) \, dx} = x_{0} \, h(x_{0} - a) \, h(b - x_{0})
[/tex]

where the product of the two Heaviside functions ensures that [itex]x_{0}[/itex] is inside the segment [itex]x_{0} \in \left[a, b \right][/itex]. The integrated-out part is:

[tex]
b \, h(b - x_{0}) - a \, h(a - x_{0})
[/tex]

Combining everything together gives:

[tex]
\int_{a}^{b}{h(x - x_{0}) \, dx} = b \, h(b - x_{0}) - a \, h(a - x_{0}) - x_{0} \, h(x_{0} - a) \, h(b - x_{0})
[/tex]
 
  • #5
As a check, let us differentiate it w.r.t. [itex]b[/itex]:

[tex]
\frac{\partial}{\partial b} \left( b \, h(b - x_{0}) \right) = 1 \cdot h(b - x_{0}) + b \cdot \delta(b - x_{0}) = h(b - x_{0}) + x_{0} \, \delta(b - x_{0})
[/tex]

[tex]
\frac{\partial}{\partial b} \left( -a \, h(a - x_{0}) \right) = 0
[/tex]

[tex]
\frac{\partial}{\partial b} \left( -x_{0} \, h(b - x_{0}) h(x_{0} - a) \right) = -x_{0} \, \delta(b - x_{0}) \, h(x_{0} - a) = -x_{0} \, \delta(b - x_{0}) \, h(b - a) = -x_{0} \delta(b - x_{0})
[/tex]

where again we used the derivative of the Heaviside step function and a consequence of the properties of the Dirac delta-function ([itex]x \, \delta(x - x_{0}) = x_{0} \, \delta(x - x_{0})[/itex]) as well as the assumption that [itex]b > a[/itex]. Combining everything together and substituting [itex]b \rightarrow x[/itex]. we see that we get the integrand. Also, if [itex]b = a[/itex], the first two terms cancel and the last cancels because [itex]h(a - x_{0}) h(x_{0} - a)[/itex] is always zero. So, according to the fundamental theorem of calculus, we should get the correct result.
 
Last edited:
  • #6
Of course, you can always write:

[tex]
\int_{0}^{8}{\left( 2 h(x) + 2 h(x - 4) \right) \frac{x}{8} \, dx} = \frac{1}{4} \, \left[\int_{0}^{8}{x \, h(x) \, dx} + \int_{0}^{8}{x \, h(x - 4) \, dx}\right]
[/tex]

[tex]
\frac{1}{4} \, \left[ \int_{0}^{8}{x \, dx} + \int_{4}^{8}{x \, dx}\right]
[/tex]

and do the remaining elementary integrals :)
 
  • #7
Thanks guys! I think I can figure it out now
 
  • #8
I would consider using integration by parts for integrating the Heaviside function "overkill".

If a<0, then H(x)= 0 for all [itex]x\le 0[/itex] so [itex]\int_{-\infty}^a H(x)dx= 0[/itex]. For [itex]a\ge 0[/itex], [itex]\int_{-\infty}^a H(x)dx= \int_0^a H(x)dx[/itex][itex]= \int_0^a dx= a[/itex].

For the "indefinite integral" [itex]\int H(x)dx[/itex] is 0+ C for x< 0, x+ C for [itex]x\ge 0[/itex].
 

1. What is the Heaviside function and why is there a problem with integrating it?

The Heaviside function, also known as the unit step function, is a mathematical function that is defined as 0 for negative inputs and 1 for positive inputs. The problem with integrating it arises because it is discontinuous at x=0, making it difficult to apply traditional integration methods.

2. How is the Heaviside function used in scientific research?

The Heaviside function is commonly used in scientific research to model and analyze systems that involve sudden changes or jumps. It is also used in signal processing and control theory to represent systems with on/off states.

3. Can the Heaviside function be integrated using any methods?

Yes, the Heaviside function can be integrated using advanced mathematical techniques such as distribution theory and the Laplace transform. These methods allow for the integration of discontinuous functions.

4. Are there any real-life applications of the Heaviside function?

Yes, the Heaviside function is used in various fields such as electrical engineering, physics, and economics. In electrical engineering, it is used to model the behavior of electrical circuits, while in economics it is used to model the behavior of markets with sudden changes.

5. How does the problem with integrating the Heaviside function affect scientific research?

The problem with integrating the Heaviside function can limit the ability to accurately model and analyze systems that involve sudden changes or jumps. However, with the use of advanced mathematical techniques, this limitation can be overcome, allowing for a more comprehensive understanding of these systems in scientific research.

Similar threads

  • Calculus and Beyond Homework Help
Replies
2
Views
1K
  • Calculus and Beyond Homework Help
Replies
10
Views
2K
  • Calculus and Beyond Homework Help
Replies
3
Views
4K
  • Calculus and Beyond Homework Help
Replies
9
Views
759
  • Calculus and Beyond Homework Help
Replies
2
Views
974
  • Calculus and Beyond Homework Help
Replies
19
Views
951
  • Calculus and Beyond Homework Help
Replies
9
Views
2K
  • Advanced Physics Homework Help
Replies
17
Views
1K
  • Calculus and Beyond Homework Help
Replies
10
Views
441
Back
Top