Please I use below code to calculate partial derivative of U with respect to r and y. I have couple of questions.
I know the derivative of E(k) =(E(k)-K(k))/k. However, the result shows that the answer is E(k) =(E(k)-K(k))/2*k. I do not know why there is 2 in denominator.
Where K(k) and E(k) are complete elliptical integral kind one and two
Clear[r, y, Y, k, U, Ur, Uy]
k = r^3 + y^3;
U := EllipticE[k];
Ur = D[U, y] // FullSimplify
Uy = D[U, r] // FullSimplify
I just returned home, pulled out my ancient copy of Whittaker and Watson, and now see what the issue is. In the documentation for EllipticE in Mathematica one sees that it is defined as
Integrate[(1 - m Sin[t]^2)^(1/2), {t 0, Pi/2}]
whereas other definitions use m^2 as in
Integrate[(1 - m^2 Sin[t]^2)^(1/2), {t 0, Pi/2}]
and this will account for the factor of 1/2 difference between the usages.
So everyone is correct but the definitions of how the modulus parameter is used in the definition differ.
For this code. I am trying to find partial derivative of U with respect to y. I have k^2 = ((4*R*r)/((y - Y)^2 + (r + R)^2)).
My question is.
Do I have to define k= ((4Rr)/((y - Y)^2 + (r + R)^2)) or k=((4Rr)/((y - Y)^2 + (r + R)^2))^1/2`
In order to get denominator without 2? In other words how I can define k to get answer without 2? I still got answer with 2 even when I define k in both cases.
Clear[r, R, y, Y, k, U, Ur, Uy]
k = ((4*R*r)/((y - Y)^2 + (r + R)^2))^1/2;
U = EllipticE[k];
Uy = D[U, y]