A very simple question: How can I tell to Mathematica that: $\begin{equation} x*\sum_{k=0}^{\infty}\,b_kx^k=\sum_{k=0}^{\infty}\,b_kx^{k+1}\end{equation} $

I tried to multiply but Mathematica gives me only $\begin{equation} x*\sum_{k=0}^{\infty}\,b_kx^k\end{equation}. $ I am trying to apply Frobenius method, and I need to collect the same powers of $x$ in my final equation.


You can use ReplaceAll:

sum = Sum[Subscript[b, k] x^k, {k, 0, Infinity}];
x sum  /. a_. Sum[s_, r__] :> Sum[a s, r]
TeXForm @ %

$\sum _{k=0}^{\infty } b_k x^{k+1}$


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.