From the first principles, find the derivation of (3x-1/2x)

The way you typed it, I would

let f(x) = 3x - (1/2)x
f(x) = (5/2)x , and there would be only that one term

I suspect you have a typo,
Please clarify before I do it.