The way I do it is with a graphing calculator. If you graph the function and it is a diagonal straight line going across the graph then it is linear. I forgot how to figure it out algebraically so maybe someone else can help you out with that.
I hope this helps :)