Adding new derivation rule



Hi list,

suppose myF and myG are 2 custom functions such that
diff(myF(x),x)=myG(x)

How can I get Maxima to expand for example

diff(sin(myF(x)),x)

into

myG(x)*cos(myF(x))

and more generally

diff(func(myF(x)),x)

into

myG(x)*diff(func(t),t)|t=myF(x))

where func may be an unknown function.

TIA