Student[ODEs]
Test
test the validity of a candidate solution to an ODE
Calling Sequence
Parameters
Description
Examples
Compatibility
Test(sol, ODE, var)
sol
-
equation, or set or list of equations; a candidate solution of an ODE or system of ODEs
ODE
equation, or set or list of equations; an ODE or system of ODEs
var
function, or set or list of functions; the dependent variable(s)
The Test(sol, ODE, y(x)) tests whether the candidate solution sol is in fact a valid solution of the given equation or system ODE.
The equation or system ODE is evaluated using the supplied candidate solution sol, and an attempt is made to remove all occurrences of the dependent variables var and their derivatives; whatever remains is then simplified and returned.
If this remainder is 0 (or a set or list of zeros), then sol is in fact a valid solution.
Conversely, if sol is in fact a valid solution, then this remainder must be mathematically equivalent to 0 (or a set or list of zeros), but it may not have been simplified fully.
withStudentODEs:
ode1≔t2zt+1+zt2t−1diffzt,t=0
ode1≔t2zt+1+zt2t−1ⅆⅆtzt=0
sol1≔Solveode1,zt
sol1≔zt22−zt+lnzt+1=−t22−t−lnt−1+_C1
Testsol1,ode1,zt
0
ode2≔diffyx,x,x−diffyx,x−xexpx=0
ode2≔ⅆ2ⅆx2yx−ⅆⅆxyx−xⅇx=0
sol2≔Solveode2,yx
sol2≔yx=c__1+_C2ⅇx+ⅇx1−x+12x2
Testsol2,ode2,yx
ode3≔diffyx,x,x+5diffyx,x2yx=0
ode3≔ⅆ2ⅆx2yx+5ⅆⅆxyx2yx=0
sol3≔Solveode3,yx
sol3≔yx=6ⅇc__1x+6_C216,yx=−6ⅇc__1x+6_C216
Testsol3,ode3,yx
ode4≔x3diffyx,x,x,x+3x2diffyx,x,x−6xdiffyx,x−6yx=0
ode4≔x3ⅆ3ⅆx3yx+3x2ⅆ2ⅆx2yx−6xⅆⅆxyx−6yx=0
sol4≔Solveode4,yx
sol4≔yx=4_C3x5+36_C2x+9c__136x2
Testsol4,ode4,yx
ode5≔diffy1x,x=7y1x+y2x,diffy2x,x=−4y1x+3y2x
ode5≔ⅆⅆxy1x=7y1x+y2x,ⅆⅆxy2x=−4y1x+3y2x
sol5≔Solve:-Systemode5,output=solution
sol5≔y1x=−ⅇ5x2_C2x+_C2+2c__14,y2x=ⅇ5x_C2x+c__1
Testsol5,ode5,seqyjx,j=1..2
The Student[ODEs][Test] command was introduced in Maple 2021.
For more information on Maple 2021 changes, see Updates in Maple 2021.
See Also
odetest
Student
Student[ODEs][Solve]
Download Help Document