Rational function that approximates e^x

  • Context: Undergrad 
  • Thread starter Thread starter Ledsnyder
  • Start date Start date
  • Tags Tags
    E^x Function Rational
Click For Summary

Discussion Overview

The discussion revolves around the search for a rational function that approximates the exponential function e^x, specifically avoiding series expansions. Participants explore various methods and interpretations of what constitutes an approximation.

Discussion Character

  • Exploratory
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant asks if there exists a rational function, not derived from series, that can approximate e^x, providing an example of (x+1)/(x+3).
  • Another participant questions the meaning of "approximates," suggesting that any function can be made to approximate e^x to a desired accuracy, particularly through polynomial truncation of Taylor's series, which they assert is exactly equal to e^x.
  • A participant references a specific example of approximation related to tanh(x) and inquires about curve fitting software.
  • One reply emphasizes that the original question was misinterpreted and reiterates the effectiveness of the Taylor series for rapid approximation, while also cautioning against truncating the series for large values of x due to precision loss.
  • Another participant suggests that continued fraction expressions for e^x could provide rational function approximations, recommending the use of library functions for better accuracy.
  • A simple approximation of 1+x is proposed by a participant.
  • One participant discusses a more complex approximation method involving matching derivatives up to a certain degree, referencing Pade approximants and providing formulas for P(x) and Q(x).

Areas of Agreement / Disagreement

Participants express differing views on the nature of approximation, with some advocating for series-based methods while others seek rational functions. The discussion remains unresolved regarding the best approach to approximating e^x with a rational function.

Contextual Notes

There are limitations in the discussion regarding the definitions of approximation and the assumptions underlying the proposed methods. The effectiveness of different approximation techniques for various ranges of x is also not fully explored.

Ledsnyder
Messages
26
Reaction score
0
Is there a rational function,not series, that approximates e^x
?
for example (x+1)/(x+3)
 
Physics news on Phys.org
What do you mean by "approximates"? A given function, rational or not, has a specific difference from [itex]e^x[/itex]. We can always find a function, for example by truncating the Taylor's series to a polynomial, that "approximates" [itex]e^x[/itex] to a desired degree of accuracy. The difference is that the series, [itex]\sum_{n=0}^\infty[/itex] does NOT 'approximate' [itex]e^x[/itex], it is exactly equal to it.
 
That is not at all the question you asked before. However, the standard Taylor's series for the exponential, [tex]\sum_{n=0}^\infty \frac{x^n}{n!}[/tex]
is a very "rapid" approximation to the exponential.
 
HallsofIvy said:
That is not at all the question you asked before. However, the standard Taylor's series for the exponential, [tex]\sum_{n=0}^\infty \frac{x^n}{n!}[/tex]
is a very "rapid" approximation to the exponential.

Truncating the series after a fixed number of terms is not a good method of evaluating [itex]e^x[/itex] numerically for large [itex]|x|[/itex], since one loses precision from calculating the large values of [itex]x^n[/itex] and [itex]n![/itex] and the remainder may be large.

To the OP: Woolfram gives a couple of continued fraction expressions for [itex]e^x[/itex]; truncating these will give you a rational function approximation. But it is better to use a library function for exp if at all possible.
 
1+x.
 
It depends what type of approximation you want. One common one is an approximation such that the function and its derivatives match the approximation up to some degree

$$
e^{-x}\sim P(x)/Q(x)\\
\text{where}\\
P(x)=\sum_{k=0}^m \frac{(m+n-k)!m!}{(m+n)!k!(m-k)!}x^k
\\
Q(x)=\sum_{k=0}^n \frac{(m+n-k)!n!}{(m+n)!k!(n-k)!}x^k
$$

matches up to the n+m+1 derivative

see
http://mathworld.wolfram.com/PadeApproximant.html
http://en.wikipedia.org/wiki/Padé_table#An_example_.E2.80.93_the_exponential_function
http://wwwhome.math.utwente.nl/~vajtam/publications/temp00-pade.pdf
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 12 ·
Replies
12
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 17 ·
Replies
17
Views
4K
  • · Replies 27 ·
Replies
27
Views
6K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 3 ·
Replies
3
Views
4K