M7R0
I._ibp_solveeqnf*6'%(outexprG%(oldtermG%)ibpcoeffG%*derivtermG%'dparamG6%%(newt
ermG%(counterG%*myintegerG6"F.C%>8$-%'expandG6#*&-%%diffG6$9&9("""-%#opG6$F;9'F
;@$-%#isG6#/-F=6$""!F1%"+G?(8%F;F;-%%nopsG6#F1%%trueG@$-FB6$*&-F=6$FJF1F;9%!""%
%realGC%>8&FR>F1*&,&F1F;*&FZF;FUF;FVF;,&F;F;FZF;FV[-%'RETURNG6#,(9$F;FUFVF1FVF.
F.F.F.,
I1_ibp_specifiedfnf*6(%*functionsG%(newexprG%%termGF)%&powerG%(tryhardG6)%)func
tionG%"jG%*localexprG%*exitparamG%$tmpG%)thecoeffGF(F.F.C&>8'%&falseG>FZFU?&F1F
_oFN@$3-%$hasG6$F9-F76$F1-%"$G6$F?F:4-Fhp6$F9-F76$F1-F]q6$F?,&F:F;F;F;@%-FB6#/-
F=6$FGF9%"*GC$?(FJF;F;-FL6#F9FNC$>8(-F=6$FJF9@$3-Fhp6$FdrFjp4-Fhp6$FdrFbq@'-FB6
#/-F=6$FGFdr%"^GC%>8)*&-%&coeffG6$F9)Fjp-F=6$""#FdrF;)Fjp,&F]tF;FVF;F;@$-FB6#/9
)Fbp>FapFNFjn-FB6#/FbsF7C$>Fgs-FjsFipFjnC$-%&printG6#QKError~-~could~not~determ
ine~power~of~term.F.-F\o6#FZ@%-FB6#/FapFNFjnC%>8**&F9F;FgsFV>FZ-F"6'FZF9FgsF[vF
?Fjn@$/F[rFdsC$>Fdr-F=6$F;F9@%Fht@%FftC%>Fgs)Fdr,&-F=6$F_tF9F;FVF;>F[vF\v>FZF^v
FcuC$-F`u6%QAError~-~could~not~parse~the~termF.F9Q".F.FcuFcuF.F.F.F.,
I$ibpt+6'%%exprGFfoF)>Fco7">FgoFbp6-%&expr2GFdo%+exprlengthG%+termlengthGFeoF^p
%"iGFjoF]pF,F(F.F.C(>F1-F36#F_o>FZFK>FJF1@$432FGFU-FB6$FU%(integerGC$-F`u6#QjnE
rror!~Currently~fractional~or~negative~powers~are~unsupported.F.-F\oFM@%4-FB6#/
F?Fjw@%FA?(F[vF;F;FZFNC$>Fdr-F=6$F[vF1>FJ-F`o6(F?FJFdrF9FUF:C$>FdrF1>FJF_z@'FA?
(F[vF;F;FZFNC%>FdrF\z>Fap-FL6#Fdr?(8+F;F;FapFN@$-FB6#/-F=6$FG-F=6$F\[lFdrF7@$-F
B6#/-F=6$F_tFc[lF9C$>8,Fc[l?(8-F;F;,&FUF;F;F;-FB6#/-F=6$FGF]\lF7C$>F]\l-F=6$F;F
]\l@$-FB6#/F_\lFU@%Fa\l-F`u6#Q[sWarning:~you~have~a~derivative~higher~than~the~
power~you~specified.~It~was~ignored.~If~you~are~aware~of~this,~pay~no~heed~to~m
e.F.C%>Fgs-Fjs6$FdrFc[l>8.*&FdrF;FgsFV>FJ-F"6'FJFdrFgsFg]lF9-FB6#/FEFds-F`u6#Qf
qThis~is~a~lone~term.~You~need~to~specify~tryhard=true~and~explicitly~give~func
tions~in~order~to~solve~this.F.C%>FdrF1>FapFiz?(F\[lF;F;FapFN@$F^[l@$Ff[lC$>F]
\lFc[l?(F_\lF;F;F`\lFa\lC$>F]\lFh\l@$F[]l@%Fa\lF_]lC%>FgsFd]l>Fg]lFh]l>FJFj]l-F
\o6#-%)simplifyG6$FJ%%sizeG6#Q`[nThis~utility~integrates~an~expression~by~parts
~in~the~manner~most~likely~to~make~a~mathematician~cry,~picking~out~the~terms~o
f~power~'power'~and~differentiating~with~respect~to~the~other~terms.~Boundary~t
erms~are~always~neglected.~Arguments~are:~the~expression,~the~power~of~derivati
ve~you~wish~to~lower,~the~variable~with~respect~to~which~you~differentiate,~a~l
ist~of~the~functions~which~possess~the~higher~derivatives~which~you~wish~to~int
egrate~(optional),~and~a~boolean~determining~whether~we~integrate~expressions~i
nside~of~powers~or~not~(optional~-~default~no).~If~you~do~not~specify~the~final
~option,~I~will~assume~you~want~to~integrate~all~function~that~have~a~derivativ
e~of~order~'power'.~Written~by~W.~Brenna,~Aug~14~2012.~Version~0.5~-~modified~J
anuary~27,~2013.F.F.F.6#""&F.
