How do I take the derivative in respect to c1 for the following utility function?

u1 = log(c1) + log [1/2(x-c1-c2)]

details please