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 2004

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

Search the Archive

Re: Forcing a Derivative

  • To: mathgroup at
  • Subject: [mg50776] Re: [mg50753] Forcing a Derivative
  • From: DrBob <drbob at>
  • Date: Sun, 19 Sep 2004 21:39:53 -0400 (EDT)
  • References: <>
  • Reply-to: drbob at
  • Sender: owner-wri-mathgroup at

I thought the answer was easy, but the more I looked into it, the more strange behavior I found. For instance, I expected part of the problem to be that Derivative[2][f * g] doesn't mention x, and f*g isn't a pure function. The same applies to these derivatives, but they both work:



18 #1&

This one works but works strangely:


Function[x, 18*x*f[x] + 2*g[x] + 2*Derivative[1][f][x]* Derivative[1][g][x]]

Mathematica knows f and g or it couldn't have derived that answer; yet it leaves much of it unevaluated. It is correct as far as it goes, however:

D[f[x]*g[x], {x, 2}] // Expand
% == %% // Simplify

46 + 126*x + 60*x^3


On Sun, 19 Sep 2004 03:56:01 -0400 (EDT), Scott Guthery <sguthery at> wrote:

> How does one force Derivative[n] to actually take the derivative?
> For example if ...
> f[x_] = x^2 + 7
> g[x_]=3x^3 + 23
> then
> Derivative[2][f * g]
> just puts a couple of primes on the product rather than actually computing the dervative.
> Thanks for any insight.
> Cheers, Scott

DrBob at

  • Prev by Date: mysql-mlink anyone? I need to make it run under Mac OS X
  • Next by Date: Re: Re: Re: How to simplify to a result that is real
  • Previous by thread: Re: Re: Re: Forcing a Derivative
  • Next by thread: Re: Forcing a Derivative