Zurtex said:
Although you can differentiate it in general it won't be possible at its minimum points.
Which is fine, to max/minimize the "calculus way" you look at the critical points, which includes all the points where the derivative does not exist.
cateater2000, you should be able to break this up into a piecewise defined function, if only to convince yourself it is linear in between the integers 0, 1, 3, 4, as arildno mentioned (this will also aid in graphing). You can then differentiate it as usual (with special care at the break points).
f(x)=|x| + 3|x-1| + |x-3|+2|x-4|
when 0<=x<1, all the arguments inside the absolute values are negative except the first, so
f(x)=(x)+3(-(x-1))-(x-3)+2(-(x-4))=-5x+8
when 1<=x<3, the first two arguments are positive, the second two are negative, so
f(x)=(x)+3(x-1)-(x-3)+2(-(x-4))=x+2
You can do the interval 3<=x<=4.
You can now differentiate this guy, and get a piecewise defined function as it's derivative. When 0<x<1, f'(x)=-5, and so on. Note that the derivative is not defined at x=1, or 3 (why?).
I'd strongly suggest you finish what I've started in converting this to a piecewise defined function and draw the graph to give you an idea of how this thing behaves.