Borrar filtros
Borrar filtros

Integration of a piecewise multivariable function

2 visualizaciones (últimos 30 días)
Divij Gupta
Divij Gupta el 30 de Jul. de 2021
Editada: Paul el 1 de Ag. de 2021
I have a function I need to integrate. The function is a product of 2 functions, one a function in x and the the other a piecewise function in t and x. The piecewise function is something like for rho(x) (where rho is some function) < t, f(x,t) = 0, for rho(x)<t<2rho(x), f(t,x) = rho(x) - t, and for t>2rho, f(t,x) = -rho(x). I want to integrate with respect to x with bounds of Inf and -Inf (100 would do a good enough job as infinity for my purposes so I can just use that). I know the integral is not analytic, but I do know that I should get back a piecewise function in t. I cannot seem to figure it out. Anyone have any tips?
  3 comentarios
Divij Gupta
Divij Gupta el 31 de Jul. de 2021
For an example, take f(t,x) to be the function I defined above (let rho(x) = sqrt(1-x^2)) and take the other function (the one you multiply with f(x,t) to form the function to be integrated) to be exp(x^2). How do I find the integral from -Inf to Inf?
Paul
Paul el 31 de Jul. de 2021
Editada: Paul el 1 de Ag. de 2021
Can you clarify the piecewise function f(x,t)? The first condition is:
rho(x) < t
but the second condition is
rho(x) < t < 2*rho(x)
Those conditions overlap. Should the first condition be t < rho(x) ?
Also, with rho(x) = sqrt(1-x^2) it would seem the integrand would become complex for abs(x) > 1. But the integration wrt x is over -inf to inf. Is this problem supposed to cover complex variables?

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Solver Outputs and Iterative Display en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by