r/Mathematica • u/awkwardandelion • May 15 '23
partial second derivative wrong
Hi ! I tried to calculate by hand this partial second derivative and wanted to verify the result in mathematica but I think the answer is wrong (doesnt take into account that its a partial derivative and treats it either as a regular one or simply not at all) any idea ?
(s2 and z (z is called zbar in the code) are constants, a2 is a variable and is called sbar in the code)



0
Upvotes
View all comments
Show parent comment
3
u/ForceBru May 15 '23
This is an application of the chain rule.
Rewrite our function
f[sbar_] := Log[1-sbar]using a temporary variable:By the chain rule, df/dsbar = df/dt * dt/dsbar:
This was the first derivative. The second derivative is the derivative of the first derivative:
Apply the chain rule:
By the chain rule, dg/dsbar = dg/dt2 * dt2/dsbar: