I'm defining what's called a fractional integral in Mathematica, which acts on a list of functions that depend on $x$:
integral[α_, g_[x_][[i_]], x_] := Integrate[(x-t)^(α-1) g[t][[i]], {t, 0, x}]
with some assumptions that say the $x$ in the bounds is nonzero.
What it does is it takes a function $f(x)$, kept in a list, changes the variable to $t$, and integrates it along with a power law, evaluating the bounds at $0$ and $x$. The problem is that sometimes I have to input a different form of a function, for example,
integral[α, (g[x][[i]])^3, x].
Mathematica doesn't recognize it as a viable function and just returns it back without doing anything.
I need to find a robust pattern that would take any function of $x$ and change it to a function of $t$ inside the integral. Changing, in the definition,
g_[x_][[i_]] -> g_[x_]
doesn't help.
I appreciate any help!
Part
specification in thePattern
when you can justMap
integral
over the list of functions? $\endgroup$