Aakanchha D.

asked • 06/10/15

I need to get the value of this combined partial derivatives in term of individual partial derivatives

How can i write d/dy(d/dx(f(x,y))*delta x*delta y in terms of        d/dx(f(x,y))*delta x    and d/dy(f(x,y))*delta y.
Even an approx value will work

Aakanchha D.

see, The issue is that if I have a software that takes in value of:1) f(x,y); 2) d/dx(f(x,y))*delta x; and 3)d/dy(f(x,y))*delta y independently then how can i get that mixed partial differential values in terms of these three  values only?
 
suppose if my f(x,y)= xy   say it to be C;
then my d/dx(f(x,y))=y say it to be A; d/dy(f(x,y))=x say it to be B; d/dx(d/dy(f(x,y)))=1 say it to be D; then I can write this mixed differential as D= A*B/C;
 
I need a genralise formula for any such function
Report

06/10/15

Keith M.

As long as you are guaranteed that the mixed partial exists at a point, you can simply use one or the other first partial derivative (A or B) to approximate the mixed partial at that point using the symmetric quotient difference method.
 
The gist of the algorithm is to use the approximate definition of the derivative:
2*Δ*∂xi(f(x1,x2,...,xi,...)) = f(x1,x2,...,xi+Δ,...)-f(x1,x2,...,xi-Δ,...)
which converges to the value of the derivative in the limit as Δ approaches 0 (assuming the derivative exists at that point).
 
Since we can't actually evaluate that limit, we just try smaller and smaller values of Δ until the value of ∂xi begins to converge (e.g. when we halve Δ, ∂xi changes by no more than .001, although you can try out different threshold values here).  The one thing to watch out for is that at some points the mixed partial may be undefined!  In this case, your algorithm may need to set a cap on the number of times Δ can be halved (e.g. 1000 iterations) or a cap on the value of ∂xi (e.g. |∂xi| < 1,000,000).  Note, though, that these restrictions are arbitrary and do not guarantee correctness for all inputs.
 
This is the same algorithmic approach taken by most mid-range graphing calculators (e.g. TI-83) to approximate derivatives of functions with respect to one variable.  Although it works well in most cases, it doesn't work everywhere and will get fooled by spots where the derivative does not exist (e.g. TI-83's nDeriv function evaluates to 0 for ∂x(3√x2)|x=0).
Report

06/11/15

1 Expert Answer

By:

Keith M. answered • 06/10/15

Tutor
4.9 (117)

CMU Grad tutoring Mathematics and Computer Science

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.