Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #4997 > unrolled thread
| Started by | Daniel Lichtblau <danl@wolfram.com> |
|---|---|
| First post | 2011-09-16 09:54 +0000 |
| Last post | 2011-09-16 09:54 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Inverse Function Daniel Lichtblau <danl@wolfram.com> - 2011-09-16 09:54 +0000
| From | Daniel Lichtblau <danl@wolfram.com> |
|---|---|
| Date | 2011-09-16 09:54 +0000 |
| Subject | Re: Inverse Function |
| Message-ID | <j4v6d5$c8g$1@smc.vnet.net> |
On 09/15/2011 03:40 AM, Giuseppe Benedetti wrote:
> Hello to everyone,
> I have a function of two variables g[k,s] and I want to compute (symbolically) its inverse with respect to the first variable k (ie keeping s constant). I am therefore looking for a function G[g,s], which I then need to differentiate (twice) with respect to the second variable s. Does anybody know how to do it???
> Thank you in advance.
>
> Giuseppe.
>
Start with the identity
G[g[k, s], s] - k == 0
Differentiate once and twice with respect to k and likewise with respect
to x. All these derivatives are zero. Use that to solve for D[0,2][G] in
terms of derivatives of g.
In[21]:= Derivative[0, 2][G][g[k, s], s] /.
Solve[{D[G[g[k, s], s] - k, k] == 0,
D[G[g[k, s], s] - k, {k, 2}] == 0, D[G[g[k, s], s] - k, s] == 0,
D[G[g[k, s], s] - k, {s, 2}] == 0}, {Derivative[2, 0][G][g[k, s],
s], Derivative[0, 2][G][g[k, s], s],
Derivative[1, 0][G][g[k, s], s], Derivative[0, 1][G][g[k, s], s]}]
Out[21]= {-2*Derivative[0, 1][g][k, s]*
Derivative[1, 1][G][g[k, s], s] -
(Derivative[0, 2][g][k, s] - (Derivative[0, 1][g][k, s]^2*
Derivative[2, 0][g][k, s])/Derivative[1, 0][g][k, s]^2)/
Derivative[1, 0][g][k, s]}
In principle I would have thought we'd also need the second order mixed
derivative, but it seems to have worked without that.
Daniel Lichtblau
Wolfram Research
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web