1 (load("contrib_ode"),0);
4 /* ODE tests - Second order linear equations 1-100
7 E Kamke, Differentialgleichungen Losungsmethoden und Losungen,
8 Vol 1, Geest & Portig, Leipzig, 1961
12 (pn_(n_):=print("Kamke ODE 2.",n_),true);
16 (pn_(1),ans:contrib_ode(eqn:'diff(y,x,2),y,x));
18 ode_check(eqn,ans[1]);
24 (pn_(2),ans:contrib_ode(eqn:'diff(y,x,2)+y,y,x));
25 [y=%k1*sin(x)+%k2*cos(x)];
26 ode_check(eqn,ans[1]);
32 assume(not(equal(n,1)));
34 (pn_(3),ans:contrib_ode(eqn:'diff(y,x,2)+y-sin(n*x),y,x));
35 [y=-sin(n*x)/(n^2-1)+%k1*sin(x)+%k2*cos(x)];
36 ode_check(eqn,ans[1]);
39 variationofparameters;
40 forget(not(equal(n,1)));
44 assume(not(equal(b,1)));
46 (pn_(4),ans:contrib_ode(eqn:'diff(y,x,2)+y-a*cos(b*x),y,x));
47 [y=-a*cos(b*x)/(b^2-1)+%k1*sin(x)+%k2*cos(x)];
48 ode_check(eqn,ans[1]);
51 variationofparameters;
52 forget(not(equal(b,1)));
56 (pn_(5),ans:contrib_ode(eqn:'diff(y,x,2)+y-sin(a*x)*sin(b*x),y,x));
57 [y=((b^2-2*a*b+a^2-1)*cos((b+a)*x)+(-b^2-2*a*b-a^2+1)*cos((b-a)*x))/(2*b^4+(-4*a^2-4)*b^2+2*a^4-4*a^2+2)+%k1*sin(x)+%k2*cos(x)];
58 [method,ode_check(eqn,ans[1])];
59 [variationofparameters,0];
62 (pn_(6),ans:contrib_ode(eqn:'diff(y,x,2)-y,y,x));
63 [y=%k1*%e^x+%k2*%e^-x];
64 ode_check(eqn,ans[1]);
70 (pn_(7),ans:contrib_ode(eqn:'diff(y,x,2)-2*y-4*x^2*%e^x^2,y,x));
71 [y=%e^x^2+%k1*%e^(2^(1/2)*x)+%k2*%e^-(2^(1/2)*x)];
72 ode_check(eqn,ans[1]);
75 variationofparameters;
77 /* Kamke 2. 8 CHECKME */
80 (pn_(8),ans:contrib_ode(eqn:'diff(y,x,2)+a^2*y-cot(a*x),y,x));
81 [y = -((sin(a*x)*log(cos(a*x)+1)-sin(a*x)*log(cos(a*x)-1))/(2*a^2))
82 +%k1*sin(a*x)+%k2*cos(a*x)];
83 [method,ode_check(eqn,ans[1])];
84 [variationofparameters,0];
91 (pn_(9),ans:contrib_ode(eqn:'diff(y,x,2)+l*y,y,x));
92 [y=%k1*sin(sqrt(l)*x)+%k2*cos(sqrt(l)*x)];
93 ode_check(eqn,ans[1]);
101 (pn_(10),ans:contrib_ode(eqn:'diff(y,x,2)+(a*x+b)*y,y,x));
102 [y = bessel_y(1/3,2*(a*x+b)^(3/2)/(3*abs(a)))*%k2*sqrt(a*x+b)
103 + bessel_j(1/3,2*(a*x+b)^(3/2)/(3*abs(a)))*%k1*sqrt(a*x+b)];
104 [method,ode_check(eqn,ans[1])];
108 (pn_(11),ans:contrib_ode(eqn:'diff(y,x,2)-(x^2+1)*y,y,x));
109 [y = %k2*%e^(x^2/2)*erf(x)+%k1*%e^(x^2/2)];
110 [method,ode_check(eqn,ans[1])];
114 (pn_(12),ans:contrib_ode(eqn:'diff(y,x,2)-(x^2+a)*y,y,x),0);
117 [y = (%k2*kummer_u(-(a-1)/4,1/2,-x^2)*%e^(x^2/2)*sqrt(abs(x)))/sqrt(-x)
118 + (%k1*kummer_m(-(a-1)/4,1/2,-x^2)*%e^(x^2/2)*sqrt(abs(x)))/sqrt(-x)];
120 [method,ode_check(eqn,ans[1])];
124 (pn_(13),ans:contrib_ode(eqn:'diff(y,x,2)-(a^2*x^2+a)*y,y,x));
125 [y = %k2*%e^(a*x^2/2)*erf(sqrt(a)*x)+%k1*%e^(a*x^2/2)];
126 [method,ode_check(eqn,ans[1])];
130 (pn_(14),ans:contrib_ode(eqn:'diff(y,x,2)-c*x^a*y,y,x));
134 (pn_(15),ans:contrib_ode(eqn:'diff(y,x,2)-(a^2*x^(2*n)-1)*y,y,x));
138 (pn_(16),ans:contrib_ode(eqn:'diff(y,x,2)+(a*x^(2*c)+b*x^(c-1))*y,y,x));
142 (pn_(17),ans:contrib_ode(eqn:'diff(y,x,2)+(%e^(2*x)-v^2)*y,y,x));
146 (pn_(18),ans:contrib_ode(eqn:'diff(y,x,2)+a*%e^(b*x)*y,y,x));
150 (pn_(19),ans:contrib_ode(eqn:'diff(y,x,2)-(4*a^2*b^2*x^2*%e^(2*b*x^2)-1)*y,y,x));
154 (pn_(20),ans:contrib_ode(eqn:'diff(y,x,2)+(a*%e^(2*x)+b*%e^x+c)*y,y,x));
158 (pn_(21),ans:contrib_ode(eqn:'diff(y,x,2)+(a*cos(x)^2+b)*y,y,x));
162 (pn_(22),ans:contrib_ode(eqn:'diff(y,x,2)+(a*cos(2*x)+b)*y,y,x));
166 (pn_(23),ans:contrib_ode(eqn:'diff(y,x,2)+(a*cos(x)^2+b)*y,y,x));
170 (pn_(24),ans:contrib_ode(eqn:'diff(y,x,2)-(2*tan(x)^2+1)*y,y,x));
174 (pn_(25),ans:contrib_ode(eqn:'diff(y,x,2)-((n-1)*n/sin(x)^2+(m-1)*m/cos(x)^2+a)*y,y,x));
178 (pn_(26),ans:contrib_ode(eqn:'diff(y,x,2)-y*(B+p(x)*A),y,x));
182 (pn_(27),ans:contrib_ode(eqn:'diff(y,x,2)+(a*jacobi_sn(x,m)^2+b)*y,y,x));
186 (pn_(28),ans:contrib_ode(eqn:'diff(y,x,2)-('diff(p(x),x,4)/30+7*'diff(p(x),x,2)/3+a*p(x)+b)*y,y,x));
190 (pn_(29),ans:contrib_ode(eqn:'diff(y,x,2)-('diff(f(x),x,1)+f(x)^2)*y,y,x));
194 (pn_(30),ans:contrib_ode(eqn:'diff(y,x,2)+(P(x)+l)*y,y,x));
198 (pn_(31),ans:contrib_ode(eqn:'diff(y,x,2)-f(x)*y,y,x));
202 (pn_(32),ans:contrib_ode(eqn:'diff(y,x,2)+('diff(g(x),x,3)/(2*'diff(g(x),x,1))-3*('diff(g(x),x,2))^2/(4*('diff(g(x),x,1))^2)+(1/4-v^2)*('diff(g(x),x,1))^2/g(x)+('diff(g(x),x,1))^2)*y,y,x));
206 (pn_(33),ans:contrib_ode(eqn:'diff(y,x,2)+'diff(y,x,1)+a*%e^-(2*x)*y,y,x));
207 [y=%k2*cos(sqrt(a)*%e^-x)-%k1*sin(sqrt(a)*%e^-x)];
208 ode_check(eqn,ans[1]);
214 (pn_(34),ans:contrib_ode(eqn:'diff(y,x,2)-'diff(y,x,1)+%e^(2*x)*y,y,x));
215 [y=%k1*sin(%e^x)+%k2*cos(%e^x)];
216 ode_check(eqn,ans[1]);
224 (pn_(35),ans:contrib_ode(eqn:'diff(y,x,2)+a*'diff(y,x,1)+b*y,y,x));
225 [y=%k1*%e^((sqrt(a^2-4*b)-a)*x/2)+%k2*%e^((-sqrt(a^2-4*b)-a)*x/2)];
226 ode_check(eqn,ans[1]);
236 (pn_(36),ans:contrib_ode(eqn:'diff(y,x,2)+a*'diff(y,x,1)+b*y-f(x),y,x),0);
238 [y=-%e^(-sqrt(a^2-4*b)*x/2-a*x/2)*('integrate(%e^(sqrt(a^2-4*b)*x/2+a*x/2)*f(x),x)-%e^(sqrt(a^2-4*b)*x)*'integrate(%e^(a*x/2-sqrt(a^2-4*b)*x/2)*f(x),x))/sqrt(a^2-4*b)+%k1*%e^((sqrt(a^2-4*b)-a)*x/2)+%k2*%e^((-sqrt(a^2-4*b)-a)*x/2)];
241 ode_check(eqn,ans[1]);
244 variationofparameters;
249 (pn_(37),ans:contrib_ode(eqn:'diff(y,x,2)+a*'diff(y,x,1)+(-b^2*x^2-c)*y,y,x),0);
252 [y = (%k2*kummer_u(-(4*c-4*b+a^2)/(16*b),1/2,-b*x^2)
253 *%e^((b*x^2)/2-(a*x)/2)*sqrt(abs(x)))/sqrt(-x)
254 +(%k1*kummer_m(-(4*c-4*b+a^2)/(16*b),1/2,-b*x^2)
255 *%e^((b*x^2)/2-(a*x)/2)*sqrt(abs(x)))/sqrt(-x)]$
257 [method,ode_check(eqn,expand(ans[1]))];
261 (pn_(38),ans:contrib_ode(eqn:'diff(y,x,2)+2*a*'diff(y,x,1)+f(x)*y,y,x));
265 (pn_(39),ans:contrib_ode(eqn:'diff(y,x,2)+x*'diff(y,x,1)+y,y,x));
266 [y=%k2*%e^-(x^2/2)-sqrt(2)*sqrt(%pi)*%i*%k1*%e^-(x^2/2)*erf(%i*x/sqrt(2))/2];
267 ode_check(eqn,ans[1]);
273 (pn_(40),ans:contrib_ode(eqn:'diff(y,x,2)+x*'diff(y,x,1)-y,y,x),0);
276 [y = kummer_u(0,3/2,-x^2/2)*%k2*x+kummer_m(0,3/2,-x^2/2)*%k1*x];
278 [method,ode_check(eqn,ans[1])];
282 (pn_(41),ans:contrib_ode(eqn:'diff(y,x,2)+x*'diff(y,x,1)+(n+1)*y,y,x),0);
285 [y = %k2*kummer_u(n/2+1/2,1/2,-(x^2/2))
286 +%k1*kummer_m(n/2+1/2,1/2,-(x^2/2))];
288 [method,ode_check(eqn,ans[1])];
292 (pn_(42),ans:contrib_ode(eqn:'diff(y,x,2)+x*'diff(y,x,1)-n*y,y,x),0);
295 [y = %k2*kummer_u(-n/2,1/2,-x^2/2)
296 +%k1*kummer_m(-n/2,1/2,-x^2/2)];
298 [method,ode_check(eqn,ans[1])];
302 (pn_(43),ans:contrib_ode(eqn:'diff(y,x,2)-x*'diff(y,x,1)+2*y,y,x),0);
305 [y = kummer_u(2,3/2,-x^2/2)*%k2*x*%e^(x^2/2)
306 +kummer_m(2,3/2,-x^2/2)*%k1*x*%e^(x^2/2)];
308 [method,ode_check(eqn,ans[1])];
312 (pn_(44),ans:contrib_ode(eqn:'diff(y,x,2)-x*'diff(y,x,1)-a*y,y,x),0);
315 [y = %k2*kummer_u(1/2-(a/2),1/2,-(x^2/2))*%e^(x^2/2)
316 +%k1*kummer_m(1/2-(a/2),1/2,-(x^2/2))*%e^(x^2/2)];
318 [method,ode_check(eqn,ans[1])];
322 (pn_(45),ans:contrib_ode(eqn:'diff(y,x,2)-x*'diff(y,x,1)+(x-1)*y,y,x),0);
325 [y = %k2*%e^(x-2)*erf(%i*x/sqrt(2)-2*%i/sqrt(2))+%k1*%e^x];
327 [method,ode_check(eqn,ans[1])];
331 (pn_(46),ans:contrib_ode(eqn:'diff(y,x,2)-2*x*'diff(y,x,1)+a*y,y,x),0);
334 [y = %k2*kummer_u(a/4+1/2,1/2,-x^2)*%e^x^2
335 +%k1*kummer_m(a/4+1/2,1/2,-x^2)*%e^x^2];
337 [method,ode_check(eqn,ans[1])];
341 (pn_(47),ans:contrib_ode(eqn:'diff(y,x,2)+4*x*'diff(y,x,1)+(4*x^2+2)*y,y,x));
342 [y = %k2*x*%e^-x^2+%k1*%e^-x^2];
343 [method,ode_check(eqn,ans[1])];
347 (pn_(48),ans:contrib_ode(eqn:'diff(y,x,2)-4*x*'diff(y,x,1)+(3*x^2+2*n-1)*y,y,x),0);
350 [y = %k2*kummer_u(n/2+1/2,1/2,-x^2)*%e^(3*x^2/2)
351 +%k1*kummer_m(n/2+1/2,1/2,-x^2)*%e^(3*x^2/2)];
353 [method,ode_check(eqn,ans[1])];
357 (pn_(49),ans:contrib_ode(eqn:'diff(y,x,2)-4*x*'diff(y,x,1)+(4*x^2-1)*y-%e^x,y,x));
358 [y = (sqrt(%pi)*((%e^x^2*sin((2*x-1)/2)-%i*%e^x^2*cos((2*x-1)/2))
360 +(%e^x^2*sin((2*x-1)/2)+%i*%e^x^2*cos((2*x-1)/2))
363 +%k2*%e^x^2*sin(x)+%k1*%e^x^2*cos(x)];
364 [method,ode_check(eqn,ans[1])];
368 (pn_(50),ans:contrib_ode(eqn:'diff(y,x,2)-4*x*'diff(y,x,1)+(4*x^2-2)*y,y,x));
369 [y = %k2*x*%e^x^2+%k1*%e^x^2];
370 [method,ode_check(eqn,ans[1])];
374 (pn_(51),ans:contrib_ode(eqn:'diff(y,x,2)-4*x*'diff(y,x,1)+(4*x^2-3)*y-%e^x^2,y,x));
375 [y = %k2*%e^(x^2+x)+%k1*%e^(x^2-x)-%e^x^2];
376 [method,ode_check(eqn,ans[1])];
380 (pn_(52),ans:contrib_ode(eqn:'diff(y,x,2)+a*x*'diff(y,x,1)+b*y,y,x),0);
383 [y = %k2*kummer_u(b/(2*a),1/2,-a*x^2/2)
384 +%k1*kummer_m(b/(2*a),1/2,-a*x^2/2)];
386 [method,ode_check(eqn,ans[1])];
390 (pn_(53),ans:contrib_ode(eqn:'diff(y,x,2)+2*a*x*'diff(y,x,1)+a^2*x^2*y,y,x));
391 [y = %k2*%e^(sqrt(a)*x-(a*x^2/2))+%k1*%e^(-(a*x^2/2)-sqrt(a)*x)];
392 [method,ode_check(eqn,ans[1])];
396 /* CHECKME: Takes a long time
397 (pn_(54),ans:contrib_ode(eqn:'diff(y,x,2)+(a*x+b)*'diff(y,x,1)+(c*x+d)*y,y,x));
402 /* CHECKME: Takes a long time
403 (pn_(55),ans:contrib_ode(eqn:'diff(y,x,2)+(a*x+b)*'diff(y,x,1)+(a1*x^2+b1*x+c_1)*y,y,x));
408 (pn_(56),ans:contrib_ode(eqn:'diff(y,x,2)-x^2*'diff(y,x,1)+x*y,y,x),0);
411 [y = kummer_u(1,2/3,-x^3/3)*%k2*%e^(x^3/3)
412 +kummer_m(1,2/3,-x^3/3)*%k1*%e^(x^3/3)];
414 [method, ode_check(eqn,ans[1])];
418 (pn_(57),ans:contrib_ode(eqn:'diff(y,x,2)-x^2*'diff(y,x,1)-(x+1)^2*y,y,x));
419 [y=%k2*%e^(x^3/3+x)*'integrate(%e^(-(x^3/3)-2*x),x)+%k1*%e^(x^3/3+x)];
420 [method, ode_check(eqn,ans[1])];
424 (pn_(58),ans:contrib_ode(eqn:'diff(y,x,2)-x^2*(x+1)*'diff(y,x,1)+x*(x^4-2)*y,y,x));
425 [y = %k2*%e^(x^3/3)*'integrate(%e^(x^4/4-x^3/3),x)+%k1*%e^(x^3/3)];
426 [method, ode_check(eqn,ans[1])];
430 (pn_(59),ans:contrib_ode(eqn:'diff(y,x,2)+x^4*'diff(y,x,1)-x^3*y,y,x));
431 [y = kummer_u(0,6/5,-x^5/5)*%k2*x+kummer_m(0,6/5,-x^5/5)*%k1*x];
432 [method, ode_check(eqn,ans[1])];
436 /* CHECKME: Takes a long time
437 (pn_(60),ans:contrib_ode(eqn:'diff(y,x,2)+a*x^(q-1)*'diff(y,x,1)+b*x^(q-2)*y,y,x));
442 (pn_(61),ans:contrib_ode(eqn:'diff(y,x,2)+sqrt(x)*'diff(y,x,1)+(x/4+1/(4*sqrt(x))-9)*y-x*%e^-(x^(3/2)/3),y,x));
443 [y=(-(x*%e^-(x^(3/2)/3))/9)+%k2*%e^(3*x-x^(3/2)/3)+%k1*%e^((-x^(3/2)/3)-3*x)];
444 [method,ode_check(eqn,ans[1])];
448 (pn_(62),ans:contrib_ode(eqn:'diff(y,x,2)-'diff(y,x,1)/sqrt(x)+(x+sqrt(x)-8)*y/(4*x^2),y,x));
452 (pn_(63),ans:contrib_ode(eqn:'diff(y,x,2)-(2*%e^x+1)*'diff(y,x,1)+%e^(2*x)*y-%e^(3*x),y,x));
453 [y=(%k2*%e^x+%k1)*%e^%e^x+%e^x+2];
454 ode_check(eqn,ans[1]);
457 variationofparameters;
462 (pn_(64),ans:contrib_ode(eqn:'diff(y,x,2)+a*'diff(y,x,1)+b*y+tan(x),y,x),0);
465 [y=%e^(-sqrt(a^2-4*b)*x/2-a*x/2)*('integrate(%e^(sqrt(a^2-4*b)*x/2+a*x/2)*tan(x),x)-%e^(sqrt(a^2-4*b)*x)*'integrate(%e^(a*x/2-sqrt(a^2-4*b)*x/2)*tan(x),x))/sqrt(a^2-4*b)+%k1*%e^((sqrt(a^2-4*b)-a)*x/2)+%k2*%e^((-sqrt(a^2-4*b)-a)*x/2)];
467 ode_check(eqn,ans[1]);
470 variationofparameters;
475 (pn_(65),ans:contrib_ode(eqn:'diff(y,x,2)+2*n*cot(x)*'diff(y,x,1)+(n^2-a^2)*y,y,x));
479 (pn_(66),ans:contrib_ode(eqn:'diff(y,x,2)+tan(x)*'diff(y,x,1)+cos(x)^2*y,y,x));
483 (pn_(67),ans:contrib_ode(eqn:'diff(y,x,2)+tan(x)*'diff(y,x,1)-cos(x)^2*y,y,x));
487 (pn_(68),ans:contrib_ode(eqn:'diff(y,x,2)+cot(x)*'diff(y,x,1)+v*(v+1)*y,y,x));
491 (pn_(69),ans:contrib_ode(eqn:'diff(y,x,2)-cot(x)*'diff(y,x,1)+sin(x)^2*y,y,x));
495 (pn_(70),ans:contrib_ode(eqn:'diff(y,x,2)+a*tan(x)*'diff(y,x,1)+b*y,y,x));
499 (pn_(71),ans:contrib_ode(eqn:'diff(y,x,2)+2*a*cot(a*x)*'diff(y,x,1)+(b^2-a^2)*y,y,x));
503 (pn_(72),ans:contrib_ode(eqn:'diff(y,x,2)+a*'diff(p(x),x,2)*'diff(y,x,1)+(-4*a*n*p(x)^2+b*p(x)+a)*y,y,x));
507 (pn_(73),ans:contrib_ode(eqn:'diff(y,x,2)+('diff(p(x),x,3)-'diff(p(x),x,2)-p(x)*'diff(p(x),x,1))*'diff(y,x,1)/('diff(p(x),x,1)+p(x)^2)+(-p(x)*'diff(p(x),x,2)+('diff(p(x),x,1))^2-p(x)^2*'diff(p(x),x,1))*y/('diff(p(x),x,1)+p(x)^2),y,x));
511 (pn_(74),ans:contrib_ode(eqn:'diff(y,x,2)+m*jacobi_cn(x,m)*jacobi_sn(x,m)*'diff(y,x,1)/jacobi_dn(x,m)+n^2*jacobi_dn(x,m)^2*y,y,x));
512 [y = %k1*sin(n*asin(jacobi_sn(x,m)))+%k2*cos(n*asin(jacobi_sn(x,m)))];
515 /* solution satisfies the ODE for a few random values of the variables */
518 (pn_(75),ans:contrib_ode(eqn:'diff(y,x,2)+f(x)*'diff(y,x,1)+g(x)*y,y,x));
522 (pn_(76),ans:contrib_ode(eqn:'diff(y,x,2)+f(x)*'diff(y,x,1)+('diff(f(x),x,1)+a)*y-g(x),y,x));
526 (pn_(77),ans:contrib_ode(eqn:'diff(y,x,2)+(a*f(x)+b)*'diff(y,x,1)+(c*f(x)+d)*y,y,x));
530 (pn_(78),ans:contrib_ode(eqn:'diff(y,x,2)+f(x)*'diff(y,x,1)+('diff(f(x),x,1)/2+f(x)^2/4+a)*y,y,x));
534 (pn_(79),ans:contrib_ode(eqn:'diff(y,x,2)-a*'diff(f(x),x,1)*'diff(y,x,1)/f(x)+b*f(x)^(2*a)*y,y,x));
535 [y=%k1*sin(sqrt(b)*'integrate(f(x)^a,x))+%k2*cos(sqrt(b)*'integrate(f(x)^a,x))];
536 ode_check(eqn,ans[1]);
542 (pn_(80),ans:contrib_ode(eqn:'diff(y,x,2)-('diff(f(x),x,1)/f(x)+2*a)*'diff(y,x,1)+(a*'diff(f(x),x,1)/f(x)-b^2*f(x)^2+a^2)*y,y,x));
546 (pn_(81),ans:contrib_ode(eqn:'diff(y,x,2)+f(x)*'diff(f(x),x,3)*'diff(y,x,1)/(f(x)^2+b^2)-a^2*('diff(f(x),x,1))^2*y/(f(x)^2+b^2),y,x));
550 (pn_(82),ans:contrib_ode(eqn:'diff(y,x,2)-('diff(g(x),x,2)/'diff(g(x),x,1)+(2*m-1)*'diff(g(x),x,1)/g(x))*'diff(y,x,1)+((m^2-v^2)*('diff(g(x),x,1))^2/g(x)+('diff(g(x),x,1))^2)*y,y,x));
554 (pn_(83),ans:contrib_ode(eqn:'diff(y,x,2)-'diff(f(x),x,1)*'diff(y,x,1)/f(x)+('diff(g(x),x,3)/(2*'diff(g(x),x,1))-3*('diff(g(x),x,2))^2/(4*('diff(g(x),x,1))^2)+(1/4-v^2)*('diff(g(x),x,1))^2/g(x)^2+('diff(g(x),x,1))^2-'diff(f(x),x,2)/(2*f(x))+3*('diff(f(x),x,1))^2/(4*f(x)^2))*y,y,x));
558 (pn_(84),ans:contrib_ode(eqn:'diff(y,x,2)-('diff(g(x),x,2)/'diff(g(x),x,1)-'diff(g(x),x,1)/g(x)+2*'diff(f(x),x,1)/f(x))*'diff(y,x,1)+('diff(f(x),x,1)*('diff(g(x),x,2)/'diff(g(x),x,1)-'diff(g(x),x,1)/g(x)+2*'diff(f(x),x,1)/f(x))/f(x)-v^2*('diff(g(x),x,1))^2/g(x)^2+('diff(g(x),x,1))^2-'diff(f(x),x,2)/f(x))*y,y,x));
562 (pn_(85),ans:contrib_ode(eqn:'diff(y,x,2)-(2*'diff(h(x),x,1)/h(x)+'diff(g(x),x,2)/'diff(g(x),x,1)+(2*v-1)*'diff(g(x),x,1)/g(x))*'diff(y,x,1)+(-'diff(h(x),x,2)/h(x)+'diff(h(x),x,1)*(2*'diff(h(x),x,1)/h(x)+'diff(g(x),x,2)/'diff(g(x),x,1)+(2*v-1)*'diff(g(x),x,1)/g(x))/h(x)+('diff(g(x),x,1))^2)*y,y,x));
566 (pn_(86),ans:contrib_ode(eqn:4*'diff(y,x,2)+9*x*y,y,x),0);
569 [y = bessel_y(1/3,x^(3/2))*%k2*sqrt(x)+bessel_j(1/3,x^(3/2))*%k1*sqrt(x)];
571 [method,ode_check(eqn,ans[1])];
575 (pn_(87),ans:contrib_ode(eqn:4*'diff(y,x,2)-(x^2+a)*y,y,x),0);
578 [y = %k2*kummer_u(1/4-(a/8),1/2,-(x^2/2))*%e^(x^2/4)
579 +%k1*kummer_m(1/4-(a/8),1/2,-(x^2/2))*%e^(x^2/4)];
581 [method, ode_check(eqn,ans[1])];
585 (pn_(88),ans:contrib_ode(eqn:4*'diff(y,x,2)+4*tan(x)*'diff(y,x,1)+(-5*tan(x)^2-2)*y,y,x));
589 (pn_(89),ans:contrib_ode(eqn:a*'diff(y,x,2)-(x+c+a*b)*'diff(y,x,1)+(b*(x+c)+d)*y,y,x),0);
592 [y=%k2*kummer_u(d/2+1/2,1/2,-(x^2/(2*a))-(c*x/a)+b*x-(c^2/(2*a))+b*c-(a*b^2/2))
593 *%e^(x^2/(2*a)+c*x/a+c^2/(4*a)-(b*c/2)+a*b^2/4)
594 +%k1*kummer_m(d/2+1/2,1/2,-(x^2/(2*a))-(c*x/a)+b*x-(c^2/(2*a))+b*c-(a*b^2/2))
595 *%e^(x^2/(2*a)+c*x/a+c^2/(4*a)-(b*c/2)+a*b^2/4)];
597 [method, ode_check(eqn,ans[1])];
601 (pn_(90),ans:contrib_ode(eqn:a^2*'diff(y,x,2)+a*(a^2-2*b*%e^-(a*x))*'diff(y,x,1)+b^2*%e^-(2*a*x)*y,y,x));
602 [y=(%k1-%k2*b*%e^-(a*x)/a^2)*%e^-(b*%e^-(a*x)/a^2)];
603 ode_check(eqn,ans[1]);
609 (pn_(91),ans:contrib_ode(eqn:x*('diff(y,x,2)+y)-cos(x),y,x));
610 [y = ((2*log(x)-gamma_incomplete(0,2*%i*x)-gamma_incomplete(0,-2*%i*x))*sin(x)
611 +(%i*gamma_incomplete(0,2*%i*x)-%i*gamma_incomplete(0,-2*%i*x))*cos(x))
612 /4 + %k1*sin(x)+%k2*cos(x)]$
613 [method,ode_check(eqn,ans[1])];
614 [variationofparameters,0];
617 (pn_(92),ans:contrib_ode(eqn:x*'diff(y,x,2)+(x+a)*y,y,x));
618 [y = %k2*kummer_u(-%i*a/2,0,-2*%i*x)*%e^(%i*x)
619 +%k1*kummer_m(-%i*a/2,0,-2*%i*x)*%e^(%i*x)];
620 [method, ode_check(eqn,ans[1])];
624 (pn_(93),ans:contrib_ode(eqn:x*'diff(y,x,2)+'diff(y,x,1),y,x));
626 ode_check(eqn,ans[1]);
632 (pn_(94),ans:contrib_ode(eqn:x*'diff(y,x,2)+'diff(y,x,1)+a*y,y,x));
633 [y = bessel_y(0,2*sqrt(a)*sqrt(x))*%k2
634 +bessel_j(0,2*sqrt(a)*sqrt(x))*%k1];
635 [method,ode_check(eqn,ans[1])];
639 (pn_(95),ans:contrib_ode(eqn:x*'diff(y,x,2)+'diff(y,x,1)+l*x*y,y,x));
640 [y = bessel_y(0,-sqrt(l)*x)*%k2+bessel_j(0,-sqrt(l)*x)*%k1];
641 [method,ode_check(eqn,ans[1])];
645 (pn_(96),ans:contrib_ode(eqn:x*'diff(y,x,2)+'diff(y,x,1)+(x+a)*y,y,x),0);
648 [y = %k2*kummer_u(1/2-((%i*a)/2),1,-2*%i*x)*%e^(%i*x)
649 +%k1*kummer_m(1/2-((%i*a)/2),1,-2*%i*x)*%e^(%i*x)];
651 [method, ode_check(eqn,ans[1])];
655 (pn_(97),ans:contrib_ode(eqn:x*'diff(y,x,2)-'diff(y,x,1)+a*y,y,x));
656 [y = bessel_y(2,2*sqrt(a)*sqrt(x))*%k2*x
657 +bessel_j(2,2*sqrt(a)*sqrt(x))*%k1*x];
658 [method,ode_check(eqn,ans[1])];
664 (pn_(98),ans:contrib_ode(eqn:x*'diff(y,x,2)-'diff(y,x,1)-a*x^3*y,y,x));
665 [y=%i*%k1*sinh(sqrt(a)*x^2/2)+%k2*cosh(sqrt(a)*x^2/2)];
666 ode_check(eqn,ans[1]);
674 (pn_(99),ans:contrib_ode(eqn:x*'diff(y,x,2)-'diff(y,x,1)+x^3*(%e^x^3-v^2)*y,y,x));
678 (pn_(100),ans:contrib_ode(eqn:x*'diff(y,x,2)+2*'diff(y,x,1)-x*y-%e^x,y,x));
679 [y =((2*x-1)*%e^x)/(4*x)+(%k2*%e^x)/x+(%k1*%e^-x)/x];
680 [method,ode_check(eqn,ans[1])];