MathGroup Archive 1997

[Date Index] [Thread Index] [Author Index]

Search the Archive

Differentiating functions of vectors

  • To: mathgroup at smc.vnet.net
  • Subject: [mg9424] Differentiating functions of vectors
  • From: Loris Bennett <loris at ferro.physik.TU-Berlin.DE>
  • Date: Wed, 5 Nov 1997 01:56:40 -0500
  • Organization: Technical University of Berlin
  • Sender: owner-wri-mathgroup at wolfram.com

--------------E197FA4B98680772E12058D3

Hello,

If I have a function such as

    f[ a_ , b_ ] := a . b

how do I differentitate w.r.t a certain component without having to
specify
the components of the vector explicitly? I had hoped something like

    fa[ a_ , b_ ] = D[ f [ a . b ] , a[[1]]]

would work, but it doesn't..

All help greatly appreciated.

Loris

================================================================ Loris
Bennett                           Tel.: (+49) 30 314 23762
loris at ferro.physik.tu-berlin.de
http://wwwitp.physik.TU-Berlin.DE:80/~loris/ TU Berlin, PN7-1,
Hardenbergstr. 36, 10632 Berlin, FRG


--------------E197FA4B98680772E12058D3

<HTML>
Hello,

<P>If I have a function such as

<P>&nbsp;&nbsp;&nbsp; f[ a_ , b_ ] := a . b

<P>how do I differentitate w.r.t a certain component without having to
specify
<BR>the components of the vector explicitly? I had hoped something like

<P>&nbsp;&nbsp;&nbsp; fa[ a_ , b_ ] = D[ f [ a . b ] , a[[1]]]

<P>would work, but it doesn't..

<P>All help greatly appreciated.

<P>Loris
<PRE>================================================================
Loris
Bennett&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Tel.: (+49) 30 314 23762&nbsp;
loris at ferro.physik.tu-berlin.de&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<A
HREF="http://wwwitp.physik.TU-Berlin.DE:80/~loris/";>http://wwwitp.physik.TU-Berlin.DE:80/~loris/</A>
TU Berlin, PN7-1, Hardenbergstr. 36, 10632 Berlin, FRG</PRE>
&nbsp;</HTML>

--------------E197FA4B98680772E12058D3--


  • Prev by Date: Re: Book recommendation for engineers
  • Next by Date: installing Mathematica 3.0 on SUN/HP workstations
  • Previous by thread: Re: Printing difficulties in 3.0.0
  • Next by thread: RE: Differentiating functions of vectors