# How to get (fg)' = f'g + g'f?

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.

-
Try Dt[f g, x]. –  Ｊ. Ｍ. Jun 4 '13 at 16:02
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
Michael wins this round –  Jacob Akkerboom Jun 4 '13 at 16:06
Closely related: how to differentiate formally –  Jens Jun 4 '13 at 16:11

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

Thanks! Didn't think of something like f[#] g[#] &'. –  Silvia Jun 4 '13 at 19:43