Hi, this is not an assignment question (nothing I have to hand in anyway), but I am a bit confused about how to compose this:

S: p(x) -> p(x + 1)

R: p(x) -> (x-1)p(x)

Goal is to get the rule for RS: p(x)

R(S(p(x))) = R(p(x+1)) but, is it equal (x + 1 -1)p(x + 1) = xp(x+1) or (x - 1)p(x+1). i.e. is the x in (x-1) whatever is in the brackets, or always x?

I am seeing reasoning for both answers, and am confused.