Gradient Of an Unknown Function

In summary: Although, you are right in saying that the answer is not accurate enough, the approximation gets better and better the smaller the distance between the points.In summary, Mubashir is trying to calculate the slope of a secant line from two points to the middle point. He assumes, without evidence, that the angle the tangent line makes with the x-axis must be the average of those two angles. He then derives the formula "1/2(180+ (90- tan-1 3)+ tan-15)- 180" apparently not realizing that that reduces to (1/2)(tan-15- tan-13). He then asserts, without evidence,

How do you find this thread?

  • Intresting

    Votes: 2 100.0%
  • Good

    Votes: 0 0.0%
  • Useless

    Votes: 0 0.0%

  • Total voters
    2
  • #1
mubashirmansoor
260
0
Hello, The latest research of mine concerning the derivative of a function without using diffrentiation and even without having the knowledge of what the equation of the funtion is, is attached to the post, please send me your comments on this latest document of mine.
With regards.
Mubashir
 

Attachments

  • GRADIENT OF AN UNKNOWN FUNCTION.doc
    43 KB · Views: 332
Physics news on Phys.org
  • #2
Don't post doc-documents.
Learn Latex.
 
  • #3
First, a lot of people won't open a ".doc" file from someone they don't know for fear of computer viruses- attaching such files is not a good idea. I have pretty good virus security so I took a chance.

Essentially what Mubashir is doing is taking three (equally spaced in his example),calculating the slope of the two secant lines from the two outside points to the middle point and so the angles they make at the middle point. He is apparrently assuming (his exact words are "I thought it would be quite comfortable") that the angle the tangent line makes with the x-axis must be the average of those two angles.

In his example, he uses y= x2 with the three points (1, 1), (2, 4), and (3, 9) so that the slopes are (4-1)/(2-1)= 3 and (9- 4)/(4-3)= 5. Among other things, he derives the formula "1/2(180+ (90- tan-1 3)+ tan-15)- 180)", apparently not realizing that that reduces to (1/2)(tan-15- tan-13). He then asserts, without evidence, that dy/dx= tan(tan-15- 1/2(180+ (90- tan-1 3)+ tan-15)- 180)) again apparently not realizing that that reduces to tan((1/2)(tan-15+ tan-13).

Of course, it is easy to calculate that tan((1/2)(tan-15+ tan-13)= 3.7655644370746374130916533075759 approximately while the correct derivative of y= x2 at x= 2 is 4.

Mubashir, You could do much better more easily by averaging the two slopes themselves: (5+ 3)/2= 4 is exact (for a quadratic function) since the second derivative is a constant.
 
  • #4
Asumption!

thankyou for your reply first, there has been a misunderstanding in what I have done, After reading your reply I edited my document to make it more clear, there was no avrage taken but a trignometrical process was taken place (attached to the reply,) & when it comes to the answer not being so acurate, I've done some changes last night where you won't get a .000001 diffrence in your answer compared to the diffrentiated answer which is written in the attached document & by the way it's not just working for quadratic curves but any type of curve you would imagine...

The attached document is edited for clarification.

The ultimate formulla is;

dy/dx =10^10*tan (½(tan-1((f(x+1)–f(x))/10^10)+tan-1((f(x)–f(x-1))/10^10)))

I'll be waiting for your response,
regards
Mubashir
 

Attachments

  • GRADIENT OF AN UNKNOWN FUNCTION.doc
    49.5 KB · Views: 315
  • #5
Adding two numbers and dividing by 2:
(½(tan-1((f(x+1)–f(x))/10^10)+tan-1((f(x)–f(x-1))/10^10))
is averaging. What you are doing is averaging the two angles the secants make. As I said before the tangent angle is not, in general, the average of the two secant angles.
I don't know what the point of the "10^10" is but did you even do the arithmetic? This answer is far worse than what you had before.
 
  • #6
Sorry for the delay in my response,
When it comes to taking average as you pointed out, you are wrong, I haven’t taken the average of the two gradients at all, The angle divided by two is due to the main definition of a tangent; Let's imagine that we are talking about extremely nearby points where the three inserted terms belong to three neighboring points, the tangent to the curve at the middle point should be such that the angle between the curve and the tangent is equal for both neighboring points. By taking the definition under consideration I concluded with what you read in the document, so I had to divide the angle by 2 to get equal angles on both sides of the point. Now you may argue about the relative position of the points which is too much, you are right “the smaller the distance between the points, the more accurate the answer is” hence, the answers are not exact but excellent approximations.

You have written that the answers are not accurate in the formula provided, There is something happening which I don’t understand, (I’m a student of O’levels so I’d be glad if you help me figure out the problem) if we use the formula with small gaps between the terms, it works very accurately & there is just .00000001 difference in the answers compared to differentiation. I mean the formula given below;

dy/dx = tan ( 0.5 ( tan-1 (( f(x+0.1) – f(x) ) / 0.01) + tan-1 (( f(x) – f(x-0.01) / 0.01)))

This equation is even applicable for x^20 or higher degree equations… To get rid of inserting these extremely nearby points, I thought to decrease the size of the curve (not the dimensions) by 10^10, in this way 1 unit would turn to 10 billionth of a unit and even the points with huge gaps between each other would become extremely near. So when the calculation was taking place the curve was small enough to get good approximations, and after the evaluation the curve was brought to its original size hence multiplied by 10^10.
I don’t feel that the technique has a problem but its answers are absolutely the same as differentiation for degree 2 equations but as the degrees increase the answers become larger and larger by about 1 to 3 units for the degrees 3 and 13/15 respectively.

We know that differentiation is itself not accurate and that we say “delta x” approaches zero which is impossible, and the real answers should be a little bit more than that of differentiation. What’s the problem with the last part of my technique?

I’ll be really thankful if you help me figure out what’s going on…
 
  • #7
mubashirmansoor said:
Lets imagine that we are talking about extremely nearby points where the three inserted terms belong to three neighboring points, the tangent to the curve at the middle point should be such that the angle between the curve and the tangent is equal for both neighboring points.

That's just not true. The concept of a "neighboring point" doesn't make much sense on its own either.

When you add ANY two things together and divide the result by two you are averaging them. (A+B)/2 is the average of A and B.

mubashirmansoor said:
We know that differentiation is itself not accurate and that we say “delta x” approaches zero which is impossible, and the real answers should be a little bit more than that of differentiation.

I have no idea what you mean by that. When you differentiate something, you take the limit. It is not an approximation.

mubashirmansoor said:
I thought to decrease the size of the curve (not the dimensions) by 10^10, in this way 1 unit would turn to 10 billionth of a unit and even the points with huge gaps between each other would become extremely near.

Even if the tangent function behaved linearly under multiplication of its argument, this would still just give you the same result. However, the tangent function does not behave linearly under multiplication of its argument, so doing this just changes your result so that sometimes it will be better and sometimes it will be worse. Try using your expression on, say, [itex]e^x[/itex]. The one with those 10^10 factors will give a worse result. I'd actually be very surprised if it always gave a better result for polynomials too.

Sometimes your technique will give you a better answer than just averaging the slopes of secants. But not always (and probably not even usually), and in order to get that precision you need to be able to compute tangents and arctangents to high precision as well as finding the slopes of the secants to high precision. Adding and dividing by two is much easier, if you need a quick approximation!

mubashirmansoor said:
I don’t feel that the technique has a problem but its answers are absolutely the same as differentiation for degree 2 equations

They aren't absolutely the same. It's still an approximation, you just aren't calculating it to enough places to see the difference. For example, calculating

[tex]10^{12}\tan{\left[\frac{1}{2}\left[\mbox{arctan}\left(\frac{2.01^2-4}{10^{10}} \right)+ \mbox{arctan}\left(\frac{4-1.99^2}{10^{10}}\right)\right]\right][/tex]

gives a result of 3.9999999999999999999999999996000000000000000000001 (to 50 places).

On the other hand, just averaging the slopes of secants (taken over the same range in [itex]x[/itex] on both sides) will always give the exact derivative for any second-order polynomial.

(and note that in order to do that calculation without a computer, I'd need a table of arctangents of arguments on the order of [itex]10^{-12}[/itex]!)
 
Last edited:
  • #8
mubashirmansoor said:
The angle divided by two is due to the main definition of a tangent; Let's imagine that we are talking about extremely nearby points where the three inserted terms belong to three neighboring points, the tangent to the curve at the middle point should be such that the angle between the curve and the tangent is equal for both neighboring points.
No, that is not at all a defintion of tangent, much less the "main" definition. For one thing, there is no such thing as "neighboring points".

We know that differentiation is itself not accurate and that we say “delta x” approaches zero which is impossible, and the real answers should be a little bit more than that of differentiation.
I can only conclude from this that you have no idea what differentiation is! The derivative of a function is exact. You seem, by saying 'we say "delta x" approaches zero which is impossible", to be denying the whole concept of the limit!

You have repeatedly asserted that your method "works very accurately" but have not shown any actual calculations. I have and they are not any where near "accurate". For example, your first case gives the derivative at x= 2 to be about 3.76 rather than the correct value of 4. Please show your calculations for the derivative of y= x2 at x= 2.

All you are really doing is calculating the derivative as [itex]\frac{f(x+h)- f(x-h)}{2h}[/itex] which is a perfectly reasonable approximation. The derivative is lim, as h goes to 0, of that fraction.
 
Last edited by a moderator:
  • #9
HallsofIvy said:
I can only conclude from this that you have no idea what differentiation is! The derivative of a function is exact. You seem, by saying 'we say "delta x" approaches zero which is impossible", to be denying the whole concept of the limit!

there's two techniques that are similar in name, but one is exact and one is an approximation.

differentation is exact, as HoI says, and it is usually denoted by dy/dx

taking the difference (notation used is usually 'delta y'/'delta x') is an approximation that's accuracy depends on how small your 'difference' (delta x = x2 - x1, delta y = y2 - y1)

in computational physics, you learn a lot about changing your differentation into a difference. You lose accuracy, but sometimes there is no other way to solve a problem, than by a difference approximation.

differentation must fist be solved with calculus (and diff eq) before a numerical solution can be applied. Some calc equations are just impossible to solve, but still possible to approximate with.
 
  • #10
HallsofIvy said:
All you are really doing is calculating the derivative as [itex]\frac{f(x+h)- f(x-h)}{2h}[/itex] which is a perfectly reasonable approximation. The derivative is lim, as h goes to 0, of that fraction.

well, something similar to (but not quite the same as, since that's just the same as the previous suggestion of averaging the slopes of secants [or just taking a single secant]) that, with a lot of extra complications! That at least would get you exact answers for quadratic derivatives :tongue2:
 
Last edited:
  • #11
Thankyou for your replies,
the addition of 10^10 would not make the answers much acurate because I had not thought about the relative position of the points, Is there anyway to get rid of inserting nearby points?

If differentiation is exact then why do we say "delta y/delta is approximatly equal to dy/dx" Why not exact?

As I have concluded (if correct) the following formulla should be provided by the technique;

dy/dx= 10^10*tan(.5(tan-1((f(x+.01)-f(x))/10^8)+tan-1((f(x)-f(x-.01))/10^8)))

And as Halls of Ivy requested the calculation, here it is; (x^2 at x=2):

10^10*tan(.5(tan-1((2.01^2-4)/10^8)+tan-1((4-1.99^2)/10^8)))= 4

It works for e^x too as given below: when x=2

10^10*tan(.5(tan-1((e2.01-e2)/10^8)+tan-1((e2-e1.99)/10^8)))=7.389179251
whie differentiation gives 7.389056099
hence a very little difference is there (not worse)
 
  • #12
mubashirmansoor said:
If differentiation is exact then why do we say "delta y/delta is approximatly equal to dy/dx" Why not exact?

Because delta y/delta x IS an approximation. Delta y/delta x is taking two relatively close points, and finding the slope of the line betwen them

dy/dx, on the other hand, is doing actual analytic mathematics to determine the exact formula for the slope at a certain point
 
  • #13
mubashirmansoor said:
Thankyou for your replies,
the addition of 10^10 would not make the answers much acurate because I had not thought about the relative position of the points, Is there anyway to get rid of inserting nearby points?

If differentiation is exact then why do we say "delta y/delta is approximatly equal to dy/dx" Why not exact?
?? Isn't it obvious? one, [itex]\frac{\Delta y}{\Delta z}[/itex] is an approximation to the exact derivative,[itex]\frac{dy}{dx}[/itex].


As I have concluded (if correct) the following formulla should be provided by the technique;

dy/dx= 10^10*tan(.5(tan-1((f(x+.01)-f(x))/10^8)+tan-1((f(x)-f(x-.01))/10^8)))

And as Halls of Ivy requested the calculation, here it is; (x^2 at x=2):

10^10*tan(.5(tan-1((2.01^2-4)/10^8)+tan-1((4-1.99^2)/10^8)))= 4
You must be using a very bad calculator then. The one provided with Windows gives 3.999999999999999999999996, not 4. A good approximation but not the derivative as you have been saying.

It works for e^x too as given below: when x=2

10^10*tan(.5(tan-1((e2.01-e2)/10^8)+tan-1((e2-e1.99)/10^8)))=7.389179251
whie differentiation gives 7.389056099
hence a very little difference is there (not worse)
Yes, since you have "repaired" what you had before by using [itex]\Delta x= 0.01[/itex] instead of 1, you have a reasonably good approximation to the derivative (though I don't see that you gain anything by the powers of 10). If, however, you had used the standard "three point approximation", [itex]\frac{f(x+\Delta x)- f(x- \Delta x)}{2\Delta x}, given in any numerical analysis book you would have, for the x-squared problem, [itex]\frac{2.01^2- 1.99^2}{2 (0.01)}= 4, exactly.
For the exponential problem, [itex]\frac{e^{2.01}- e^{1.99}}{2(0.01)}= 7.389179250 (to the 9 decimal places you give). That is 0.000000001 more accurate than your more complicated calculation.

If, as I presume, you are just beginning your study of calculus, you are to be congratulated on working your way through that. But, you need to understand that the derivative is the limit of the difference quotient, not just the difference quotient calculated for some small [itex]\Delta x[/itex].
 
  • #14
Fixing Halls' tex :tongue2: :

HallsofIvy said:
?? Isn't it obvious? one, [itex]\frac{\Delta y}{\Delta z}[/itex] is an approximation to the exact derivative,[itex]\frac{dy}{dx}[/itex].



You must be using a very bad calculator then. The one provided with Windows gives 3.999999999999999999999996, not 4. A good approximation but not the derivative as you have been saying.


Yes, since you have "repaired" what you had before by using [itex]\Delta x= 0.01[/itex] instead of 1, you have a reasonably good approximation to the derivative (though I don't see that you gain anything by the powers of 10). If, however, you had used the standard "three point approximation", [itex]\frac{f(x+\Delta x)- f(x- \Delta x)}{2\Delta x}[/itex], given in any numerical analysis book you would have, for the x-squared problem, [itex]\frac{2.01^2- 1.99^2}{2 (0.01)}= 4[/itex], exactly.
For the exponential problem, [itex]\frac{e^{2.01}- e^{1.99}}{2(0.01)}= 7.389179250[/itex] (to the 9 decimal places you give). That is 0.000000001 more accurate than your more complicated calculation.

If, as I presume, you are just beginning your study of calculus, you are to be congratulated on working your way through that. But, you need to understand that the derivative is the limit of the difference quotient, not just the difference quotient calculated for some small [itex]\Delta x[/itex].

I will add that I'm pretty sure that if you don't include those silly 10^10 factors the angle-averaging actually gives a slightly better result than the usual secant method for [itex]e^x[/itex].
 
  • #15
Yes you are right hallsofIvy, I have started calculus some months ago, & thankyou for the encouragement :)

This is completely true that the answers are not abseloutly the same as diffrentiation in all cases, but the advantage of this expresion is such that we don't need to know the equation of the function which is necessary while diffrentiating, Like the cases with projectile motion of a ball or the movement of cosmological objects, etc...

& about the presence of the 10^10 factor I've tried it on diffrent functions, where I find it more accurate in polynomials when it's present and as you pointed out less acurate for e^x but the diffrences are so small...

The expresion shows a fact when "x" is either minima or maxima;

0 = 10^10*tan(.5(tan-1((f(x+.01)-f(x))/10^8)+tan-1((f(x)-f(x-.01))/10^8)))

-( f(x+0.01) - f(x) ) = ( f(x) - f(x-0.01) )

which means: f(x+0.01)=f(x-0.01)
which is a general truth, (& I think a prove to the validity of the technique)
_______________________________________________________________________

I would be glad for some guidence in the deffrentiation, It seems like I have a serius misunderstanding about the definition of a point, In the school, Iam told that "point is a zero dimensional circle" which is creating a problem, because if so, then we can just draw a huge varity of tangents to the circle with variying gradients, So what I had to conclude at the end was that "a point doesn't exist but extreamly small line segments" to make the varying tangents get fixed, To avoid this disasterous conclusion, I thought diffrentiation is not 100% accurate & delta "x" can't aproch to zero, In this way points could remain as points but the real answer for the gradient of the curve at the point of interest is slightly more than our answer obtained through diffrentiation.

So what is a point?

I'll be thankful if you can provide me a link as a source to solve this confusion...
 
Last edited:
  • #16
Check out,
http://mathworld.wolfram.com/Point.html
for information on a point.

Also, in general you can check,
http://mathworld.wolfram.com/
for information.

However you need a decent math background to really use the site. I remember checking it when I first started taking calc I, and it was a little hard to follow. The more comfortable you become with math, the easier it is to deal with concepts that you have no clue about.

Also, I think you are not understanding how a tangent line is drawn. The line is tangent to a curve AT A POINT. In other words the tangent line crosses a point, but is tangent to the curve NOT tangent to the point itself.
 
  • #17
mubashirmansooor said:
which means: f(x+0.01)=f(x-0.01)
which is a general truth, (& I think a prove to the validity of the technique)

This is just not true. Neither is 0 = 10^10*tan(.5(tan-1((f(x+.01)-f(x))/10^8)+tan-1((f(x)-f(x-.01))/10^8)))
in general for an extrema.

You are thinking about behaviour in finite intervals in terms of an instantaneous rate of change. You just can't do that, you can always find exceptions because derivatives describe only local behaviour and not behaviour in finite intervals around the point at which the derivative is taken.

For an extreme counterexample to the statement I quoted, try

[tex]f(x) = \frac{1}{e^{1000(x-5)}+1} + e^{-(1000(x-5))^2}[/tex]

at the maximum at [itex]x=5[/itex]. I think you'll find that [itex]f(5.01)-f(4.99)[/itex] is not quite 0 :)
 
Last edited:
  • #18
mubashirmansoor said:
I would be glad for some guidence in the deffrentiation, It seems like I have a serius misunderstanding about the definition of a point, In the school, Iam told that "point is a zero dimensional circle" which is creating a problem,

A point sort of is a circle with zero radius. You could also think of it as a square with side length zero, or a line with length zero (or even a sphere with radius zero). But none of those really get to the idea behind a point. I'm not going to try and give a good definition (I don't have one handy, and will probably just confuse you), but think of a point as a single location in space. So the point at (3,3) is ONLY the single location at (3,3), not the location of (3,3) and an infinitely small surrounding area Let's look at time instead... a point in time isn't a small interval of time. Similiarly, a point in space isn't an interval

because if so, then we can just draw a huge varity of tangents to the circle with variying gradients, So what I had to conclude at the end was that "a point doesn't exist but extreamly small line segments" to make the varying tangents get fixed, To avoid this disasterous conclusion, I thought diffrentiation is not 100% accurate & delta "x" can't aproch to zero, In this way points could remain as points but the real answer for the gradient of the curve at the point of interest is slightly more than our answer obtained through diffrentiation.

You aren't trying to be tangent to the point, but tangent to the curve at a specific point. And delta x can approach zero... obviously you can't calculate the difference quotient with delta x AS zero, but the limit is essentially the same thing. Essentially, by taking a limit, you make the most accurate approximation possible (which happens to be 100% accurate).
 
  • #19
Thanks for the guidence,
Data, How many turning points does the equation you have provided contains? though it was quite interesting! By the way, why can't we take dy/dx=0 ?
 
  • #20
woops, I actually made an error there. I'll post a real counterexample when I get home :tongue2:
 
  • #21
Okay, the one I posted before doesn't actually have a maximum at x=5 (so it doesn't work as a counterexample at x=5!). Sorry, I'm not very good at this arithmetic thing :smile:

Here's a slight modification that makes it work as an "extreme" counterexample at x=5 (note that counterexamples abound, but I just want to give you one that will get the point across clearly!):

[tex]f(x) = \frac{1}{e^{(1000(x-5))^3}+1}+e^{-(1000(x-5))^2}.[/tex]

Note that now [itex]\frac{df}{dx}\big|_{x=5}[/itex] is 0 now (it wasn't for the last function I gave you), so you're actually looking at a critical point at least! You can check for yourself that it's a maximum.

And as to your question about turning points (assuming you mean "extrema" by turning points), this one should have two of them.

The previous one also had 2 turning points, but the maximum is at an ugly place (not at x=5) so this one's much nicer.
 
Last edited:
  • #22
Thanks Data, Much better example :)
But there is something special about "f(x+.01)=f(x-.01) where x is either minimum/maximum point", is only applicable for the curves with one turning point...
Now say for example, x^3 which has two turning points fails for what I've mentioned...

Though I'm not sure if it holds for logarithms or not... ( probably No ) :)
 
  • #23
mubashir, I think it's just that f(x+.01) = f(x-.01) for parabolas, and you're making an extreme assumption based on that
 
  • #24
mubashirmansoor said:
Thanks Data, Much better example :)
But there is something special about "f(x+.01)=f(x-.01) where x is either minimum/maximum point", is only applicable for the curves with one turning point...
Now say for example, x^3 which has two turning points fails for what I've mentioned...

Though I'm not sure if it holds for logarithms or not... ( probably No ) :)
You are assuming symmetry: If f(x) is symmetric about a, then [itex]f(a+ \delta)= f(a-\delta)[/itex] for any [itex]\delta[/itex]. It certainly is not true that a function must be symmetric about a "turning point" (where the derivative changes sign). For example,
[tex]f(x)= \left{\begin{array}{c}x^2 if x\le 0 \\ 2x^2 if x> 0\end{array}[/tex]
has a turning point at x= 0 f(0+ .01)= .012= .001 but f(0- .01)= .002 which are not equal.

Oh, and, just out of curiosity, what do you claim are the two turning points of f(x)= x3?
 
  • #25
mubashirmansoor said:
Thanks Data, Much better example :)
But there is something special about "f(x+.01)=f(x-.01) where x is either minimum/maximum point", is only applicable for the curves with one turning point...
Now say for example, x^3 which has two turning points fails for what I've mentioned...

Though I'm not sure if it holds for logarithms or not... ( probably No ) :)

(I am still assuming that by "turning points" you mean "extrema," even though [itex]x^3[/itex] has no extrema...)

No, it's true for the very special class of curves that is symmetric about its turning points (for example, it's also true for [itex]\sin{x}[/itex] which has infinitely many turning points!). Quadratics satisfy this, as do many other functions. And your averaged angle approximation will certainly tell you that the derivative is 0 at the extremum in such cases (though it will not necessarily tell you the exact derivative at other points on the curve, as we already looked at for quadratics!).

You want a counterexample with only one turning point? Try this one:

[tex]f(x)=\frac{1}{x+e^{-1000x}}[/tex]

It has a single turning point (a maximum) at

[tex] x = \frac{3}{1000}\ln{10}.[/tex]

(note this also the only zero of the derivative, and the derivative is continuous, so this function has only one turning point even if by "turning point" you mean "critical point")

And I think you'll find that the difference between sides is even more dramatic than for the last one :)

But as I said, you can find any number of counterexamples. Take [itex]\sin{(x^3)}[/itex], which is a counterexample at every one of its (infinitely many) extrema. Even polynomials with just one extrema are not always symmetric about the extremum: for example, [itex]f(x)=x^4-x^3[/itex] is not symmetric about its only extremum at [itex]x=3/4[/itex]. My previous posts were just trying to show you that depending on the function, the values might not even be close on the two sides!

Continuity means that if you have [itex]\delta[/itex] sufficiently small then you can make [itex]|f(x)-f(x+\delta)| < \epsilon[/itex] for any [itex]\epsilon > 0[/itex], but how small [itex]\delta[/itex] should be depends on what [itex]f[/itex] is (And note that I don't need to be talking about extrema here, it applies at every point where [itex]f[/itex] is continuous!)! And this still does not say that there is any [itex]\delta > 0[/itex] which will make [itex]f(x+\delta) = f(x-\delta)[/itex], you can just get close to it (in general).
 
Last edited:
  • #26
mubashirmansoor said:
The expresion shows a fact when "x" is either minima or maxima;

0 = 10^10*tan(.5(tan-1((f(x+.01)-f(x))/10^8)+tan-1((f(x)-f(x-.01))/10^8)))

-( f(x+0.01) - f(x) ) = ( f(x) - f(x-0.01) )

which means: f(x+0.01)=f(x-0.01)
which is a general truth, (& I think a prove to the validity of the technique)

and since no one has pointed this out yet, this would only be a proof that the technique works when you have an extremum at [itex]x[/itex] (ie. when you already know the derivative is 0). And even then, as we've shown you, your technique still won't give the exact derivative of 0 in many cases, because [itex]f[/itex] isn't always symmetric about turning points.
 
  • #27
You are abseloutly right, Well it's just a simple method for some approximations...
You were all very helpfull, I've learned quite a lot by posting this thread :)

Now I just want to know how you find the formula by considering the point that we don't need the function for getting an approximate for the derivative...
 
  • #28
mubashirmansoor said:
You are abseloutly right, Well it's just a simple method for some approximations...
You were all very helpfull, I've learned quite a lot by posting this thread :)

Now I just want to know how you find the formula by considering the point that we don't need the function for getting an approximate for the derivative...

No problem :smile:

I am not sure exactly what your question is (can you restate it?).

If you mean "what are some approximation methods for derivatives," well, the easiest one is just the secant approximation that Halls has been mentioning,

[tex]\frac{df}{dx} \approx \frac{\Delta{f(x)}}{\Delta{x}} = \frac{f(x+\Delta x) - f(x-\Delta x)}{2\Delta x}.[/tex]

(and the smaller [itex]\Delta x[/itex] is, the better)

The angle-averaging method that you looked at will also give a decent approximation but is a lot more impractical to use because you have to calculate tangents and arctangents. Sometimes its results will be better, and sometimes worse.

Keep in mind that you can't approximate derivatives without knowing something about the function you're trying to do it with - you have to be able to compute its values at different points for either of these to work!
 
Last edited:
  • #29
What I meant was; how you find the method (which you have already answered) and when it comes to haveing an idea about the equation of the function before calculating the derivatives, I don't agree with you,
Let me give you an example;
A projectile motion, let's say a ball (doesn't needs to be conected by any polynomial function), we can draw the motion on the cartesian plane and without having an idea about the function of it's motion calculate it's gradient(at least an approxiate gradient)...
Not bad... :)
Thanks once again, You were very helpfull...
 
  • #30
mubashirmansoor said:
What I meant was; how you find the method (which you have already answered) and when it comes to haveing an idea about the equation of the function before calculating the derivatives, I don't agree with you,
Let me give you an example;
A projectile motion, let's say a ball (doesn't needs to be conected by any polynomial function), we can draw the motion on the cartesian plane and without having an idea about the function of it's motion calculate it's gradient(at least an approxiate gradient)...
Not bad... :)
Thanks once again, You were very helpfull...
How can you possibly "draw the motion on the cartesian plane" without know the height of the ball at each t- in other words "knowing the function". (Do you understand the difference between a function and a formula?)
 
  • #31
Well, We do know the height, but we don't have any type of polynomial ruling the motion... That was what I meant, using the word function was a mistake :)
I'm sorry
 
  • #32
mubashirmansoor said:
Well, We do know the height

Yep, that's what I mean. You have to be able to compute (or measure off of a graph, or something) [itex]f(x+\Delta x )[/itex] and [itex]f(x-\Delta x)[/itex] in order to use those approximations.
 
Last edited:

1. What is the gradient of an unknown function?

The gradient of an unknown function is a vector that represents the rate of change of the function in all directions. It is also known as the slope or derivative of the function.

2. How is the gradient of an unknown function calculated?

The gradient of an unknown function can be calculated by taking the partial derivatives of the function with respect to each of its variables and then organizing them into a vector.

3. What is the significance of the gradient in calculus?

The gradient is an important concept in calculus as it helps us understand how a function changes in different directions. It is also used to find the direction of steepest ascent or descent of a function.

4. Can the gradient of an unknown function be negative?

Yes, the gradient of an unknown function can be negative. This indicates that the function is decreasing in that direction.

5. How is the gradient of an unknown function used in real-world applications?

The gradient of an unknown function has various applications in fields such as physics, engineering, and economics. It is used to optimize functions, determine the direction of flow in fluids, and solve optimization problems in economics.

Similar threads

Replies
14
Views
3K
Replies
207
Views
3K
  • Linear and Abstract Algebra
Replies
5
Views
2K
  • Introductory Physics Homework Help
Replies
3
Views
703
Replies
4
Views
1K
Replies
5
Views
1K
  • General Math
Replies
9
Views
2K
  • Classical Physics
Replies
1
Views
794
Replies
6
Views
1K
Back
Top