Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I am new to Mathematica so the my questions might be pretty much at the pupil's level.

If I want to use differentiation to derive:

    (fg)' = f'g + g'f

How can I keep empty symbol f, g from been evaluated for derivative and get 0? For example if I use

    D[f g, x]

I immediately get 0 result. I guess it might be related to hold, but couldn't find out the correct way to get it work.

share|improve this question
1  
Try Dt[f g, x]. –  J. M. Jun 4 '13 at 16:02
2  
Or perhaps, D[f[x] g[x], x]. –  Michael E2 Jun 4 '13 at 16:05
    
Or try D[f[x] g[x], x] –  user21 Jun 4 '13 at 16:05
3  
Michael wins this round –  Jacob Akkerboom Jun 4 '13 at 16:06
2  
Closely related: how to differentiate formally –  Jens Jun 4 '13 at 16:11
add comment

1 Answer

Some alternatives (picked from the comments):

D[f[x] g[x], x]

Dt[f g, x]

f[#] g[#] &'
share|improve this answer
    
Great it is solved! –  JimmyLin Jun 4 '13 at 17:09
    
Thanks! Didn't think of something like f[#] g[#] &'. –  Silvia Jun 4 '13 at 19:43
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.