I have a function f[t]
and I'm really hoping this question has an answer treating this simply as a formal function, and not requiring the input of its closed form. We know the function satisfies the following two constraints
(D[f[t],t])^2 = 4*(f[t])^3 - A*f[t] - B;
D[f[t],{t,2}] = 6*(f[t])^2 - (1/2)*A;
Here, A
and B
are constants with respect to t
.
(Some may have now noticed that I'm talking about the Weierstrass $\wp$-function $\wp(\tau, z)$ where the derivatives are with respect to $z$. However, perhaps I'm wrong, but I don't think I want to use the built-in Mathematica function for $\wp$. I would like to be more formal)
Now, I'm interested in the even number of derivatives D[f[t],{t,2n}]
. It's easy to convince oneself that such an even number of derivatives can be expressed as a polynomial in f
, A
, and B
. The idea is that starting from the second of the two equations above, you can differentiate with respect to t
an even number of times and you can substitute both of the above equations to get rid of the first derivative squared and second derivatives.
Quite simply, my question is the following: can someone help me write a code as a function of $n$ which will spit out the polynomial of f
, A
, and B
which equals D[f[t],{t,2n}]
? I do not want f[t]
to be part of the input; I'd like it to be totally formal or symbolic. This should be able to be done recursively. As I mentioned above, if one is given the $(2n-2)$-th derivative, compute the $2n$-th derivative and then substitute in those two equations I provide where appropriate.
(I'm sorry if this is a hopeless question, I convinced myself it should be possible if I was better at Mathematica!)