I am having a lot of trouble working with summations in Mathematica, and this is unfortunate as it is my main use case for the application My latest summation issue is the following. I am trying to determine a summation expression of the form: $$f(x) = \sum_{j=0}^\infty \cdots$$ for the function $$f(x) = (y-x)^k \log(y-x),$$ where $x$ is expanded around $0$ and $k$ is an integer that is greater than or equal to $1$.
My code is as follows:
expr = Series[(y - x)^k*Log[y - x], {x, 0, 5}] // Normal
toΣ@expr
I attempted to use this code as it was suggested in a previous question. I believe the first line determines the summation and the second line puts it in the required form. However it doesn't work and I get the following output (which I have truncated at second order):
Out[1]: y^j Log[y]-x y^(-1+j) (1+j Log[y])+1/2 x^2 y^(-2+j) (-1+2 j-j Log[y]+j^2 Log[y])
Out[2]: toΣ[y^j Log[y]-x y^(-1+j) (1+j Log[y])+1/2 x^2 y^(-2+j) (-1+2 j-j Log[y]+j^2 Log[y])]
So what can I do to convert this expression into a clear and concise representation of the following form: $$f(x) = \sum_{j=0}^\infty \cdots$$
toΣ
. However, note thattoΣ
relies onFindSequenceFunction
, which is returning unevaluated. In general,FindSequenceFunction
only works for fairly simple sequences, which this is not. $\endgroup$