0
$\begingroup$

This is my code:

X := g[P]
P = a*t 
R = t*X

FOC = Dt[R, t] 

This is what I get for the last line:

g[at] + t(a + t Dt[a,t]) g'[at]

This is what I would like to get for the last line:

X + t a (dX/dP)
$\endgroup$
0

2 Answers 2

0
$\begingroup$
x := X[P]
P = a*t
R = t*x
FOC = Dt[R, t, Constants -> a]

(* X[a t] + a t X'[a t] *)
$\endgroup$
1
  • $\begingroup$ Great. Thanks a lot! $\endgroup$
    – Agustin
    Oct 13, 2014 at 13:08
0
$\begingroup$

You could perhaps try the following:

P = a*t
R = t*g[P]
Format[g[x_]] = X
Format[g'[x_]] = dX/dP
FOC = Dt[R, t, Constants -> {a}]
$\endgroup$
1
  • $\begingroup$ Perfect...Thanks! $\endgroup$
    – Agustin
    Oct 13, 2014 at 13:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.