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

  • Thread starter Thread starter arslan894
  • Start date Start date
  • Tags Tags
    Integral
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?
<br /> \int_{-3}^{3}e^\frac{1-x^2}{9}dx<br />
 
We're not going to do it for you. What have you tried?
 
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?
<br /> \int_{-3}^{3}e^\sqrt{1-\frac{x^2}{9}}dx<br />
 
yes bro
 
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:

<br /> \int_{-3}^{3}xe^{x^{2}}dx<br />

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 ?
 
  • #11
I also have a doubt . Anybody reply fast


How to integrate

exp(x)*erfc(x) in MATLAB
 

Similar threads

Replies
3
Views
2K
Replies
6
Views
3K
Replies
6
Views
1K
Replies
20
Views
4K
Replies
4
Views
2K
Replies
8
Views
2K
Replies
3
Views
3K
Replies
15
Views
3K
Back
Top