Let $A(x)$ be the generating function of the sequence $(a_n)$. What is the generating function of the sequence: $$ c_n = na_{n-1} $$
In principle I know these rules:
$$ GF(a_{n-1}) = xA(x)\\ GF(na_n) = xA'(x) $$
I am not sure how to combine these two though, my idea would have been to basically first compute the generating function for $a_{n-1}$ and then simply apply the second rule (i.e. differentiate the first line) to get something like this:
$$ C(x) = x*(xA(x))' = x(A(x) + xA'(x)) $$
Can someone tell me if that is a valid approach or otherwise point me in the right direction?