Question: collect function

Question:collect function

dh 14 Maple
Hi, I'm having trouble getting the collect function to do what I want. Namely, I would expect collect( a*x^b + x^b, x) to return (a+1)*x^b. Here, a and b are variables. Collect only seems to work if either a or b has a defined value (e.g. a=2, b is undetermined). What am I doing wrong here?
Please Wait...