Problem with function approximation

In summary: The original question had a y in the denominator...A first order approximation cannot give a good second order term.
  • #1
boniphacy
9
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
  • #2
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?
 
  • #3
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 DaveE
  • #4
OK. We assume x ~ y^2, then: what is correct now?
 
  • #5
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!
 
  • #6
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.
 
  • #7
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 PeroK
  • #8
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}} ##
 
  • #9
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 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.
 

1. What is function approximation?

Function approximation is the process of finding a simpler function that closely matches a more complex function. It is used to simplify complex mathematical models and make them more computationally efficient.

2. Why is there a problem with function approximation?

The problem with function approximation arises when the simpler function does not accurately represent the more complex function. This can lead to errors and inaccuracies in the results of mathematical models and data analysis.

3. How is function approximation used in scientific research?

Function approximation is commonly used in scientific research to simplify complex mathematical models and make them more manageable. It is also used in data analysis to approximate relationships between variables and make predictions.

4. What are some techniques used for function approximation?

Some common techniques used for function approximation include polynomial interpolation, spline interpolation, and regression analysis. These methods involve fitting a simpler function to a set of data points in order to approximate a more complex function.

5. What are the limitations of function approximation?

Function approximation can be limited by the accuracy and representativeness of the data used. If the data points do not accurately reflect the true behavior of the complex function, the approximation may not be accurate. Additionally, the choice of approximation method and the degree of simplification can also impact the accuracy of the results.

Similar threads

Replies
3
Views
328
Replies
12
Views
1K
Replies
3
Views
1K
Replies
4
Views
347
Replies
3
Views
1K
Replies
2
Views
1K
  • Calculus
Replies
2
Views
708
Replies
1
Views
956
Replies
2
Views
1K
Back
Top