Timeline for Differentiate w.r.t. squared variable
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 19, 2017 at 15:03 | history | edited | chuy | CC BY-SA 3.0 |
added options to deal with conatnsts
|
Jan 19, 2017 at 13:51 | vote | accept | Janosh | ||
Jan 19, 2017 at 13:49 | comment | added | Janosh |
Thanks for the inspiration. Since I will apply myD to terms containing multiple independent variables for which Dt gives lots of extra terms containing differentials of variables that should really be treated as constant, I ended up going with the implementation myD[f_,x_^n_]:=FullSimplify[D[f,x]/D[x^n,x]] . For instance, for f[y] = 1/Sqrt[x^2 y^4 + m^4] , myDt , i.e. your implementation gives myDt[f[y],y^3] = (-2 m^3 Dt[m] - x y^3 (y Dt[x] + 2 x Dt[y]))/(3 y^2 (m^4 + x^2 y^4)^( 3/2) Dt[y]) whereas myD yields myD[f[y],y^3] = -((2 x^2 y)/(3 (m^4 + x^2 y^4)^(3/2))) .
|
|
Jan 18, 2017 at 18:13 | history | answered | chuy | CC BY-SA 3.0 |