FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Forum index » Science and Technology » Math » Symbolic
MuPAD: Differentiation w.r.t. functions.
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
Author Message
Zdenek Hurak
science forum beginner


Joined: 10 May 2005
Posts: 10

PostPosted: Tue May 17, 2005 5:33 am    Post subject: MuPAD: Differentiation w.r.t. functions. Reply with quote

Hello,

I would like to "linearize" a nonlinear differential equation arouns some
"operating point". For example:

Quote:
deq := diff(x(t),t)^2+x(t)*cos(y(t))=u(t)

To do that, I need to find the first terms of multivariate Taylor expansion,
that is, I need to find diff with respect to "variables" dot(x)(t), x(t),
y(t).

How can I do that? Of course, a working way is to substitute "expressions"
for "functions" like:

Quote:
subs(deq,diff(x(t),t)=x_dot)

and then to use diff or even linalg::jacobian w.r.t. variables x, x_dot, y

But is there a more elegant way? The thing is that I have many variables in
the equation and I don't feel like doing the above described substitution
by hand.

Thanks,
Zdenek Hurak
Back to top
Stefan Wehmeier
science forum beginner


Joined: 09 May 2005
Posts: 17

PostPosted: Tue May 17, 2005 9:27 am    Post subject: Re: MuPAD: Differentiation w.r.t. functions. Reply with quote

Zdenek Hurak wrote:

Quote:
Hello,

I would like to "linearize" a nonlinear differential equation arouns some
"operating point". For example:

deq := diff(x(t),t)^2+x(t)*cos(y(t))=u(t)

To do that, I need to find the first terms of multivariate Taylor
expansion, that is, I need to find diff with respect to "variables"
dot(x)(t), x(t), y(t).

How can I do that? Of course, a working way is to substitute "expressions"
for "functions" like:

subs(deq,diff(x(t),t)=x_dot)

and then to use diff or even linalg::jacobian w.r.t. variables x, x_dot, y

But is there a more elegant way? The thing is that I have many variables
in the equation and I don't feel like doing the above described
substitution by hand.


you will have to. This is not a bug, it is to make you think about what you
are doing :-)

For example, you in your situation want to see x(t) and y(t) as independent,
such that diff(x(t), y(t)) = 0. But dx/dy = (dx/dt)*(dt/dy), such that from
another point of view the result should rather be diff(x(t), t)*
diff((y@@-1)(t), t). In other words, differentiating a function with
respect to another function has no common meaning so we won't allow it.

Best regards,

--
Stefan Wehmeier
stefanw@math.uni-paderborn.de
Back to top
Jerzy Karczmarczuk
science forum addict


Joined: 09 May 2005
Posts: 50

PostPosted: Thu May 19, 2005 8:57 am    Post subject: Re: MuPAD: Differentiation w.r.t. functions. Reply with quote

Stefan Wehmeier on the subject raised by Zdenek Hurak, (about
differentiating wrt. function) :


Quote:
For example, you in your situation want to see x(t) and y(t) as independent,
such that diff(x(t), y(t)) = 0. But dx/dy = (dx/dt)*(dt/dy), such that from
another point of view the result should rather be diff(x(t), t)*
diff((y@@-1)(t), t). In other words, differentiating a function with
respect to another function has no common meaning so we won't allow it.

Perhaps no 'common meaning' with *some* meaning of 'common meaning'.
I think nevertheless that it is useful in variational calculus,in
manipulating distributions, etc. The "functional differentiation" is the
everyday bread for many theoretical physicists...

Jerzy Karczmarczuk



--
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
Back to top
Stefan Wehmeier
science forum beginner


Joined: 09 May 2005
Posts: 17

PostPosted: Thu May 19, 2005 9:19 am    Post subject: Re: MuPAD: Differentiation w.r.t. functions. Reply with quote

Jerzy Karczmarczuk wrote:

Quote:
Stefan Wehmeier on the subject raised by Zdenek Hurak, (about
differentiating wrt. function) :


For example, you in your situation want to see x(t) and y(t) as
independent, such that diff(x(t), y(t)) = 0. But dx/dy = (dx/dt)*(dt/dy),
such that from another point of view the result should rather be
diff(x(t), t)* diff((y@@-1)(t), t). In other words, differentiating a
function with respect to another function has no common meaning so we
won't allow it.

Perhaps no 'common meaning' with *some* meaning of 'common meaning'.
I think nevertheless that it is useful in variational calculus,in
manipulating distributions, etc. The "functional differentiation" is the
everyday bread for many theoretical physicists...


ok, you will have to write your own package then ... It should not be too
difficult if you just proceed by substitution as Zdenek suggested. Sorry
for the inconvenience. If there are more theoretical physicists around
here, maybe you share your work and write a MuPAD package for theoretical
physics?


--
Stefan Wehmeier
stefanw@mupad.de
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
The time now is Fri Jan 09, 2009 9:21 pm | All times are GMT
Forum index » Science and Technology » Math » Symbolic
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Generating function for Mathieu funct... cosmicstring@gmail.com Math 1 Fri Jul 21, 2006 8:39 am
No new posts Entire functions, polynomial bounds david petry Math 2 Thu Jul 20, 2006 11:09 pm
No new posts Are Bessel Functions Transcendental? John Schutkeker Math 28 Tue Jul 18, 2006 2:24 am
No new posts scalar functions on non-diagonalizabl... xyz91234@yahoo.com Math 6 Mon Jul 17, 2006 5:37 pm
No new posts Optimization of noisy functions John Herman num-analysis 2 Sat Jul 15, 2006 2:33 pm

Mobile Phone | Unblock Myspace | Myspace Comments | Cash Back Credit Cards | Xecuter 3 Mod Chip
Copyright © 2004-2005 DeniX Solutions SRL
Other DeniX Solutions sites: Electronics forum |  Medicine forum |  Unix/Linux blog |  Unix/Linux documentation |  Unix/Linux forums


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.4082s ][ Queries: 16 (0.2792s) ][ GZIP on - Debug on ]