Basic Examples (2)
Obtain an order six approximate solution to the ordinary differential equation 2x2y''+9x(x+1)y'-3y=0 using a Frobenius series around the singular point x0=0:
Plot the solutions:
Compute a more accurate solution with n=40 and compare to the previous result:
Plot the residuals Abs[x2y''+9x(x+1)y'-3y]:
As you can see, the solutions are very accurate. (see Author Notes for more information)
FrobeniusDSolve can also be used to solve equations that don't have singular points. Solve the pendulum equation θ''[t]=-θ[t] near the point t=-3, with n=16:
Plot the result:
Scope (3)
The function can operate with complex numbers:
Find a degree 10 approximate solution for the fourth-order ODE (x-1)4f''''[x]=x(2+x)f[x]+x2(x-1)2f''[x]-19(x-1)3f'''[x] near the singular point x=1:
Plot the results:
The inputs of the function can be symbolics:
Options (1)
Set "ComputeError" to True to get a formula for the error, defined as the absolute value of the remainder, of a FrobeniusDSolve solution set (see Details and Options):
Properties and Relations (5)
Use AsymptoticDSolveValue to solve the ODE ty''[t]+y[t]=0 near the singular point t=0:
Compare to the result from FrobeniusDSolve:
Compare timings in milliseconds that FrobeniusDSolve and AsymptoticDSolveValue take to compute the 100th order power series approximation to y''+(1+x2)y=0:
FrobeniusDSolve takes roughly 6 milliseconds to compute, while AsymptoticDSolveValue takes about 34. We can reduce computation time even further with the help of the resource function FrobeniusDSolveFormula:
When the option "ComputeError" is set to True and FrobeniusDSolveFormula is used, the option "ComputeError" should be switched to True in FrobeniusDSolveFormula, too:
Possible Issues (3)
Solutions obtained using Frobenius's method generally only have a finite convergence radius. Try to compute an approximate solution to the ODE (1+x3)y'=y with n=60:
The plot looks good for x<1, however, for x>1 the solution starts diverging. To see that, notice that the ODE (1+x3)y'=y demands y' to be positive for x>0, y>0; the plot, however, suddenly goes down at x=1. Besides, the sharpness of the "cliff" looks very suspicious.
Frobenius's method only works near ordinary points or regular singular points. If solution near an irregular singular point is attempted, Frobenius's method would only yield some of the possible solutions or won't be able to find any solutions at all. Consider the ODE x3y''+xy'+(x2-1)y=0 near the singular point x=0:
FrobeniusDSolve could only give one of the two linearly independent solutions. The other solution could not be found because it cannot be written in the form , as can be seen with the help of AsymptoticDSolveValue:
The parameter n must be at least Z+M, where Z is the order of the ODE and M is the highest power of x (the independent variable). If the ODE is y''''[t]=-(1+t2)y[t], then the order Z=4 and the highest power of t is M=2, so n must be at least 6:
Neat Examples (2)
Sometimes, the Frobenius series solution to an ODE consists of a finite number of terms. For example, below are a few examples when the exact solution only has one term in it:
Sometimes, the solution terminates after a couple terms. While the second of the two solutions below goes on forever, the first one only has four nonzero terms: