Problem with function approximation

  • Context: Undergrad 
  • Thread starter Thread starter boniphacy
  • Start date Start date
  • Tags Tags
    Approximation Function
Click For Summary
SUMMARY

The discussion focuses on the function approximation of f(x,y)=\sqrt{\frac{1−2x}{1−y^2}} using two methods for small values of x and y. The first method approximates the function as 1−x+y^2/2−xy^2, while the second method yields 1−x+y^2/2−xy^2/2. The key difference between the two approximations is the term xy^2/2. The conclusion drawn is that both approximations are insufficient without including higher-order terms, particularly when x and y are small, which can lead to inaccuracies in the results.

PREREQUISITES
  • Understanding of Taylor series expansions
  • Familiarity with first and second order approximations
  • Knowledge of mathematical functions and their properties
  • Basic concepts of General Relativity (GR)
NEXT STEPS
  • Study Taylor series and their applications in function approximation
  • Learn about higher-order approximations in calculus
  • Explore the implications of approximations in General Relativity
  • Investigate the mathematical properties of square root functions
USEFUL FOR

Mathematicians, physicists, and students studying calculus and General Relativity who seek to deepen their understanding of function approximations and their applications in theoretical physics.

boniphacy
Messages
9
Reaction score
1
We have a function:

## f(x,y)=\sqrt{\frac{1−2x}{1−y^2}} = \frac{\sqrt{1−2x}}{\sqrt{1−y^2}}##

for small x and y, we can use standard approximations:
## 1/\sqrt{1−x}=1+x/2+... ##
and
##\sqrt{1−x}=1−x/2−... ##

Ok. Now we can approximate the whole function f(x,y)

First method:
## \sqrt{\frac{1−2x}{1−y^2}}≈\sqrt{(1−2x)(1+y^2)}=1−x+y^2/2−xy^2 ##

Second method:
##\frac{\sqrt{1−2x}}{\sqrt{1−y^2}}≈(1−x)(1+y^2/2)=1−x+y^2/2−xy^2/2 ##

the both approx. are not equal, difference is: ##xy^2/2 ##!

So, which approximation is the correct one?
 
Physics news on Phys.org
boniphacy said:
We have a function:

## f(x,y)=\sqrt{\frac{1−2x}{1−y^2}} = \frac{\sqrt{1−2x}}{\sqrt{1−y^2}}##

for small x and y, we can use standard approximations:
## 1/\sqrt{1−x}=1+x/2+... ##
and
##\sqrt{1−x}=1−x/2−... ##

Ok. Now we can approximate the whole function f(x,y)

First method:
## \sqrt{\frac{1−2x}{1−y^2}}≈\sqrt{(1−2x)(1+y^2)}=1−x+y^2/2−xy^2 ##

Second method:
##\frac{\sqrt{1−2x}}{\sqrt{1−y^2}}≈(1−x)(1+y^2/2)=1−x+y^2/2−xy^2/2 ##

the both approx. are not equal, difference is: ##xy^2/2 ##!

So, which approximation is the correct one?
What about putting some small values for ##x## and ##y## into a calculator?
 
Even worse, if x and y are equally small, you've thrown out at least a ##x^2## term that is more important than the ##xy^2## term.

You took two first order approximations, and then you tried to assume you had a good second order approximation at the end. As you learned, that's not guaranteed to work.
 
  • Like
Likes   Reactions: DaveE
OK. We assume x ~ y^2, then: what is correct now?
 
boniphacy said:
OK. We assume x ~ y^2, then: what is correct now?
I'd say they are both wrong, as you have a cross term in ##xy^2##, but no terms in ##x^2## or ##y^4##, which should be of the same order.

PS Perhaps the first one is more wrong than the second one!
 
for x = y it is:
## \sqrt{\frac{1-2x}{1-x^2}} \approx 1 - x^2 - x^3 - x^4/2 + ... ##

so, the first looks is correct.

now try: y^2 = x
## \sqrt{\frac{1-2x}{1-x}} \approx 1 - x/2 - 5/8 x^2 + ... ##

?
fantastic.
 
I think the point we are really trying to get across is, if you want to use the ##xy^2## term then you need to include more terms in each of your original approximations.

Like ##\sqrt{1-x}\approx 1-x/2-x^2/8## instead of just taking the first term.
 
  • Like
Likes   Reactions: PeroK
This is forbidden. We can use the first terms only.

This function is used in the GR fantastic theory, exactly:
## E = mc^2 \frac{\sqrt{1-2GM/c^2r}}{\sqrt{1 - (r'^2 + h^2/r^2)/c^2}} ##
 
boniphacy said:
for x = y it is:
## \sqrt{\frac{1-2x}{1-x^2}} \approx 1 - x^2 - x^3 - x^4/2 + ... ##

so, the first looks is correct.

now try: y^2 = x
## \sqrt{\frac{1-2x}{1-x}} \approx 1 - x/2 - 5/8 x^2 + ... ##
This makes no sense. The original approximation doesn't have any terms involving y, so how can you replace x with ##y^2## or ##y^2## with x, or whatever it is that you're doing?
 
  • #10
Mark44 said:
This makes no sense. The original approximation doesn't have any terms involving y, so how can you replace x with ##y^2## or ##y^2## with x, or whatever it is that you're doing?
The original question had a y in the denominator...
 
  • #11
A first order approximation cannot give a good second order term. It might produce something that looks like a second order term but it's just meaningless. Use second order approximations if you want a useful second order term.
 
  • Informative
Likes   Reactions: Keith_McClary
  • #12
## E = mc^2 \frac{\sqrt{1-2GM/c^2r}}{\sqrt{1 - (r'^2 + h^2/r^2)/c^2}} ##

OK.
what is correct approximation of this equation, up to second order?

## E = mc^2 + mr'^2/2 + mh^2/2r^2 - mGM/r + the second order term ##

we can see 'the first order part' is perfectly Newtonian version.
 
  • #13
You can calculate the second order from derivatives with the usual formulas. Nothing special about GR here.
 

Similar threads

  • · Replies 9 ·
Replies
9
Views
1K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 17 ·
Replies
17
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 4 ·
Replies
4
Views
3K