123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402 |
- Sat Jun 29 13:41:03 PDT 1991
- REDUCE 3.4, 15-Jul-91 ...
- 1: 1:
- 2: 2:
- 3: 3: COMMENT
- THE REDUCE INTEGRATION TEST PACKAGE
- Edited By
- Anthony C. Hearn
- The RAND Corporation
- This file is designed to provide a set of representative tests of the
- Reduce integration package. Not all examples go through, even when an
- integral exists, since some of the arguments are outside the domain of
- applicability of the current package. However, future improvements to
- the package will result in more closed-form evaluations in later
- releases. We would appreciate any additional contributions to this test
- file either because they illustrate some feature (good or bad) of the
- current package, or suggest domains which future versions should handle.
- Any suggestions for improved organization of this test file (e.g., in a
- way which corresponds more directly to the organization of a standard
- integration table book such as Gradshteyn and Ryznik) are welcome.
- Acknowledgments:
- The examples in this file have been contributed by the following.
- Any omissions to this list should be reported to the Editor.
- David M. Dahm
- James H. Davenport
- John P. Fitch
- Steven Harrington
- Anthony C. Hearn
- K. Siegfried Koelbig
- Ernst Krupnikov
- Arthur C. Norman
- Herbert Stoyan
- ;
- Comment we first set up a suitable testing functions;
- fluid '(gcknt!*);
- global '(faillist!* gcnumber!* inittime number!-of!-integrals
- unintlist!*);
- symbolic operator time;
- symbolic procedure initialize!-integral!-test;
- begin
- faillist!* := unintlist!* := nil;
- number!-of!-integrals := 0;
- gcnumber!* := gcknt!*;
- inittime := time()
- end;
- INITIALIZE!-INTEGRAL!-TEST
-
- symbolic procedure summarize!-integral!-test;
- begin scalar totaltime;
- totaltime := time()-inittime;
- prin2t
- " ***** SUMMARY OF INTEGRAL TESTS *****";
- terpri();
- prin2 "Number of integrals tested: ";
- prin2t number!-of!-integrals;
- terpri();
- prin2 "Total time taken: ";
- prin2 totaltime;
- prin2t " ms";
- terpri();
- if gcnumber!*
- then <<prin2 "Number of garbage collections: ";
- prin2t (gcknt!* - gcnumber!*);
- terpri()>>;
- prin2 "Number of incorrect integrals: ";
- prin2t length faillist!*;
- terpri();
- prin2 "Number of unevaluated integrals: ";
- prin2t length unintlist!*;
- terpri();
- if faillist!*
- then <<prin2t "Integrands of incorrect integrals are:";
- for each x in reverse faillist!* do mathprint car x>>;
- if unintlist!*
- then <<prin2t "Integrands of unevaluated integrals are:";
- terpri();
- for each x in reverse unintlist!* do mathprint car x>>
- end;
- SUMMARIZE!-INTEGRAL!-TEST
- procedure testint(a,b);
- begin scalar der,diffce,res,tt;
- tt:=time();
- symbolic (number!-of!-integrals := number!-of!-integrals + 1);
- res:=int(a,b);
- % write "time for integral: ",time()-tt," ms";
- der := df(res,b);
- diffce := der-a;
- if diffce neq 0
- then begin for all x let cot x=cos x/sin x,
- sec x=1/cos x,
- sin x**2=1-cos x**2,
- tan x=sin x/cos x,
- tan(x/2)=sin x/(1+cos x),
- tanh x=
- (e**(x)-e**(-x))/(e**x+e**(-x)),
- coth x= 1/tanh x;
- diffce := diffce;
- for all x clear cot x,sec x,sin x**2,tan x,tan(x/2),
- tanh x,coth x
- end;
- %hopefully, difference appeared non-zero due to absence of
- %above transformations;
- if diffce neq 0
- then <<write
- " ***** DERIVATIVE OF INTEGRAL NOT EQUAL TO INTEGRAND *****";
- symbolic(faillist!* := list(a,b,res,der) . faillist!*)>>;
- symbolic if smemq('int,res)
- then unintlist!* := list(a,b,res) . unintlist!*;
- return res
- end;
- TESTINT
- symbolic initialize!-integral!-test();
- % References are to Gradshteyn and Ryznik.
- testint(1+x+x**2,x);
- 2
- X*(2*X + 3*X + 6)
- --------------------
- 6
- testint(x**2*(2*x**2+x)**2,x);
- 5 2
- X *(60*X + 70*X + 21)
- ------------------------
- 105
- testint(x*(x**2+2*x+1),x);
- 2 2
- X *(3*X + 8*X + 6)
- ---------------------
- 12
- testint(1/x,x);
- LOG(X)
- % 2.01 #2;
- testint((x+1)**3/(x-1)**4,x);
- 3 2
- (3*LOG(X - 1)*X - 9*LOG(X - 1)*X + 9*LOG(X - 1)*X - 3*LOG(X - 1)
- 3 3 2
- - 6*X - 2)/(3*(X - 3*X + 3*X - 1))
- testint(1/(x*(x-1)*(x+1)**2),x);
- (LOG(X - 1)*X + LOG(X - 1) + 3*LOG(X + 1)*X + 3*LOG(X + 1)
- - 4*LOG(X)*X - 4*LOG(X) + 2*X)/(4*(X + 1))
- testint((a*x+b)/((x-p)*(x-q)),x);
- LOG(P - X)*A*P + LOG(P - X)*B - LOG(Q - X)*A*Q - LOG(Q - X)*B
- ---------------------------------------------------------------
- P - Q
- testint(1/(a*x**2+b*x+c),x);
- 2 2*A*X + B
- 2*SQRT(4*A*C - B )*ATAN(------------------)
- 2
- SQRT(4*A*C - B )
- ---------------------------------------------
- 2
- 4*A*C - B
- testint((a*x+b)/(1+x**2),x);
- 2
- LOG(X + 1)*A + 2*ATAN(X)*B
- -----------------------------
- 2
- testint(1/(x**2-2*x+3),x);
- X - 1
- SQRT(2)*ATAN(---------)
- SQRT(2)
- -------------------------
- 2
- % Rational function examples from Hardy, Pure Mathematics, p 253 et seq.
- testint(1/((x-1)*(x**2+1))**2,x);
- 2 3 2 2 2 2
- (LOG(X + 1)*X - LOG(X + 1)*X + LOG(X + 1)*X - LOG(X + 1)
- 3 2
- - 2*LOG(X - 1)*X + 2*LOG(X - 1)*X - 2*LOG(X - 1)*X + 2*LOG(X - 1)
- 3 2 3
- + ATAN(X)*X - ATAN(X)*X + ATAN(X)*X - ATAN(X) - X - 2*X + 1)/(4
- 3 2
- *(X - X + X - 1))
- testint(x/((x-a)*(x-b)*(x-c)),x);
- (LOG(A - X)*A*B - LOG(A - X)*A*C - LOG(B - X)*A*B + LOG(B - X)*B*C
- 2 2 2 2
- + LOG(C - X)*A*C - LOG(C - X)*B*C)/(A *B - A *C - A*B + A*C
- 2 2
- + B *C - B*C )
- testint(x/((x**2+a**2)*(x**2+b**2)),x);
- 2 2 2 2
- - LOG(A + X ) + LOG(B + X )
- --------------------------------
- 2 2
- 2*(A - B )
- testint(x**2/((x**2+a**2)*(x**2+b**2)),x);
- X X
- ATAN(---)*A - ATAN(---)*B
- A B
- ---------------------------
- 2 2
- A - B
- testint(x/((x-1)*(x**2+1)),x);
- 2
- - LOG(X + 1) + 2*LOG(X - 1) + 2*ATAN(X)
- -------------------------------------------
- 4
- testint(x/(1+x**3),x);
- 2*X - 1 2
- 2*SQRT(3)*ATAN(---------) + LOG(X - X + 1) - 2*LOG(X + 1)
- SQRT(3)
- ------------------------------------------------------------
- 6
- testint(x**3/((x-1)**2*(x**3+1)),x);
- 2 2
- ( - 4*LOG(X - X + 1)*X + 4*LOG(X - X + 1) + 9*LOG(X - 1)*X
- - 9*LOG(X - 1) - LOG(X + 1)*X + LOG(X + 1) - 6*X)/(12*(X - 1))
- testint(1/(1+x**4),x);
- 2 2
- (SQRT(2)*( - LOG( - SQRT(2)*X + X + 1) + LOG(SQRT(2)*X + X + 1)
- SQRT(2) - 2*X SQRT(2) + 2*X
- - 2*ATAN(---------------) + 2*ATAN(---------------)))/8
- SQRT(2) SQRT(2)
- testint(x**2/(1+x**4),x);
- 2 2
- (SQRT(2)*(LOG( - SQRT(2)*X + X + 1) - LOG(SQRT(2)*X + X + 1)
- SQRT(2) - 2*X SQRT(2) + 2*X
- - 2*ATAN(---------------) + 2*ATAN(---------------)))/8
- SQRT(2) SQRT(2)
- testint(1/(1+x**2+x**4),x);
- 2*X - 1 2*X + 1
- (2*SQRT(3)*ATAN(---------) + 2*SQRT(3)*ATAN(---------)
- SQRT(3) SQRT(3)
- 2 2
- - 3*LOG(X - X + 1) + 3*LOG(X + X + 1))/12
- % Examples involving a+b*x.
- z := a+b*x;
- Z := A + B*X
- testint(z**p,x);
- P
- (A + B*X) *(A + B*X)
- ----------------------
- B*(P + 1)
- testint(x*z**p,x);
- P 2 2 2 2 2
- (A + B*X) *( - A + A*B*P*X + B *P*X + B *X )
- ------------------------------------------------
- 2 2
- B *(P + 3*P + 2)
- testint(x**2*z**p,x);
- P 3 2 2 2 2 2 2 3 2 3
- ((A + B*X) *(2*A - 2*A *B*P*X + A*B *P *X + A*B *P*X + B *P *X
- 3 3 3 3 3 3 2
- + 3*B *P*X + 2*B *X ))/(B *(P + 6*P + 11*P + 6))
- testint(1/z,x);
- LOG(A + B*X)
- --------------
- B
- testint(1/z**2,x);
- X
- -------------
- A*(A + B*X)
- testint(x/z,x);
- - LOG(A + B*X)*A + B*X
- -------------------------
- 2
- B
- testint(x**2/z,x);
- 2 2 2
- 2*LOG(A + B*X)*A - 2*A*B*X + B *X
- -------------------------------------
- 3
- 2*B
- testint(1/(x*z),x);
- - LOG(A + B*X) + LOG(X)
- --------------------------
- A
- testint(1/(x**2*z),x);
- LOG(A + B*X)*B*X - LOG(X)*B*X - A
- -----------------------------------
- 2
- A *X
- testint(1/(x*z)**2,x);
- 2 2
- (2*LOG(A + B*X)*A*B*X + 2*LOG(A + B*X)*B *X - 2*LOG(X)*A*B*X
- 2 2 2 2 2 3
- - 2*LOG(X)*B *X - A + 2*B *X )/(A *X*(A + B*X))
- testint(1/(c**2+x**2),x);
- X
- ATAN(---)
- C
- -----------
- C
- testint(1/(c**2-x**2),x);
- LOG( - C - X) - LOG(C - X)
- ----------------------------
- 2*C
- % More complicated rational function examples, mostly contributed
- % by David M. Dahm, who also developed the code to integrate them.
- testint(1/(2*x**3-1),x);
- 1/3
- 2/3 2*2 *X + 1 2/3 2 1/3
- (2 *( - 2*SQRT(3)*ATAN(--------------) - LOG(2 *X + 2 *X + 1)
- SQRT(3)
- 1/3
- + 2*LOG(2 *X - 1)))/12
- testint(1/(x**3-2),x);
- 1/3
- 1/3 2 + 2*X 2/3 1/3 2
- (2 *( - 2*SQRT(3)*ATAN(--------------) - LOG(2 + 2 *X + X )
- 1/3
- 2 *SQRT(3)
- 1/3
- + 2*LOG( - 2 + X)))/12
- testint(1/(a*x**3-b),x);
- 1/3 1/3
- 1/3 2/3 2*A *X + B
- (B *A *( - 2*SQRT(3)*ATAN(-----------------)
- 1/3
- B *SQRT(3)
- 2/3 2 1/3 1/3 2/3
- - LOG(A *X + B *A *X + B )
- 1/3 1/3
- + 2*LOG(A *X - B )))/(6*A*B)
- testint(1/(x**4-2),x);
- 1/4 1/4 1/4 X
- 2 *( - LOG(2 + X) + LOG( - 2 + X) - 2*ATAN(------))
- 1/4
- 2
- -------------------------------------------------------------
- 8
- testint(1/(5*x**4-1),x);
- 1/4
- (SQRT(5)*5
- 1/4 1/4 SQRT(5)*X
- *(LOG(5 *X - 1) - LOG(5 *X + 1) - 2*ATAN(-----------)))/20
- 1/4
- 5
- testint(1/(3*x**4+7),x);
- 1/4 1/4 2
- (SQRT(6)*21 *( - LOG( - SQRT(2)*21 *X + SQRT(7) + SQRT(3)*X )
- 1/4 2
- + LOG(SQRT(2)*21 *X + SQRT(7) + SQRT(3)*X )
- 1/4
- SQRT(2)*21 - 2*SQRT(3)*X
- - 2*ATAN(-----------------------------)
- 1/4
- SQRT(2)*21
- 1/4
- SQRT(2)*21 + 2*SQRT(3)*X
- + 2*ATAN(-----------------------------)))/168
- 1/4
- SQRT(2)*21
- testint(1/(x**4+3*x**2-1),x);
- (SQRT(2)*(3*SQRT(SQRT(13) - 3)*SQRT(13)
- *LOG( - SQRT(SQRT(13) - 3) + SQRT(2)*X) - 3
- *SQRT(SQRT(13) - 3)*SQRT(13)
- *LOG(SQRT(SQRT(13) - 3) + SQRT(2)*X) + 13
- *SQRT(SQRT(13) - 3)*LOG( - SQRT(SQRT(13) - 3) + SQRT(2)*X)
- - 13*SQRT(SQRT(13) - 3)*LOG(SQRT(SQRT(13) - 3) + SQRT(2)*X)
- + 6*SQRT(SQRT(13) + 3)*SQRT(13)
- 2*X
- *ATAN(----------------------------)
- SQRT(SQRT(13) + 3)*SQRT(2)
- 2*X
- - 26*SQRT(SQRT(13) + 3)*ATAN(----------------------------)
- SQRT(SQRT(13) + 3)*SQRT(2)
- ))/104
- testint(1/(x**4-3*x**2-1),x);
- (SQRT(2)*( - 6*SQRT(SQRT(13) - 3)*SQRT(13)
- 2*X
- *ATAN(----------------------------)
- SQRT(SQRT(13) - 3)*SQRT(2)
- 2*X
- - 26*SQRT(SQRT(13) - 3)*ATAN(----------------------------)
- SQRT(SQRT(13) - 3)*SQRT(2)
- - 3*SQRT(SQRT(13) + 3)*SQRT(13)
- *LOG( - SQRT(SQRT(13) + 3) + SQRT(2)*X) + 3
- *SQRT(SQRT(13) + 3)*SQRT(13)
- *LOG(SQRT(SQRT(13) + 3) + SQRT(2)*X) + 13
- *SQRT(SQRT(13) + 3)*LOG( - SQRT(SQRT(13) + 3) + SQRT(2)*X)
- - 13*SQRT(SQRT(13) + 3)*LOG(SQRT(SQRT(13) + 3) + SQRT(2)*X)
- ))/104
- testint(1/(x**4-3*x**2+1),x);
- ( - SQRT(5)*LOG( - SQRT(5) + 2*X - 1)
- - SQRT(5)*LOG( - SQRT(5) + 2*X + 1)
- + SQRT(5)*LOG(SQRT(5) + 2*X - 1) + SQRT(5)*LOG(SQRT(5) + 2*X + 1)
- + 5*LOG( - SQRT(5) + 2*X - 1) - 5*LOG( - SQRT(5) + 2*X + 1)
- + 5*LOG(SQRT(5) + 2*X - 1) - 5*LOG(SQRT(5) + 2*X + 1))/20
- testint(1/(x**4-4*x**2+1),x);
- X
- (4*SQRT(SQRT(3) - 2)*SQRT(3)*ATAN(-------------------)
- SQRT(SQRT(3) - 2)
- X
- + 6*SQRT(SQRT(3) - 2)*ATAN(-------------------)
- SQRT(SQRT(3) - 2)
- + 2*SQRT(SQRT(3) + 2)*SQRT(3)*LOG( - SQRT(SQRT(3) + 2) + X)
- - 2*SQRT(SQRT(3) + 2)*SQRT(3)*LOG(SQRT(SQRT(3) + 2) + X)
- - 3*SQRT(SQRT(3) + 2)*LOG( - SQRT(SQRT(3) + 2) + X)
- + 3*SQRT(SQRT(3) + 2)*LOG(SQRT(SQRT(3) + 2) + X))/12
- testint(1/(x**4+4*x**2+1),x);
- ( - 2*SQRT(SQRT(3) - 2)*SQRT(3)*LOG( - SQRT(SQRT(3) - 2) + X)
- + 2*SQRT(SQRT(3) - 2)*SQRT(3)*LOG(SQRT(SQRT(3) - 2) + X)
- - 3*SQRT(SQRT(3) - 2)*LOG( - SQRT(SQRT(3) - 2) + X)
- + 3*SQRT(SQRT(3) - 2)*LOG(SQRT(SQRT(3) - 2) + X)
- X
- - 4*SQRT(SQRT(3) + 2)*SQRT(3)*ATAN(-------------------)
- SQRT(SQRT(3) + 2)
- X
- + 6*SQRT(SQRT(3) + 2)*ATAN(-------------------))/12
- SQRT(SQRT(3) + 2)
- testint(1/(x**4+x**2+2),x);
- ( - SQRT(2*SQRT(2) - 1)*SQRT(2)
- 2
- *LOG( - SQRT(2*SQRT(2) - 1)*X + SQRT(2) + X ) + SQRT(2*SQRT(2) - 1)
- 2
- *SQRT(2)*LOG(SQRT(2*SQRT(2) - 1)*X + SQRT(2) + X ) - 4
- 2
- *SQRT(2*SQRT(2) - 1)*LOG( - SQRT(2*SQRT(2) - 1)*X + SQRT(2) + X )
- 2
- + 4*SQRT(2*SQRT(2) - 1)*LOG(SQRT(2*SQRT(2) - 1)*X + SQRT(2) + X )
- SQRT(2*SQRT(2) - 1) - 2*X
- + 2*SQRT(2*SQRT(2) + 1)*SQRT(2)*ATAN(---------------------------)
- SQRT(2*SQRT(2) + 1)
- SQRT(2*SQRT(2) - 1) + 2*X
- - 2*SQRT(2*SQRT(2) + 1)*SQRT(2)*ATAN(---------------------------)
- SQRT(2*SQRT(2) + 1)
- SQRT(2*SQRT(2) - 1) - 2*X
- - 8*SQRT(2*SQRT(2) + 1)*ATAN(---------------------------)
- SQRT(2*SQRT(2) + 1)
- SQRT(2*SQRT(2) - 1) + 2*X
- + 8*SQRT(2*SQRT(2) + 1)*ATAN(---------------------------))/56
- SQRT(2*SQRT(2) + 1)
- testint(1/(x**4-x**2+2),x);
- SQRT(2*SQRT(2) + 1) - 2*X
- ( - 2*SQRT(2*SQRT(2) - 1)*SQRT(2)*ATAN(---------------------------)
- SQRT(2*SQRT(2) - 1)
- SQRT(2*SQRT(2) + 1) + 2*X
- + 2*SQRT(2*SQRT(2) - 1)*SQRT(2)*ATAN(---------------------------)
- SQRT(2*SQRT(2) - 1)
- SQRT(2*SQRT(2) + 1) - 2*X
- - 8*SQRT(2*SQRT(2) - 1)*ATAN(---------------------------)
- SQRT(2*SQRT(2) - 1)
- SQRT(2*SQRT(2) + 1) + 2*X
- + 8*SQRT(2*SQRT(2) - 1)*ATAN(---------------------------) +
- SQRT(2*SQRT(2) - 1)
- SQRT(2*SQRT(2) + 1)*SQRT(2)
- 2
- *LOG( - SQRT(2*SQRT(2) + 1)*X + SQRT(2) + X ) - SQRT(2*SQRT(2) + 1)
- 2
- *SQRT(2)*LOG(SQRT(2*SQRT(2) + 1)*X + SQRT(2) + X ) - 4
- 2
- *SQRT(2*SQRT(2) + 1)*LOG( - SQRT(2*SQRT(2) + 1)*X + SQRT(2) + X )
- 2
- + 4*SQRT(2*SQRT(2) + 1)*LOG(SQRT(2*SQRT(2) + 1)*X + SQRT(2) + X ))/
- 56
- testint(1/(x**6-1),x);
- 2*X - 1 2*X + 1
- ( - 2*SQRT(3)*ATAN(---------) - 2*SQRT(3)*ATAN(---------)
- SQRT(3) SQRT(3)
- 2 2
- + LOG(X - X + 1) - LOG(X + X + 1) + 2*LOG(X - 1) - 2*LOG(X + 1))/
- 12
- testint(1/(x**6-2),x);
- 1/6
- 1/6 2 - 2*X
- (2 *(2*SQRT(3)*ATAN(--------------)
- 1/6
- 2 *SQRT(3)
- 1/6
- 2 + 2*X 1/6
- - 2*SQRT(3)*ATAN(--------------) - 2*LOG(2 + X)
- 1/6
- 2 *SQRT(3)
- 1/6 1/6 1/3 2
- + 2*LOG( - 2 + X) + LOG( - 2 *X + 2 + X )
- 1/6 1/3 2
- - LOG(2 *X + 2 + X )))/24
- testint(1/(x**6+2),x);
- 1/6 1/6 1/3 2
- (2 *( - SQRT(3)*LOG( - 2 *SQRT(3)*X + 2 + X )
- 1/6 1/3 2
- + SQRT(3)*LOG(2 *SQRT(3)*X + 2 + X )
- 1/6 1/6
- 2 *SQRT(3) - 2*X 2 *SQRT(3) + 2*X
- - 2*ATAN(--------------------) + 2*ATAN(--------------------)
- 1/6 1/6
- 2 2
- X
- + 4*ATAN(------)))/24
- 1/6
- 2
- testint(1/(x**8+1),x);
- 2
- ( - SQRT( - SQRT(2) + 2)*LOG( - SQRT( - SQRT(2) + 2)*X + X + 1)
- 2
- + SQRT( - SQRT(2) + 2)*LOG(SQRT( - SQRT(2) + 2)*X + X + 1)
- SQRT(SQRT(2) + 2) - 2*X
- - 2*SQRT( - SQRT(2) + 2)*ATAN(-------------------------)
- SQRT( - SQRT(2) + 2)
- SQRT(SQRT(2) + 2) + 2*X
- + 2*SQRT( - SQRT(2) + 2)*ATAN(-------------------------)
- SQRT( - SQRT(2) + 2)
- 2
- - SQRT(SQRT(2) + 2)*LOG( - SQRT(SQRT(2) + 2)*X + X + 1)
- 2
- + SQRT(SQRT(2) + 2)*LOG(SQRT(SQRT(2) + 2)*X + X + 1)
- SQRT( - SQRT(2) + 2) - 2*X
- - 2*SQRT(SQRT(2) + 2)*ATAN(----------------------------)
- SQRT(SQRT(2) + 2)
- SQRT( - SQRT(2) + 2) + 2*X
- + 2*SQRT(SQRT(2) + 2)*ATAN(----------------------------))/16
- SQRT(SQRT(2) + 2)
- testint(1/(x**8-1),x);
- 2 2
- (SQRT(2)*LOG( - SQRT(2)*X + X + 1) - SQRT(2)*LOG(SQRT(2)*X + X + 1)
- SQRT(2) - 2*X SQRT(2) + 2*X
- + 2*SQRT(2)*ATAN(---------------) - 2*SQRT(2)*ATAN(---------------)
- SQRT(2) SQRT(2)
- + 2*LOG(X - 1) - 2*LOG(X + 1) - 4*ATAN(X))/16
- testint(1/(x**8-x**4+1),x);
- ( - SQRT( - SQRT(3) + 2)*SQRT(3)
- 2
- *LOG( - SQRT( - SQRT(3) + 2)*X + X + 1)
- 2
- + SQRT( - SQRT(3) + 2)*SQRT(3)*LOG(SQRT( - SQRT(3) + 2)*X + X + 1)
- SQRT(SQRT(3) + 2) - 2*X
- - 2*SQRT( - SQRT(3) + 2)*SQRT(3)*ATAN(-------------------------)
- SQRT( - SQRT(3) + 2)
- SQRT(SQRT(3) + 2) + 2*X
- + 2*SQRT( - SQRT(3) + 2)*SQRT(3)*ATAN(-------------------------)
- SQRT( - SQRT(3) + 2)
- 2
- - 3*SQRT( - SQRT(3) + 2)*LOG( - SQRT( - SQRT(3) + 2)*X + X + 1)
- 2
- + 3*SQRT( - SQRT(3) + 2)*LOG(SQRT( - SQRT(3) + 2)*X + X + 1)
- SQRT(SQRT(3) + 2) - 2*X
- - 6*SQRT( - SQRT(3) + 2)*ATAN(-------------------------)
- SQRT( - SQRT(3) + 2)
- SQRT(SQRT(3) + 2) + 2*X
- + 6*SQRT( - SQRT(3) + 2)*ATAN(-------------------------)
- SQRT( - SQRT(3) + 2)
- 2
- + SQRT(SQRT(3) + 2)*SQRT(3)*LOG( - SQRT(SQRT(3) + 2)*X + X + 1)
- 2
- - SQRT(SQRT(3) + 2)*SQRT(3)*LOG(SQRT(SQRT(3) + 2)*X + X + 1)
- SQRT( - SQRT(3) + 2) - 2*X
- + 2*SQRT(SQRT(3) + 2)*SQRT(3)*ATAN(----------------------------)
- SQRT(SQRT(3) + 2)
- SQRT( - SQRT(3) + 2) + 2*X
- - 2*SQRT(SQRT(3) + 2)*SQRT(3)*ATAN(----------------------------)
- SQRT(SQRT(3) + 2)
- 2
- - 3*SQRT(SQRT(3) + 2)*LOG( - SQRT(SQRT(3) + 2)*X + X + 1)
- 2
- + 3*SQRT(SQRT(3) + 2)*LOG(SQRT(SQRT(3) + 2)*X + X + 1)
- SQRT( - SQRT(3) + 2) - 2*X
- - 6*SQRT(SQRT(3) + 2)*ATAN(----------------------------)
- SQRT(SQRT(3) + 2)
- SQRT( - SQRT(3) + 2) + 2*X
- + 6*SQRT(SQRT(3) + 2)*ATAN(----------------------------))/24
- SQRT(SQRT(3) + 2)
- testint(x**7/(x**12+1),x);
- (2*SQRT(SQRT(3) + 2)*SQRT( - SQRT(3) + 2)*SQRT(3)
- SQRT( - SQRT(3) + 2) - 2*X
- *ATAN(----------------------------) + 2*SQRT(SQRT(3) + 2)
- SQRT(SQRT(3) + 2)
- SQRT( - SQRT(3) + 2) + 2*X
- *SQRT( - SQRT(3) + 2)*SQRT(3)*ATAN(----------------------------) - 2
- SQRT(SQRT(3) + 2)
- *SQRT(SQRT(3) + 2)*SQRT( - SQRT(3) + 2)*SQRT(3)
- SQRT(SQRT(3) + 2) - 2*X
- *ATAN(-------------------------) - 2*SQRT(SQRT(3) + 2)
- SQRT( - SQRT(3) + 2)
- SQRT(SQRT(3) + 2) + 2*X
- *SQRT( - SQRT(3) + 2)*SQRT(3)*ATAN(-------------------------)
- SQRT( - SQRT(3) + 2)
- 2
- + LOG( - SQRT( - SQRT(3) + 2)*X + X + 1)
- 2
- + LOG( - SQRT(SQRT(3) + 2)*X + X + 1)
- 2
- - 2*LOG( - SQRT(2)*X + X + 1)
- 2
- + LOG(SQRT( - SQRT(3) + 2)*X + X + 1)
- 2 2
- + LOG(SQRT(SQRT(3) + 2)*X + X + 1) - 2*LOG(SQRT(2)*X + X + 1))/24
- % Examples involving logarithms.
- testint(log x,x);
- X*(LOG(X) - 1)
- testint(x*log x,x);
- 2
- X *(2*LOG(X) - 1)
- -------------------
- 4
- testint(x**2*log x,x);
- 3
- X *(3*LOG(X) - 1)
- -------------------
- 9
- testint(x**p*log x,x);
- P
- X *X*(LOG(X)*P + LOG(X) - 1)
- ------------------------------
- 2
- P + 2*P + 1
- testint((log x)**2,x);
- 2
- X*(LOG(X) - 2*LOG(X) + 2)
- testint(x**9*log x**11,x);
- 10 11 10 9
- (X *(15625000*LOG(X) - 17187500*LOG(X) + 17187500*LOG(X)
- 8 7 6
- - 15468750*LOG(X) + 12375000*LOG(X) - 8662500*LOG(X)
- 5 4 3
- + 5197500*LOG(X) - 2598750*LOG(X) + 1039500*LOG(X)
- 2
- - 311850*LOG(X) + 62370*LOG(X) - 6237))/156250000
- testint(log x**2/x,x);
- 3
- LOG(X)
- ---------
- 3
- testint(1/log x,x);
- 1
- INT(--------,X)
- LOG(X)
- testint(1/log(x+1),x);
- X
- INT(---------------------------,X) + LOG(LOG(X + 1))
- LOG(X + 1)*X + LOG(X + 1)
- testint(1/(x*log x),x);
- LOG(LOG(X))
- testint(1/(x*log x)**2,x);
- 1
- - (INT(-----------,X)*LOG(X)*X + 1)
- 2
- LOG(X)*X
- --------------------------------------
- LOG(X)*X
- testint((log x)**p/x,x);
- P
- LOG(X) *LOG(X)
- ----------------
- P + 1
- testint(log x *(a*x+b),x);
- X*(2*LOG(X)*A*X + 4*LOG(X)*B - A*X - 4*B)
- -------------------------------------------
- 4
- testint((a*x+b)**2*log x,x);
- 2 2 2 2 2
- (X*(6*LOG(X)*A *X + 18*LOG(X)*A*B*X + 18*LOG(X)*B - 2*A *X
- 2
- - 9*A*B*X - 18*B ))/18
- testint(log x/(a*x+b)**2,x);
- - LOG(A*X + B)*A*X - LOG(A*X + B)*B + LOG(X)*A*X
- ---------------------------------------------------
- A*B*(A*X + B)
- testint(x*log (a*x+b),x);
- 2 2 2 2 2
- 2*LOG(A*X + B)*A *X - 2*LOG(A*X + B)*B - A *X + 2*A*B*X
- ------------------------------------------------------------
- 2
- 4*A
- testint(x**2*log(a*x+b),x);
- 3 3 3 3 3 2 2
- (6*LOG(A*X + B)*A *X + 6*LOG(A*X + B)*B - 2*A *X + 3*A *B*X
- 2 3
- - 6*A*B *X)/(18*A )
- testint(log(x**2+a**2),x);
- 2 2 X
- LOG(A + X )*X + 2*ATAN(---)*A - 2*X
- A
- testint(x*log(x**2+a**2),x);
- 2 2 2 2 2 2 2
- LOG(A + X )*A + LOG(A + X )*X - X
- ----------------------------------------
- 2
- testint(x**2*log(x**2+a**2),x);
- 2 2 3 X 3 2 3
- 3*LOG(A + X )*X - 6*ATAN(---)*A + 6*A *X - 2*X
- A
- ----------------------------------------------------
- 9
- testint(x**4*log(x**2+a**2),x);
- 2 2 5 X 5 4 2 3 5
- 15*LOG(A + X )*X + 30*ATAN(---)*A - 30*A *X + 10*A *X - 6*X
- A
- ------------------------------------------------------------------
- 75
- testint(log(x**2-a**2),x);
- 2 2 2 2
- - LOG( - A + X )*A + LOG( - A + X )*X + 2*LOG( - A - X)*A - 2*X
- testint(log(log(log(log(x)))),x);
- 1
- - INT(-------------------------------------,X)
- LOG(LOG(LOG(X)))*LOG(LOG(X))*LOG(X)
- + LOG(LOG(LOG(LOG(X))))*X
- % Examples involving circular functions.
- testint(sin x,x);
- - COS(X)
- % 2.01 #5;
- testint(cos x,x);
- SIN(X)
- % #6;
- testint(tan x,x);
- 2
- LOG(TAN(X) + 1)
- ------------------
- 2
- % #11;
- testint(1/tan(x),x);
- 2
- - LOG(TAN(X) + 1) + 2*LOG(TAN(X))
- -------------------------------------
- 2
- % 2.01 #12;
- testint(1/(1+tan(x))**2,x);
- 2 2
- ( - LOG(TAN(X) + 1)*TAN(X) - LOG(TAN(X) + 1)
- + 2*LOG(TAN(X) + 1)*TAN(X) + 2*LOG(TAN(X) + 1) + 2*TAN(X))/(4
- *(TAN(X) + 1))
- testint(1/cos x,x);
- X X
- - LOG(TAN(---) - 1) + LOG(TAN(---) + 1)
- 2 2
- testint(1/sin x,x);
- X
- LOG(TAN(---))
- 2
- testint(sin x**2,x);
- - SIN(X)*COS(X) + X
- ----------------------
- 2
- testint(x**3*sin(x**2),x);
- 2 2 2
- SIN(X ) - COS(X )*X
- ----------------------
- 2
- testint(sin x**3,x);
- 2
- - SIN(X) *COS(X) - 2*COS(X) + 2
- ----------------------------------
- 3
- testint(sin x**p,x);
- P
- INT(SIN(X) ,X)
- testint((sin x**2+1)**2*cos x,x);
- 4 2
- SIN(X)*(3*SIN(X) + 10*SIN(X) + 15)
- --------------------------------------
- 15
- testint(cos x**2,x);
- SIN(X)*COS(X) + X
- -------------------
- 2
- testint(cos x**3,x);
- 2
- SIN(X)*( - SIN(X) + 3)
- -------------------------
- 3
- testint(sin(a*x+b),x);
- - COS(A*X + B)
- -----------------
- A
- testint(1/cos x**2,x);
- SIN(X)
- --------
- COS(X)
- testint(sin x*sin(2*x),x);
- SIN(2*X)*COS(X) - 2*SIN(X)*COS(2*X)
- -------------------------------------
- 3
- testint(x*sin x,x);
- SIN(X) - COS(X)*X
- testint(x**2*sin x,x);
- 2
- 2*SIN(X)*X - COS(X)*X + 2*COS(X)
- testint(x*sin x**2,x);
- 2 2
- SIN(X) - 2*SIN(X)*COS(X)*X + X - 2
- --------------------------------------
- 4
- testint(x**2*sin x**2,x);
- 2 2 3
- 6*SIN(X) *X - 6*SIN(X)*COS(X)*X + 3*SIN(X)*COS(X) + 2*X - 3*X
- -----------------------------------------------------------------
- 12
- testint(x*sin x**3,x);
- 3 2
- SIN(X) - 3*SIN(X) *COS(X)*X + 6*SIN(X) - 6*COS(X)*X
- ------------------------------------------------------
- 9
- testint(x*cos x,x);
- SIN(X)*X + COS(X)
- testint(x**2*cos x,x);
- 2
- SIN(X)*X - 2*SIN(X) + 2*COS(X)*X
- testint(x*cos x**2,x);
- 2 2
- - SIN(X) + 2*SIN(X)*COS(X)*X + X + 2
- -----------------------------------------
- 4
- testint(x**2*cos x**2,x);
- 2 2 3
- - 6*SIN(X) *X + 6*SIN(X)*COS(X)*X - 3*SIN(X)*COS(X) + 2*X + 3*X
- --------------------------------------------------------------------
- 12
- testint(x*cos x**3,x);
- 3 2
- - 3*SIN(X) *X - SIN(X) *COS(X) + 9*SIN(X)*X + 7*COS(X) + 1
- -------------------------------------------------------------
- 9
- testint(sin x/x,x);
- SIN(X)
- INT(--------,X)
- X
- testint(cos x/x,x);
- COS(X)
- INT(--------,X)
- X
- testint(sin x/x**2,x);
- SIN(X)
- INT(--------,X)
- 2
- X
- testint(sin x**2/x,x);
- 2
- SIN(X)
- INT(---------,X)
- X
- testint(tan x**3,x);
- 2 2
- - LOG(TAN(X) + 1) + TAN(X)
- -------------------------------
- 2
- % z := a+b*x;
- testint(sin z,x);
- - COS(A + B*X)
- -----------------
- B
- testint(cos z,x);
- SIN(A + B*X)
- --------------
- B
- testint(tan z,x);
- 2
- LOG(TAN(A + B*X) + 1)
- ------------------------
- 2*B
- testint(1/tan z,x);
- 2
- - LOG(TAN(A + B*X) + 1) + 2*LOG(TAN(A + B*X))
- -------------------------------------------------
- 2*B
- testint(1/sin z,x);
- A + B*X
- LOG(TAN(---------))
- 2
- ---------------------
- B
- testint(1/cos z,x);
- A + B*X A + B*X
- - LOG(TAN(---------) - 1) + LOG(TAN(---------) + 1)
- 2 2
- ------------------------------------------------------
- B
- testint(sin z**2,x);
- - SIN(A + B*X)*COS(A + B*X) + B*X
- ------------------------------------
- 2*B
- testint(sin z**3,x);
- 2
- - SIN(A + B*X) *COS(A + B*X) - 2*COS(A + B*X) + 2
- ----------------------------------------------------
- 3*B
- testint(cos z**2,x);
- SIN(A + B*X)*COS(A + B*X) + B*X
- ---------------------------------
- 2*B
- testint(cos z**3,x);
- 2
- SIN(A + B*X)*( - SIN(A + B*X) + 3)
- -------------------------------------
- 3*B
- testint(1/cos z**2,x);
- SIN(A + B*X)
- ----------------
- COS(A + B*X)*B
- testint(1/(1+cos x),x);
- X
- TAN(---)
- 2
- testint(1/(1-cos x),x);
- - 1
- ----------
- X
- TAN(---)
- 2
- testint(1/(1+sin x),x);
- X
- 2*TAN(---)
- 2
- --------------
- X
- TAN(---) + 1
- 2
- testint(1/(1-sin x),x);
- X
- - 2*TAN(---)
- 2
- ---------------
- X
- TAN(---) - 1
- 2
- testint(1/(a+b*sin x),x);
- X
- TAN(---)*A + B
- 2 2 2
- 2*SQRT(A - B )*ATAN(----------------)
- 2 2
- SQRT(A - B )
- ----------------------------------------
- 2 2
- A - B
- testint(1/(a+b*sin x+cos x),x);
- X X
- TAN(---)*A - TAN(---) + B
- 2 2 2 2
- 2*SQRT(A - B - 1)*ATAN(---------------------------)
- 2 2
- SQRT(A - B - 1)
- -------------------------------------------------------
- 2 2
- A - B - 1
- testint(x**2*sin z**2,x);
- 2 2 2
- (6*SIN(A + B*X) *B*X - 6*SIN(A + B*X)*COS(A + B*X)*B *X
- 3 3 3
- + 3*SIN(A + B*X)*COS(A + B*X) + 9*A + 2*B *X - 3*B*X)/(12*B )
- testint(cos x*cos(2*x),x);
- 2*SIN(2*X)*COS(X) - SIN(X)*COS(2*X)
- -------------------------------------
- 3
- testint(x**2*cos z**2,x);
- 2 2 2
- ( - 6*SIN(A + B*X) *B*X + 6*SIN(A + B*X)*COS(A + B*X)*B *X
- 3 3 3
- - 3*SIN(A + B*X)*COS(A + B*X) + 2*B *X + 3*B*X)/(12*B )
- testint(1/tan x**3,x);
- 2 2 2
- LOG(TAN(X) + 1)*TAN(X) - 2*LOG(TAN(X))*TAN(X) - 1
- ------------------------------------------------------
- 2
- 2*TAN(X)
- testint(x**3*tan(x)**4,x);
- 2 2 3 3
- (48*INT(TAN(X)*X ,X) - 6*LOG(TAN(X) + 1) + 4*TAN(X) *X
- 2 2 3 4 2
- - 6*TAN(X) *X - 12*TAN(X)*X + 12*TAN(X)*X + 3*X - 6*X )/12
- testint(x**3*tan(x)**6,x);
- 2 2 5 3
- ( - 276*INT(TAN(X)*X ,X) + 60*LOG(TAN(X) + 1) + 12*TAN(X) *X
- 4 2 3 3 3 2 2
- - 9*TAN(X) *X - 20*TAN(X) *X + 6*TAN(X) *X + 48*TAN(X) *X
- 2 3 4 2
- - 3*TAN(X) + 60*TAN(X)*X - 114*TAN(X)*X - 15*X + 57*X )/60
- testint(x*tan(x)**2,x);
- 2 2
- - LOG(TAN(X) + 1) + 2*TAN(X)*X - X
- ---------------------------------------
- 2
- testint(sin(2*x)*cos(3*x),x);
- 3*SIN(3*X)*SIN(2*X) + 2*COS(3*X)*COS(2*X)
- -------------------------------------------
- 5
- testint(sin x**2*cos x**2,x);
- 3
- 2*SIN(X) *COS(X) - SIN(X)*COS(X) + X
- --------------------------------------
- 8
- testint(1/(sin x**2*cos x**2),x);
- 2
- 2*SIN(X) - 1
- ---------------
- SIN(X)*COS(X)
- testint(d**x*sin x,x);
- X
- D *(SIN(X)*LOG(D) - COS(X))
- -----------------------------
- 2
- LOG(D) + 1
- testint(d**x*cos x,x);
- X
- D *(SIN(X) + COS(X)*LOG(D))
- -----------------------------
- 2
- LOG(D) + 1
- testint(x*d**x*sin x,x);
- X 3 2
- (D *(SIN(X)*LOG(D) *X - SIN(X)*LOG(D) + SIN(X)*LOG(D)*X + SIN(X)
- 2 4
- - COS(X)*LOG(D) *X + 2*COS(X)*LOG(D) - COS(X)*X))/(LOG(D)
- 2
- + 2*LOG(D) + 1)
- testint(x*d**x*cos x,x);
- X 2 3
- (D *(SIN(X)*LOG(D) *X - 2*SIN(X)*LOG(D) + SIN(X)*X + COS(X)*LOG(D) *X
- 2 4
- - COS(X)*LOG(D) + COS(X)*LOG(D)*X + COS(X)))/(LOG(D)
- 2
- + 2*LOG(D) + 1)
- testint(x**2*d**x*sin x,x);
- X 5 2 4 3 2
- (D *(SIN(X)*LOG(D) *X - 2*SIN(X)*LOG(D) *X + 2*SIN(X)*LOG(D) *X
- 3 2
- + 2*SIN(X)*LOG(D) + SIN(X)*LOG(D)*X - 6*SIN(X)*LOG(D)
- 4 2 3
- + 2*SIN(X)*X - COS(X)*LOG(D) *X + 4*COS(X)*LOG(D) *X
- 2 2 2
- - 2*COS(X)*LOG(D) *X - 6*COS(X)*LOG(D) + 4*COS(X)*LOG(D)*X
- 2 6 4 2
- - COS(X)*X + 2*COS(X)))/(LOG(D) + 3*LOG(D) + 3*LOG(D) + 1)
- testint(x**2*d**x*cos x,x);
- X 4 2 3 2 2
- (D *(SIN(X)*LOG(D) *X - 4*SIN(X)*LOG(D) *X + 2*SIN(X)*LOG(D) *X
- 2 2
- + 6*SIN(X)*LOG(D) - 4*SIN(X)*LOG(D)*X + SIN(X)*X - 2*SIN(X)
- 5 2 4 3 2
- + COS(X)*LOG(D) *X - 2*COS(X)*LOG(D) *X + 2*COS(X)*LOG(D) *X
- 3 2
- + 2*COS(X)*LOG(D) + COS(X)*LOG(D)*X - 6*COS(X)*LOG(D)
- 6 4 2
- + 2*COS(X)*X))/(LOG(D) + 3*LOG(D) + 3*LOG(D) + 1)
- testint(x**3*d**x*sin x,x);
- X 7 3 6 2 5 3
- (D *(SIN(X)*LOG(D) *X - 3*SIN(X)*LOG(D) *X + 3*SIN(X)*LOG(D) *X
- 5 4 2 4
- + 6*SIN(X)*LOG(D) *X - 3*SIN(X)*LOG(D) *X - 6*SIN(X)*LOG(D)
- 3 3 3
- + 3*SIN(X)*LOG(D) *X - 12*SIN(X)*LOG(D) *X
- 2 2 2 3
- + 3*SIN(X)*LOG(D) *X + 36*SIN(X)*LOG(D) + SIN(X)*LOG(D)*X
- 2
- - 18*SIN(X)*LOG(D)*X + 3*SIN(X)*X - 6*SIN(X)
- 6 3 5 2 4 3
- - COS(X)*LOG(D) *X + 6*COS(X)*LOG(D) *X - 3*COS(X)*LOG(D) *X
- 4 3 2
- - 18*COS(X)*LOG(D) *X + 12*COS(X)*LOG(D) *X
- 3 2 3 2
- + 24*COS(X)*LOG(D) - 3*COS(X)*LOG(D) *X - 12*COS(X)*LOG(D) *X
- 2 3
- + 6*COS(X)*LOG(D)*X - 24*COS(X)*LOG(D) - COS(X)*X
- 8 6 4 2
- + 6*COS(X)*X))/(LOG(D) + 4*LOG(D) + 6*LOG(D) + 4*LOG(D) + 1
- )
- testint(x**3*d**x*cos x,x);
- X 6 3 5 2 4 3
- (D *(SIN(X)*LOG(D) *X - 6*SIN(X)*LOG(D) *X + 3*SIN(X)*LOG(D) *X
- 4 3 2
- + 18*SIN(X)*LOG(D) *X - 12*SIN(X)*LOG(D) *X
- 3 2 3 2
- - 24*SIN(X)*LOG(D) + 3*SIN(X)*LOG(D) *X + 12*SIN(X)*LOG(D) *X
- 2 3
- - 6*SIN(X)*LOG(D)*X + 24*SIN(X)*LOG(D) + SIN(X)*X
- 7 3 6 2
- - 6*SIN(X)*X + COS(X)*LOG(D) *X - 3*COS(X)*LOG(D) *X
- 5 3 5
- + 3*COS(X)*LOG(D) *X + 6*COS(X)*LOG(D) *X
- 4 2 4 3 3
- - 3*COS(X)*LOG(D) *X - 6*COS(X)*LOG(D) + 3*COS(X)*LOG(D) *X
- 3 2 2 2
- - 12*COS(X)*LOG(D) *X + 3*COS(X)*LOG(D) *X + 36*COS(X)*LOG(D)
- 3 2
- + COS(X)*LOG(D)*X - 18*COS(X)*LOG(D)*X + 3*COS(X)*X
- 8 6 4 2
- - 6*COS(X)))/(LOG(D) + 4*LOG(D) + 6*LOG(D) + 4*LOG(D) + 1)
- testint(sin x*sin(2*x)*sin(3*x),x);
- (6*SIN(3*X)*SIN(2*X)*SIN(X)*X + 3*SIN(3*X)*SIN(X)*COS(2*X)
- - 6*SIN(3*X)*COS(2*X)*COS(X)*X - 8*SIN(2*X)*SIN(X)*COS(3*X)
- + 6*SIN(2*X)*COS(3*X)*COS(X)*X + 6*SIN(X)*COS(3*X)*COS(2*X)*X
- - COS(3*X)*COS(2*X)*COS(X))/24
- testint(cos x*cos(2*x)*cos(3*x),x);
- (SIN(3*X)*SIN(2*X)*SIN(X) + 6*SIN(3*X)*SIN(2*X)*COS(X)*X
- + 6*SIN(3*X)*SIN(X)*COS(2*X)*X + 8*SIN(3*X)*COS(2*X)*COS(X)
- - 6*SIN(2*X)*SIN(X)*COS(3*X)*X - 3*SIN(2*X)*COS(3*X)*COS(X)
- + 6*COS(3*X)*COS(2*X)*COS(X)*X)/24
- testint(sin(x*kx)**3*x**2,x);
- 3 2 2 2
- (6*SIN(X*KX) *X*KX - 9*SIN(X*KX) *COS(X*KX)*X *KX
- 2 2 2
- + 2*SIN(X*KX) *COS(X*KX) + 36*SIN(X*KX)*X*KX - 18*COS(X*KX)*X *KX
- 3
- + 40*COS(X*KX) + 16)/(27*KX )
- testint(x*cos(xi/sin(x))*cos(x)/sin(x)**2,x);
- XI
- COS(--------)*COS(X)*X
- SIN(X)
- INT(------------------------,X)
- 2
- SIN(X)
- % Mixed angles and half angles.
- int(cos(x)/(sin(x)*tan(x/2)),x);
- X
- - (TAN(---)*X + 1)
- 2
- ---------------------
- X
- TAN(---)
- 2
- % This integral produces a messy result because the code for
- % converting half angle tans to sin and cos is not effective enough.
- testint(sin(a*x)/(b+c*sin(a*x))**2,x);
- A*X
- TAN(-----)*B + C
- 2 2 2 2
- ( - 2*SQRT(B - C )*SIN(A*X)*ATAN(------------------)*C
- 2 2
- SQRT(B - C )
- A*X
- TAN(-----)*B + C
- 2 2 2 3
- - 2*SQRT(B - C )*ATAN(------------------)*B*C - COS(A*X)*B
- 2 2
- SQRT(B - C )
- 2 4 2 3 5
- + COS(A*X)*B*C )/(A*(SIN(A*X)*B *C - 2*SIN(A*X)*B *C + SIN(A*X)*C
- 5 3 2 4
- + B - 2*B *C + B*C ))
- % Examples involving logarithms and circular functions.
- testint(sin log x,x);
- X*(SIN(LOG(X)) - COS(LOG(X)))
- -------------------------------
- 2
- testint(cos log x,x);
- X*(SIN(LOG(X)) + COS(LOG(X)))
- -------------------------------
- 2
- % Examples involving exponentials.
- testint(e**x,x);
- X
- E
- % 2.01 #3;
- testint(a**x,x);
- X
- A
- --------
- LOG(A)
- % 2.01 #4;
- testint(e**(a*x),x);
- A*X
- E
- ------
- A
- testint(e**(a*x)/x,x);
- A*X
- E
- INT(------,X)
- X
- testint(1/(a+b*e**(m*x)),x);
- M*X
- - LOG(E *B + A) + M*X
- --------------------------
- A*M
- testint(e**(2*x)/(1+e**x),x);
- X X
- E - LOG(E + 1)
- testint(e**(2*x)*e**(a*x),x);
- A*X + 2*X
- E
- ------------
- A + 2
- testint(1/(a*e**(m*x)+b*e**(-m*x)),x);
- M*X
- E *A
- SQRT(B)*SQRT(A)*ATAN(-----------------)
- SQRT(B)*SQRT(A)
- -----------------------------------------
- A*B*M
- testint(x*e**(a*x),x);
- A*X
- E *(A*X - 1)
- ----------------
- 2
- A
- testint(x**20*e**x,x);
- X 20 19 18 17 16 15
- E *(X - 20*X + 380*X - 6840*X + 116280*X - 1860480*X
- 14 13 12
- + 27907200*X - 390700800*X + 5079110400*X
- 11 10 9
- - 60949324800*X + 670442572800*X - 6704425728000*X
- 8 7 6
- + 60339831552000*X - 482718652416000*X + 3379030566912000*X
- 5 4
- - 20274183401472000*X + 101370917007360000*X
- 3 2
- - 405483668029440000*X + 1216451004088320000*X
- - 2432902008176640000*X + 2432902008176640000)
- testint(a**x/b**x,x);
- X
- A
- ----------------------
- X
- B *(LOG(A) - LOG(B))
- testint(a**x*b**x,x);
- X X
- B *A
- -----------------
- LOG(A) + LOG(B)
- testint(a**x/x**2,x);
- X
- A
- INT(----,X)
- 2
- X
- testint(x*a**x/(1+b*x)**2,x);
- X
- X A
- (A - INT(-------------------,X)*LOG(A)*B*X
- 2 2
- B *X + 2*B*X + 1
- X
- A
- - INT(-------------------,X)*LOG(A)
- 2 2
- B *X + 2*B*X + 1
- X X
- A 2 A
- + INT(-------------------,X)*B *X + INT(-------------------,X)*B)/(
- 2 2 2 2
- B *X + 2*B*X + 1 B *X + 2*B*X + 1
- LOG(A)*B*(B*X + 1))
- testint(x*e**(a*x)/(1+a*x)**2,x);
- A*X
- E
- --------------
- 2
- A *(A*X + 1)
- testint(x*k**(x**2),x);
- 2
- X
- K
- ----------
- 2*LOG(K)
- testint(e**(x**2),x);
- 2
- X
- INT(E ,X)
- testint(x*e**(x**2),x);
- 2
- X
- E
- -----
- 2
- testint((x+1)*e**(1/x)/x**4,x);
- 1/X 2
- E *( - X + X - 1)
- ----------------------
- 2
- X
- testint((2*x**3+x)*(e**(x**2))**2*e**(1-x*e**(x**2))/(1-x*e**(x**2))**2,
- x);
- - E
- --------------------
- 2
- X 2
- E *X X
- E *(E *X - 1)
- testint(e**(e**(e**(e**x))),x);
- X
- E
- E
- E
- INT(E ,X)
- % Examples involving exponentials and logarithms.
- testint(e**x*log x,x);
- X
- X E
- E *LOG(X) - INT(----,X)
- X
- testint(x*e**x*log x,x);
- X
- X X X E
- E *LOG(X)*X - E *LOG(X) - E + INT(----,X)
- X
- testint(e**(2*x)*log(e**x),x);
- 2*X
- E *(2*X - 1)
- ----------------
- 4
- % Examples involving square roots.
- testint(sqrt(2)*x**2 + 2*x,x);
- 2
- X *(SQRT(2)*X + 3)
- --------------------
- 3
- testint(log x/sqrt(a*x+b),x);
- (2
- SQRT(A*X + B)
- *(SQRT(A*X + B)*LOG(X) - 2*SQRT(A*X + B) - INT(---------------,X)*B)
- 2
- A*X + B*X
- )/A
- u:=sqrt(a+b*x);
- U := SQRT(A + B*X)
- v:=sqrt(c+d*x);
- V := SQRT(C + D*X)
- testint(u*v,x);
- (2*SQRT(C + D*X)*SQRT(A + B*X)*A*D
- + 2*SQRT(C + D*X)*SQRT(A + B*X)*B*C
- + 4*SQRT(C + D*X)*SQRT(A + B*X)*B*D*X
- SQRT(C + D*X)*SQRT(A + B*X) 2 2
- - INT(------------------------------,X)*A *D
- 2
- A*C + A*D*X + B*C*X + B*D*X
- SQRT(C + D*X)*SQRT(A + B*X)
- + 2*INT(------------------------------,X)*A*B*C*D
- 2
- A*C + A*D*X + B*C*X + B*D*X
- SQRT(C + D*X)*SQRT(A + B*X) 2 2
- - INT(------------------------------,X)*B *C )/(8*B*D)
- 2
- A*C + A*D*X + B*C*X + B*D*X
- testint(u,x);
- 2*SQRT(A + B*X)*(A + B*X)
- ---------------------------
- 3*B
- testint(x*u,x);
- 2 2 2
- 2*SQRT(A + B*X)*( - 2*A + A*B*X + 3*B *X )
- ---------------------------------------------
- 2
- 15*B
- testint(x**2*u,x);
- 3 2 2 2 3 3
- 2*SQRT(A + B*X)*(8*A - 4*A *B*X + 3*A*B *X + 15*B *X )
- ----------------------------------------------------------
- 3
- 105*B
- testint(u/x,x);
- SQRT(A + B*X)
- 2*SQRT(A + B*X) + INT(---------------,X)*A
- 2
- A*X + B*X
- testint(u/x**2,x);
- SQRT(A + B*X)
- - 2*SQRT(A + B*X) + INT(---------------,X)*B*X
- 2
- A*X + B*X
- -------------------------------------------------
- 2*X
- testint(1/u,x);
- 2*SQRT(A + B*X)
- -----------------
- B
- testint(x/u,x);
- 2*SQRT(A + B*X)*( - 2*A + B*X)
- --------------------------------
- 2
- 3*B
- testint(x**2/u,x);
- 2 2 2
- 2*SQRT(A + B*X)*(8*A - 4*A*B*X + 3*B *X )
- --------------------------------------------
- 3
- 15*B
- testint(1/(x*u),x);
- SQRT(A + B*X)
- INT(---------------,X)
- 2
- A*X + B*X
- testint(1/(x**2*u),x);
- SQRT(A + B*X)
- - 2*SQRT(A + B*X) - INT(---------------,X)*B*X
- 2
- A*X + B*X
- -------------------------------------------------
- 2*A*X
- testint(u**p,x);
- P/2
- 2*(A + B*X) *(A + B*X)
- --------------------------
- B*(P + 2)
- testint(x*u**p,x);
- P/2 2 2 2 2 2
- 2*(A + B*X) *( - 2*A + A*B*P*X + B *P*X + 2*B *X )
- --------------------------------------------------------
- 2 2
- B *(P + 6*P + 8)
- testint(atan((-sqrt(2)+2*x)/sqrt(2)),x);
- 2
- ( - SQRT(2)*LOG( - SQRT(2)*X + X + 1)
- SQRT(2) - 2*X SQRT(2) - 2*X
- + 2*SQRT(2)*ATAN(---------------) - 4*ATAN(---------------)*X)/4
- SQRT(2) SQRT(2)
- testint(1/sqrt(x**2-1),x);
- 2
- SQRT(X - 1)
- INT(--------------,X)
- 2
- X - 1
- testint(sqrt(x+1)*sqrt x,x);
- (4*SQRT(X)*SQRT(X + 1)*X + 2*SQRT(X)*SQRT(X + 1)
- SQRT(X)*SQRT(X + 1)
- - INT(---------------------,X))/8
- 2
- X + X
- % Examples from James Davenport's thesis:
- testint(1/sqrt(x**2-1)+10/sqrt(x**2-4),x);
- 2 2 2 2
- SQRT(X - 4)*X SQRT(X - 1)*X
- 10*INT(-----------------,X) + INT(-----------------,X)
- 4 2 4 2
- X - 5*X + 4 X - 5*X + 4
- 2 2
- SQRT(X - 4) SQRT(X - 1)
- - 10*INT(---------------,X) - 4*INT(---------------,X)
- 4 2 4 2
- X - 5*X + 4 X - 5*X + 4
- % p. 173
- testint(sqrt(x+sqrt(x**2+a**2))/x,x);
- 2 2
- SQRT(SQRT(A + X ) + X)
- INT(-------------------------,X)
- X
- % Examples generated by differentiating various functions.
- testint(df(sqrt(1+x**2)/(1-x),x),x);
- 2
- - SQRT(X + 1)
- -----------------
- X - 1
- testint(df(log(x+sqrt(1+x**2)),x),x);
- 2
- SQRT(X + 1)
- INT(--------------,X)
- 2
- X + 1
- testint(df(sqrt(x)+sqrt(x+1)+sqrt(x+2),x),x);
- SQRT(X + 2) + SQRT(X + 1) + SQRT(X)
- testint(df(sqrt(x**5-2*x+1)-sqrt(x**3+1),x),x);
- 5 3
- SQRT(X - 2*X + 1) - SQRT(X + 1)
- % Another such example from James Davenport's thesis (p. 146).
- % It contains a point of order 3, which is found by use of Mazur's
- % bound on the torsion of elliptic curves over the rationals;
- testint(df(log(1+sqrt(x**3+1)),x),x);
- 3
- SQRT(X + 1)
- 3*( - INT(--------------,X) + LOG(X))
- 4
- X + X
- ---------------------------------------
- 2
- % Examples quoted by Joel Moses:
- testint(1/sqrt(2*h*r**2-alpha**2),r);
- 2 2
- SQRT(2*H*R - ALPHA )
- INT(-----------------------,R)
- 2 2
- 2*H*R - ALPHA
- testint(1/(r*sqrt(2*h*r**2-alpha**2-epsilon**2)),r);
- 2 2 2
- SQRT(2*H*R - ALPHA - EPSILON )
- INT(----------------------------------,R)
- 3 2 2
- 2*H*R - R*ALPHA - R*EPSILON
- testint(1/(r*sqrt(2*h*r**2-alpha**2-2*k*r)),r);
- 2 2
- SQRT(2*H*R - 2*K*R - ALPHA )
- INT(-------------------------------,R)
- 3 2 2
- 2*H*R - 2*K*R - R*ALPHA
- testint(1/(r*sqrt(2*h*r**2-alpha**2-epsilon**2-2*k*r)),r);
- 2 2 2
- SQRT(2*H*R - 2*K*R - ALPHA - EPSILON )
- INT(------------------------------------------,R)
- 3 2 2 2
- 2*H*R - 2*K*R - R*ALPHA - R*EPSILON
- testint(r/sqrt(2*e*r**2-alpha**2),r);
- 2 2
- SQRT(2*E*R - ALPHA )
- -----------------------
- 2*E
- testint(r/sqrt(2*e*r**2-alpha**2-epsilon**2),r);
- 2 2 2
- SQRT(2*E*R - ALPHA - EPSILON )
- ----------------------------------
- 2*E
- testint(r/sqrt(2*e*r**2-alpha**2-2*k*r**4),r);
- 2 4 2
- SQRT(2*E*R - 2*K*R - ALPHA )*R
- INT(----------------------------------,R)
- 2 4 2
- 2*E*R - 2*K*R - ALPHA
- testint(r/sqrt(2*e*r**2-alpha**2-2*k*r),r);
- 2 2
- (SQRT(2*E*R - 2*K*R - ALPHA )
- 2 2
- SQRT(2*E*R - 2*K*R - ALPHA )
- + INT(-------------------------------,R)*K)/(2*E)
- 2 2
- 2*E*R - 2*K*R - ALPHA
- testint(1/(r*sqrt(2*h*r**2-alpha**2-2*k*r**4)),r);
- 2 4 2
- SQRT(2*H*R - 2*K*R - ALPHA )
- INT(--------------------------------,R)
- 3 5 2
- 2*H*R - 2*K*R - R*ALPHA
- testint(1/(r*sqrt(2*h*r**2-alpha**2-epsilon**2-2*k*r**4)),r);
- 2 4 2 2
- SQRT(2*H*R - 2*K*R - ALPHA - EPSILON )
- INT(-------------------------------------------,R)
- 3 5 2 2
- 2*H*R - 2*K*R - R*ALPHA - R*EPSILON
- Comment many of these integrals used to require Steve Harrington's
- code to evaluate. They originated in Novosibirsk as examples
- of using Analytik. There are still a few examples that could
- be evaluated using better heuristics;
- testint(a*sin(3*x+5)**2*cos(3*x+5),x);
- 3
- SIN(3*X + 5) *A
- -----------------
- 9
- testint(log(x**2)/x**3,x);
- 2
- - (LOG(X ) + 1)
- ------------------
- 2
- 2*X
- testint(x*sin(x+a),x);
- SIN(A + X) - COS(A + X)*X
- testint((log(x)*(1-x)-1)/(e**x*log(x)**2),x);
- X
- -----------
- X
- E *LOG(X)
- testint(x**3*(a*x**2+b)**(-1),x);
- 2 2
- - LOG(A*X + B)*B + A*X
- ---------------------------
- 2
- 2*A
- testint(x**(1/2)*(x+1)**(-7/2),x);
- 2*SQRT(X)*SQRT(X + 1)*X*(2*X + 5)
- -----------------------------------
- 3 2
- 15*(X + 3*X + 3*X + 1)
- testint(x**(-1)*(x+1)**(-1),x);
- - LOG(X + 1) + LOG(X)
- testint(x**(-1/2)*(2*x-1)**(-1),x);
- SQRT(X)
- INT(----------,X)
- 2
- 2*X - X
- testint((x**2+1)*x**(1/2),x);
- 2
- 2*SQRT(X)*X*(3*X + 7)
- ------------------------
- 21
- testint(x**(-1)*(x-a)**(1/3),x);
- 1/3
- 1/3 ( - A + X)
- 3*( - A + X) + INT(---------------,X)*A
- 2
- A*X - X
- testint(x*sinh(x),x);
- COSH(X)*X - SINH(X)
- testint(x*cosh(x),x);
- - COSH(X) + SINH(X)*X
- testint(sinh(2*x)/cosh(2*x),x);
- LOG(COSH(2*X))
- ----------------
- 2
- testint((i*eps*sinh x-1)/(eps*i*cosh x+i*a-x),x);
- LOG(COSH(X)*I*EPS + A*I - X)
- testint(sin(2*x+3)*cos(x)**2,x);
- 2
- ( - 4*SIN(2*X + 3)*SIN(X) *X + 2*SIN(2*X + 3)*X
- 2
- + 2*SIN(X) *COS(2*X + 3) - 4*SIN(X)*COS(2*X + 3)*COS(X)*X
- - 3*COS(2*X + 3) + 3)/8
- testint(x*atan(x),x);
- 2
- ATAN(X)*X + ATAN(X) - X
- --------------------------
- 2
- testint(x*acot(x),x);
- 2
- ACOT(X)*X + ACOT(X) + X
- --------------------------
- 2
- testint(x*log(x**2+a),x);
- 2 2 2 2
- LOG(A + X )*A + LOG(A + X )*X - X
- -------------------------------------
- 2
- testint(sin(x+a)*cos(x),x);
- SIN(A + X)*COS(X)*X - SIN(X)*COS(A + X)*X - COS(A + X)*COS(X)
- ---------------------------------------------------------------
- 2
- testint(cos(x+a)*sin(x),x);
- - SIN(A + X)*COS(X)*X + SIN(X)*COS(A + X)*X - COS(A + X)*COS(X)
- ------------------------------------------------------------------
- 2
- testint((1+sin(x))**(1/2),x);
- INT(SQRT(SIN(X) + 1),X)
- testint((1-sin(x))**(1/2),x);
- INT(SQRT( - SIN(X) + 1),X)
- testint((1+cos(x))**(1/2),x);
- INT(SQRT(COS(X) + 1),X)
- testint((1-cos(x))**(1/2),x);
- INT(SQRT( - COS(X) + 1),X)
- testint(1/(x**(1/2)-(x-1)**(1/2)),x);
- 2*(SQRT(X - 1)*X - SQRT(X - 1) + SQRT(X)*X)
- ---------------------------------------------
- 3
- testint(1/(1-(x+1)**(1/2)),x);
- SQRT(X + 1)
- - 2*SQRT(X + 1) - INT(-------------,X) - LOG(X)
- 2
- X + X
- testint(x/(x**4+36)**(1/2),x);
- 4
- SQRT(X + 36)*X
- INT(-----------------,X)
- 4
- X + 36
- testint(1/(x**(1/3)+x**(1/2)),x);
- 1
- INT(----------------,X)
- 1/3
- X + SQRT(X)
- testint(log(2+3*x**2),x);
- 3*X 2
- 2*SQRT(6)*ATAN(---------) + 3*LOG(3*X + 2)*X - 6*X
- SQRT(6)
- -----------------------------------------------------
- 3
- testint(cot(x),x);
- X 2 X
- - LOG(TAN(---) + 1) + LOG(TAN(---))
- 2 2
- testint(cot x**4,x);
- 3
- - COT(X) + 3*COT(X) + 3*X
- -----------------------------
- 3
- testint(tanh(x),x);
- 2*X
- LOG(E + 1) - X
- testint(coth(x),x);
- X X
- LOG(E - 1) + LOG(E + 1) - X
- testint(b**x,x);
- X
- B
- --------
- LOG(B)
- testint((x**4+x**(-4)+2)**(1/2),x);
- 4
- X - 3
- --------
- 3*X
- testint((2*x+1)/(3*x+2),x);
- - LOG(3*X + 2) + 6*X
- -----------------------
- 9
- testint(x*log(x+(x**2+1)**(1/2)),x);
- 2
- INT(LOG(SQRT(X + 1) + X)*X,X)
- testint(x*(e**x*sin(x)+1)**2,x);
- 2*X 2 2*X 2*X
- (2*E *SIN(X) *X - 2*E *SIN(X)*COS(X)*X + E *SIN(X)*COS(X)
- 2*X 2*X X X X
- + E *X - E + 8*E *SIN(X)*X - 8*E *COS(X)*X + 8*E *COS(X)
- 2
- + 4*X )/8
- testint(x*e**x*cos(x),x);
- X
- E *(SIN(X)*X - SIN(X) + COS(X)*X)
- -----------------------------------
- 2
- Comment the following set came from Herbert Stoyan;
- testint(1/(x-3)**4,x);
- - 1
- ---------------------------
- 3 2
- 3*(X - 9*X + 27*X - 27)
- testint(x/(x**3-1),x);
- 2*X + 1 2
- 2*SQRT(3)*ATAN(---------) - LOG(X + X + 1) + 2*LOG(X - 1)
- SQRT(3)
- ------------------------------------------------------------
- 6
- testint(x/(x**4-1),x);
- 2
- - LOG(X + 1) + LOG(X - 1) + LOG(X + 1)
- ------------------------------------------
- 4
- testint(log(x)*(x**3+1)/(x**4+2),x);
- LOG(X) LOG(X) 2
- - 4*INT(----------,X) + 2*INT(--------,X) + LOG(X)
- 5 4
- X + 2*X X + 2
- ------------------------------------------------------
- 2
- testint(log(x)+log(x+1)+log(x+2),x);
- LOG(X + 2)*X + 2*LOG(X + 2) + LOG(X + 1)*X + LOG(X + 1) + LOG(X)*X
- - 3*X
- testint(1/(x**3+5),x);
- 1/3
- 1/3 5 - 2*X 2/3 1/3 2
- (5 *( - 2*SQRT(3)*ATAN(--------------) - LOG(5 - 5 *X + X )
- 1/3
- SQRT(3)*5
- 1/3
- + 2*LOG(5 + X)))/30
- testint(1/sqrt(1+x**2),x);
- 2
- SQRT(X + 1)
- INT(--------------,X)
- 2
- X + 1
- testint(sqrt(x**2+3),x);
- 2
- 2 SQRT(X + 3)
- SQRT(X + 3)*X + 3*INT(--------------,X)
- 2
- X + 3
- ------------------------------------------
- 2
- testint(x/(x+1)**2,x);
- LOG(X + 1)*X + LOG(X + 1) - X
- -------------------------------
- X + 1
- COMMENT The following integrals were used among others as a test of
- Moses' SIN program;
- testint(asin x,x);
- INT(ASIN(X),X)
- testint(x**2*asin x,x);
- 2
- INT(ASIN(X)*X ,X)
- testint(sec x**2/(1+sec x**2-3*tan x),x);
- X X
- LOG( - SQRT(5) + 2*TAN(---) + 1) - LOG( - SQRT(2) + TAN(---) + 1)
- 2 2
- X X
- + LOG(SQRT(5) + 2*TAN(---) + 1) - LOG(SQRT(2) + TAN(---) + 1)
- 2 2
- testint(1/sec x**2,x);
- SIN(X)*COS(X) + X
- -------------------
- 2
- testint((5*x**2-3*x-2)/(x**2*(x-2)),x);
- 3*LOG(X - 2)*X + 2*LOG(X)*X - 1
- ---------------------------------
- X
- testint(1/(4*x**2+9)**(1/2),x);
- 2
- SQRT(4*X + 9)
- INT(----------------,X)
- 2
- 4*X + 9
- testint((x**2+4)**(-1/2),x);
- 2
- SQRT(X + 4)
- INT(--------------,X)
- 2
- X + 4
- testint(1/(9*x**2-12*x+10),x);
- 3*X - 2
- SQRT(6)*ATAN(---------)
- SQRT(6)
- -------------------------
- 18
- testint(1/(x**8-2*x**7+2*x**6-2*x**5+x**4),x);
- 2 4 2 3 4
- (3*LOG(X + 1)*X - 3*LOG(X + 1)*X - 30*LOG(X - 1)*X
- 3 4 3 4 2
- + 30*LOG(X - 1)*X + 24*LOG(X)*X - 24*LOG(X)*X - 30*X + 12*X
- 3
- + 8*X + 4)/(12*X *(X - 1))
- testint((a*x**3+b*x**2+c*x+d)/((x+1)*x*(x-3)),x);
- (27*LOG(X - 3)*A + 9*LOG(X - 3)*B + 3*LOG(X - 3)*C + LOG(X - 3)*D
- - 3*LOG(X + 1)*A + 3*LOG(X + 1)*B - 3*LOG(X + 1)*C + 3*LOG(X + 1)*D
- - 4*LOG(X)*D + 12*A*X)/12
- testint(1/(2-log(x**2+1))**5,x);
- 2 5 2 4 2 3
- - INT(1/(LOG(X + 1) - 10*LOG(X + 1) + 40*LOG(X + 1)
- 2 2 2
- - 80*LOG(X + 1) + 80*LOG(X + 1) - 32),X)
- % The next integral appeared in Risch's 1968 paper.
- testint(2*x*e**(x**2)*log(x)+e**(x**2)/x+(log(x)-2)/(log(x)**2+x)**2+
- ((2/x)*log(x)+(1/x)+1)/(log(x)**2+x),x);
- 2 2
- X 3 X 2 2
- (E *LOG(X) + E *LOG(X)*X + LOG(LOG(X) + X)*LOG(X)
- 2 2
- + LOG(LOG(X) + X)*X - LOG(X))/(LOG(X) + X)
- % The following integral would not evaluate in REDUCE 3.3.
- testint(exp(x*ze+x/2)*sin(pi*ze)**4*x**4,ze);
- (2*X*ZE + X)/2 3 4 4 4 2 2
- (E *X *(SIN(PI*ZE) *X + 4*SIN(PI*ZE) *X *PI
- 3 3
- - 4*SIN(PI*ZE) *COS(PI*ZE)*X *PI
- 3 3 2 2 2
- - 16*SIN(PI*ZE) *COS(PI*ZE)*X*PI + 12*SIN(PI*ZE) *X *PI
- 3 4 4 2 2
- - 24*SIN(PI*ZE)*COS(PI*ZE)*X*PI + 24*PI ))/(X + 20*X *PI
- 4
- + 64*PI )
- % This one evaluates:
- testint(erf(x),x);
- 2
- X
- E *ERF(X)*X*PI + SQRT(PI)
- ----------------------------
- 2
- X
- E *PI
- % So why not this one?
- testint(erf(x+a),x);
- INT(ERF(A + X),X)
- Comment here is an example of using the integrator with pattern
- matching;
- for all m,n let int(k1**m*log(k1)**n/(p**2-k1**2),k1)=foo(m,n),
- int(k1*log(k1)**n/(p**2-k1**2),k1)=foo(1,n),
- int(k1**m*log(k1)/(p**2-k1**2),k1)=foo(m,1),
- int(k1*log(k1)/(p**2-k1**2),k1)=foo(1,1),
- int(log(k1)**n/(k1*(p**2-k1**2)),k1)=foo(-1,n);
- int(k1**2*log(k1)/(p**2-k1**2),k1);
- *** FOO declared operator
- FOO(2,1)
- COMMENT It is interesting to see how much of this one can be done;
- let f1s= (12*log(s/mc**2)*s**2*pi**2*mc**3*(-8*s-12*mc**2+3*mc)
- + pi**2*(12*s**4*mc+3*s**4+176*s**3*mc**3-24*s**3*mc**2
- -144*s**2*mc**5-48*s*mc**7+24*s*mc**6+4*mc**9-3*mc**8))
- /(384*e**(s/y)*s**2);
- int(f1s,s);
- 2 S/Y 1 3 3
- (PI *( - 36864*E *INT(--------------,S)*S*Y *MC
- S/Y
- 384*E *S*Y
- S/Y 1 2 5
- - 55296*E *INT(--------------,S)*S*Y *MC
- S/Y
- 384*E *S*Y
- S/Y 1 2 4
- + 13824*E *INT(--------------,S)*S*Y *MC
- S/Y
- 384*E *S*Y
- S/Y 1 7
- - 18432*E *INT(--------------,S)*S*Y*MC
- S/Y
- 384*E *S*Y
- S/Y 1 6
- + 9216*E *INT(--------------,S)*S*Y*MC
- S/Y
- 384*E *S*Y
- S/Y 1 9
- - 1536*E *INT(--------------,S)*S*MC
- S/Y
- 384*E *S*Y
- S/Y 1 8
- + 1152*E *INT(--------------,S)*S*MC
- S/Y
- 384*E *S*Y
- S 2 3 S 2 3
- + 96*LOG(-----)*S *Y*MC + 96*LOG(-----)*S*Y *MC
- 2 2
- MC MC
- S 5 S 4 3
- + 144*LOG(-----)*S*Y*MC - 36*LOG(-----)*S*Y*MC - 12*S *Y*MC
- 2 2
- MC MC
- 3 2 2 2 2 2 3 2 2
- - 3*S *Y - 24*S *Y *MC - 6*S *Y - 176*S *Y*MC + 24*S *Y*MC
- 3 3 2 3 2 2
- - 24*S*Y *MC - 6*S*Y - 80*S*Y *MC + 24*S*Y *MC
- 5 9 8 S/Y
- + 144*S*Y*MC - 4*MC + 3*MC ))/(384*E *S)
- factor int;
- ws;
- S/Y 1 2 3 3 2 2
- (384*E *INT(--------------,S)*S*PI *MC *( - 96*Y - 144*Y *MC
- S/Y
- 384*E *S*Y
- 2 4 3 6 5 2
- + 36*Y *MC - 48*Y*MC + 24*Y*MC - 4*MC + 3*MC ) + PI *(
- S 2 3 S 2 3
- 96*LOG(-----)*S *Y*MC + 96*LOG(-----)*S*Y *MC
- 2 2
- MC MC
- S 5 S 4 3
- + 144*LOG(-----)*S*Y*MC - 36*LOG(-----)*S*Y*MC - 12*S *Y*MC
- 2 2
- MC MC
- 3 2 2 2 2 2 3 2 2
- - 3*S *Y - 24*S *Y *MC - 6*S *Y - 176*S *Y*MC + 24*S *Y*MC
- 3 3 2 3 2 2 5
- - 24*S*Y *MC - 6*S*Y - 80*S*Y *MC + 24*S*Y *MC + 144*S*Y*MC
- 9 8 S/Y
- - 4*MC + 3*MC ))/(384*E *S)
- Comment the following integrals reveal deficiencies in the current
- integrator;
- %high degree denominator;
- %testint(1/(2-log(x**2+1))**5,x);
- %this example should evaluate;
- testint(sin(2*x)/cos(x),x);
- SIN(2*X)
- INT(----------,X)
- COS(X)
- %this example, which appeared in Tobey's thesis, needs factorization
- %over algebraic fields. It currently gives an ugly answer and so has
- %been suppressed;
- % testint((7*x**13+10*x**8+4*x**7-7*x**6-4*x**3-4*x**2+3*x+3)/
- % (x**14-2*x**8-2*x**7-2*x**4-4*x**3-x**2+2*x+1),x);
- symbolic summarize!-integral!-test();
- ***** SUMMARY OF INTEGRAL TESTS *****
- Number of integrals tested: 272
- Total time taken: 175865 ms
- Number of garbage collections: 168
- Number of incorrect integrals: 0
- Number of unevaluated integrals: 59
- Integrands of unevaluated integrals are:
- 1
- --------
- LOG(X)
- 1
- ------------
- LOG(X + 1)
- 1
- ------------
- 2 2
- LOG(X) *X
- LOG(LOG(LOG(LOG(X))))
- P
- SIN(X)
- SIN(X)
- --------
- X
- COS(X)
- --------
- X
- SIN(X)
- --------
- 2
- X
- 2
- SIN(X)
- ---------
- X
- 4 3
- TAN(X) *X
- 6 3
- TAN(X) *X
- XI
- COS(--------)*COS(X)*X
- SIN(X)
- ------------------------
- 2
- SIN(X)
- A*X
- E
- ------
- X
- X
- A
- ----
- 2
- X
- X
- A *X
- -------------------
- 2 2
- B *X + 2*B*X + 1
- 2
- X
- E
- X
- E
- E
- E
- E
- X
- E *LOG(X)
- X
- E *LOG(X)*X
- LOG(X)
- ---------------
- SQRT(A*X + B)
- SQRT(C + D*X)*SQRT(A + B*X)
- SQRT(A + B*X)
- ---------------
- X
- SQRT(A + B*X)
- ---------------
- 2
- X
- 1
- -----------------
- SQRT(A + B*X)*X
- 1
- ------------------
- 2
- SQRT(A + B*X)*X
- 1
- --------------
- 2
- SQRT(X - 1)
- SQRT(X)*SQRT(X + 1)
- 2 2
- SQRT(X - 4) + 10*SQRT(X - 1)
- --------------------------------
- 2 2
- SQRT(X - 1)*SQRT(X - 4)
- 2 2
- SQRT(SQRT(A + X ) + X)
- -------------------------
- X
- 2
- SQRT(X + 1)
- --------------
- 2
- X + 1
- 3 3
- - 3*SQRT(X + 1) + 3*X + 3
- ------------------------------
- 4
- 2*X + 2*X
- 1
- -----------------------
- 2 2
- SQRT(2*H*R - ALPHA )
- 1
- ------------------------------------
- 2 2 2
- SQRT(2*H*R - ALPHA - EPSILON )*R
- 1
- ---------------------------------
- 2 2
- SQRT(2*H*R - 2*K*R - ALPHA )*R
- 1
- --------------------------------------------
- 2 2 2
- SQRT(2*H*R - 2*K*R - ALPHA - EPSILON )*R
- R
- --------------------------------
- 2 4 2
- SQRT(2*E*R - 2*K*R - ALPHA )
- R
- -------------------------------
- 2 2
- SQRT(2*E*R - 2*K*R - ALPHA )
- 1
- ----------------------------------
- 2 4 2
- SQRT(2*H*R - 2*K*R - ALPHA )*R
- 1
- ---------------------------------------------
- 2 4 2 2
- SQRT(2*H*R - 2*K*R - ALPHA - EPSILON )*R
- 1
- -----------------------
- 2*SQRT(X)*X - SQRT(X)
- 1/3
- ( - A + X)
- ---------------
- X
- SQRT(SIN(X) + 1)
- SQRT( - SIN(X) + 1)
- SQRT(COS(X) + 1)
- SQRT( - COS(X) + 1)
- - 1
- -----------------
- SQRT(X + 1) - 1
- X
- ---------------
- 4
- SQRT(X + 36)
- 1
- ----------------
- 1/3
- X + SQRT(X)
- 2
- LOG(SQRT(X + 1) + X)*X
- 3
- LOG(X)*X + LOG(X)
- --------------------
- 4
- X + 2
- 1
- --------------
- 2
- SQRT(X + 1)
- 2
- SQRT(X + 3)
- ASIN(X)
- 2
- ASIN(X)*X
- 1
- ----------------
- 2
- SQRT(4*X + 9)
- 1
- --------------
- 2
- SQRT(X + 4)
- 2 5 2 4 2 3
- ( - 1)/(LOG(X + 1) - 10*LOG(X + 1) + 40*LOG(X + 1)
- 2 2 2
- - 80*LOG(X + 1) + 80*LOG(X + 1) - 32)
- ERF(A + X)
- SIN(2*X)
- ----------
- COS(X)
- end;
- 4: 4:
- Quitting
- Sat Jun 29 13:44:51 PDT 1991
|