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

  • Context: Undergrad 
  • Thread starter Thread starter arslan894
  • Start date Start date
  • Tags Tags
    Integral
Click For Summary

Discussion Overview

The discussion revolves around the integration of the function exp(x)*erfc(x) in MATLAB, as well as related integrals involving exponential functions. Participants explore various approaches to integration, including numerical methods and specific integral forms.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Homework-related
  • Debate/contested

Main Points Raised

  • One participant presents an integral involving an exponential function and asks for help with its evaluation in MATLAB.
  • Another participant questions whether the presented integral is correct, suggesting a specific form of the integral.
  • A participant expresses frustration with substitution methods and indicates difficulty progressing with the integration.
  • There is a discussion about the lack of suitable substitutions for the integral due to the absence of an "x" term in the exponent.
  • One participant claims that the integral cannot be expressed in terms of standard functions and inquires about the context of the problem.
  • A participant shares their application context, mentioning modeling friction in an engine and the use of MATLAB's int function, which yielded a warning about the non-existence of an explicit answer.
  • Another participant asks for guidance on implementing the Simpson's 3/8 rule in MATLAB for numerical integration.
  • A suggestion is made to use Wolfram Alpha for numerical integration, providing a specific result and a link for reference.
  • A later post introduces a new question about integrating exp(x)*erfc(x) in MATLAB, indicating a shift in focus within the thread.

Areas of Agreement / Disagreement

Participants express differing views on the feasibility of finding an analytical solution for the integrals discussed. There is no consensus on the best approach to integrate the functions, and the discussion remains unresolved regarding the specific methods to be used in MATLAB.

Contextual Notes

Participants mention limitations related to the use of substitution methods and the inability to express certain integrals in terms of standard functions. The discussion includes various mathematical expressions that may require further clarification or context.

Who May Find This Useful

This discussion may be useful for individuals interested in numerical integration techniques, MATLAB programming, and the evaluation of complex integrals involving exponential functions and error functions.

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]
 
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?
[tex] \int_{-3}^{3}e^\sqrt{1-\frac{x^2}{9}}dx[/tex]
 
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:

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


How to integrate

exp(x)*erfc(x) in MATLAB
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 31 ·
2
Replies
31
Views
5K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 20 ·
Replies
20
Views
4K
  • · Replies 14 ·
Replies
14
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 11 ·
Replies
11
Views
3K