How to Integrate exp(x)*erfc(x) in MATLAB?

  • Context: Undergrad 
  • Thread starter Thread starter arslan894
  • Start date Start date
  • Tags Tags
    Integral
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
10 replies · 3K views
arslan894
Messages
9
Reaction score
0
f(x) = ∫e^(1-(x^2)/(b^2))dx the limits are -b to b , take the value of b = 3
 
Physics news on Phys.org
Is this the integral?
[tex] \int_{-3}^{3}e^\frac{1-x^2}{9}dx[/tex]
 
bro i tried it using substitution but the problem is that i can't go much further, @ DivisionByZro exp(1-(x^2/9))^.5
 
Is this it?
[tex] \int_{-3}^{3}e^\sqrt{1-\frac{x^2}{9}}dx[/tex]
 
Well, in any case, you won't find any substitutions since you don't have any "x" term multiplying the expression, therefore whatever you have in the exponent part can't be reduced. In other words, it wouldn't be as hard if your integral was something like:

[tex] \int_{-3}^{3}xe^{x^{2}}dx[/tex]

In this case if you let u=x2, then du=2xdx, and you could use substitution.

In fact there is no answer in terms of standard functions. What class/context was this for?
 
i was modeling in MATLAB to find the friction between cam follower of an engine ,i used int function in MATLAB but it gave warning that explicit answer doesn't exist ,i used the simpson 38 rule to find the solution on paper but don't know how to use simpson 38 rule in matlab.
 
any one knows how to do this function using simpson 3 8 rule in MATLAB ?
 
I also have a doubt . Anybody reply fast


How to integrate

exp(x)*erfc(x) in MATLAB