With sufficiently complicated integrands, Rubi often leaves integrals in the form
Subst[Int[expr1, x], x, expr2]
where x is the integration variable. I have been unable to find documentation for what Subst actually does: I assume it stands for a substitution of the form x->expr2, but I would like to 'undo' it, and to do that I would need to understand it better. Does it eg. mean that the substitution has already been made in expr1 (if not, my problem would basically be solved, since I could just get expr1 out of this form)?
What I'm after for is a function undoSubst such that, for expr3 for which Int[expr3,x] is of the form of Subst[...], I can call undoSubst[Subst[...]] and have it return expr3.
??Subst
you will get at least a basic idea: "Subst[u,x,v] returns u with all nondummy occurrences of x replaced by v and resulting constant terms replaced by 0." You will also see the code forSubst
, which might help. $\endgroup$Steps[Int[Sin[x]/Sqrt[1 + x], x]]
after loadingRubi
. The steps withSubst
on them are now displayed on the console window. $\endgroup$