# Function Ldec - HP 48gII User Manual

Graphing calculator.

## Function LDEC

The calculator provides function LDEC (Linear Differential Equation Command)
to find the general solution to a linear ODE of any order with constant
coefficients, whether it is homogeneous or not. This function requires you to
provide two pieces of input:
the right-hand side of the ODE
the characteristic equation of the ODE
Both of these inputs must be given in terms of the default independent variable
for the calculator's CAS (typically X). The output from the function is the
general solution of the ODE. The examples below are shown in the RPN
mode:
Example 1 – To solve the homogeneous ODE
3
d
y/dx
Enter:
` 'X
The solution is (figure put together from EQW screenshots):
where cC0, cC1, and cC2 are constants of integration. This result can be re-
written as
Example 2 – Using the function LDEC, solve the non-homogeneous ODE:
3
d
y/dx
Enter:
3
2
2
-4⋅(d
y/dx
)-11⋅(dy/dx)+30⋅y = 0.
X
X
⋅e
–3x
⋅e
5x
y = K
+ K
+ K
1
2
3
3
2
2
-4⋅(d
y/dx
)-11⋅(dy/dx)+30⋅y = x
' ` DE
⋅e
2x
.
2
.
Page 14-2  