## File: ode.chapt.txt

package info (click to toggle)
yacas 1.3.6-2
 `1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889` `````` Differential Equations *INTRO In this chapter, some facilities for solving differential equations are described. Currently only simple equations without auxiliary conditions are supported. *CMD OdeSolve --- general ODE solver *STD *CALL OdeSolve(expr1==expr2) *PARMS {expr1,expr2} -- expressions containing a function to solve for *DESC This function currently can solve second order homogeneous linear real constant coefficient equations. The solution is returned with unique constants generated by {UniqueConstant}. The roots of the auxiliary equation are used as the arguments of exponentials. If the roots are complex conjugate pairs, then the solution returned is in the form of exponentials, sines and cosines. First and second derivatives are entered as {y',y''}. Higher order derivatives may be entered as {y(n)}, where {n} is any integer. *E.G. In> OdeSolve( y'' + y == 0 ) Out> C42*Sin(x)+C43*Cos(x); In> OdeSolve( 2*y'' + 3*y' + 5*y == 0 ) Out> Exp(((-3)*x)/4)*(C78*Sin(Sqrt(31/16)*x)+C79*Cos(Sqrt(31/16)*x)); In> OdeSolve( y'' - 4*y == 0 ) Out> C132*Exp((-2)*x)+C136*Exp(2*x); In> OdeSolve( y'' +2*y' + y == 0 ) Out> (C183+C184*x)*Exp(-x); *SEE Solve, RootsWithMultiples *CMD OdeTest --- test the solution of an ODE *STD *CALL OdeTest(eqn,testsol) *PARMS {eqn} -- equation to test {testsol} -- test solution *DESC This function automates the verification of the solution of an ODE. It can also be used to quickly see how a particular equation operates on a function. *E.G. In> OdeTest(y''+y,Sin(x)+Cos(x)) Out> 0; In> OdeTest(y''+2*y,Sin(x)+Cos(x)) Out> Sin(x)+Cos(x); *SEE OdeSolve *CMD OdeOrder --- return order of an ODE *STD *CALL OdeOrder(eqn) *PARMS {eqn} -- equation *DESC This function returns the order of the differential equation, which is order of the highest derivative. If no derivatives appear, zero is returned. *E.G. In> OdeOrder(y'' + 2*y' == 0) Out> 2; In> OdeOrder(Sin(x)*y(5) + 2*y' == 0) Out> 5; In> OdeOrder(2*y + Sin(y) == 0) Out> 0; *SEE OdeSolve ``````