Question: Why does 'subs' fail?

I was doing some practice problems for Maple, when I encountered this problem:

 

My code is

 

w:=x+2+sin(x+2);

subs(x+2=u,w);

 

The output however did not change both `x+2`'s into `u`.

 

The output was: x+2+sin(u)

 

Any ideas as to why? Thanks in advance.

Please Wait...