Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1999

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

Search the Archive

Re: Manipulating differential equations

  • To: mathgroup at
  • Subject: [mg18640] Re: Manipulating differential equations
  • From: Eckhard Hennig <hennig at>
  • Date: Thu, 15 Jul 1999 01:45:37 -0400
  • Organization: ITWM
  • References: <7m6jti$>
  • Sender: owner-wri-mathgroup at

>I would like to insert test functions into an expression that contains
>dg1 = c''[x] + g c'[x]
>I would like e.g. to replace c[x] by Exp[-a x]:
>dg1/.c[x]->Exp[-a x]
>but this doesn't work; one has to put substitution rules for each of the
>derivatives explicitly. Is there a more elegant way to achieve this?

In[1]:= dg1 = c''[x] + g c'[x];

In[2]:= dg1 /. c -> (Exp[-a #]&)

   a         a g
-------- - --------
 -(-a x)    -(-a x)
E          E

-- Eckhard

Dipl.-Ing. Eckhard Hennig      mailto:hennig at
Institut fuer Techno- und Wirtschaftsmathematik e.V. (ITWM)
Erwin-Schroedinger-Strasse,  67663 Kaiserslautern,  Germany
  Voice: +49-(0)631-205-3126    Fax: +49-(0)631-205-4139

     ITWM - Makers of Analog Insydes for Mathematica

  • Prev by Date: Re: Binary System Problem
  • Next by Date: Re: [Q] Extracting patterns
  • Previous by thread: Re: Manipulating differential equations
  • Next by thread: Re: Manipulating differential equations