From solving the PDE example of the general 1 dim heat equation in Nasser Abbasi's site https://www.12000.org/my_notes/pde_in_CAS/maple_2019_and_mma_12/insu157.htm#x182-1810003.1.1 (his problem No 151) I get the described solution containing the integral
Integrate[f[x] Sin[(\[Pi] x n)/L], {x, 0, L}, Assumptions -> k > 0 && L > 0]
Instead of this output form, how can I display this integral with the integral sign, as it is displayed in Nasser's site, not showing the assumptions? Neither StandardForm nor TraditionalForm does this. Is taking out (e.g. manually) the assumptions from Integrate's arguments the only way? How can I have Mathematica output the solution with the integral displayed with the integral sign and without the assumptions? Can the assumptions (any assumptions) be taken out automatically from Integrate's arguments, e.g. by some kind of replacement? I can't find out what this general replacement rule would have to be.
Thanks for help!
Integrate
's arguments the only way?" - perhaps my definition of "manually" is a little different from yours, but:Integrate[f[x] Sin[(Pi x n)/L], {x, 0, L}, Assumptions -> k > 0 && L > 0] /. HoldPattern[Integrate][fun_, Longest[int : ({__} ..)], rest___] :> Integrate[fun, int]
. If you wish, you could also employInactive[]
somewhere. $\endgroup$Interpretation
:intForm[int : Verbatim[Integrate][f_, x : Except[_Rule] .., opts___Rule]] := Interpretation[ HoldForm[Integrate[f, x]], int]
. Thenintegral // intForm
. $\endgroup$Integrate[]
on the LHS to evaluate. 2. I want the rule to also catch multivariate integrals likeIntegrate[f[x] g[y + a], {x, 0, 1}, {y, 0, 1}, Assumptions -> (a > 0)]
. $\endgroup$