How to write function and its derivative in FOC

Hi, can someone help me with writing the FOCs containing function (and its first derivative) of some variable to dynare? My problem looks like https://drive.google.com/file/d/0B0x5lJ4KqF6FUlV3T3FDYVBma1k/view?usp=sharing.
How to cope with those delta(u) and delta' ?
Thank you very much.
How to cope with those delta(u) and delta' ?
Thank you very much.