Sina R.

asked • 06/27/14

I need to calculate derivative of a function whose parameters are functions of other parameters using MATLAB or Maple

I'm doing some mathematical calculation of some symbolic math that includes multiplication and differentiation of some matrices.
Some of the parameters in my calculations are functions of time. for example I have sin(p) where p is a function of time and when differentiating, it should be like p(dot)*cos(p). There are very big matrices that have large expressions like this and I should differentiate them.
The problem is that I can't perform this in MATLAB (symbolic math toolbox) or Maple.

1 Expert Answer

By:

Christopher D. answered • 06/27/14

Tutor
4.9 (383)

Mathematician and Educator

Sina R.

I can replace it with p(t), but MATLAB doesn't exactly behave in the way I want. I need to differentiate my function wrt p, but treat p as a function of t at the same time.
Report

06/27/14

Christopher D.

I found this by google searching: http://www.mathworks.com/matlabcentral/answers/94623-how-do-i-symbolically-work-with-implicit-functions-i-e-x-t-within-the-symbolic-math-toolbox
 
Let me know if that helps at all. (I wish I knew more about MATLAB.)
Report

06/29/14

Sina R.

Thanks Christopher,
I found the work around in Maple. Of course I got stuck in the next step which is calculation of vector derivative of a matrix. :)
 
I hope I can figure it out.
 
Thanks again
Report

06/29/14

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.