Wolfram Language

Partial Differential Equations

Solve a SturmLiouville Problem for the Airy Equation

Solve an eigenvalue problem for the Airy equation.

In[1]:=
Click for copyable input
eqns = {-y''[x] + x y[x] == \[Lambda] y[x], y[0] == 0, y[1] == 0};
In[2]:=
Click for copyable input
sol = DSolveValue[eqns, y[x], x, Assumptions -> 1 < \[Lambda] < 300];

List the eigenvalues for the problem.

In[3]:=
Click for copyable input
eigvals = {ToRules[sol[[1, 1, 2]]]}
Out[3]=

Find the eigenfunctions for this problem.

In[4]:=
Click for copyable input
eigfuns = (sol[[1, 1, 1]] /. {C[1] -> 1})
Out[4]=

Plot the eigenfunctions for the range .

In[5]:=
Click for copyable input
Plot[Evaluate[eigfuns /. eigvals], {x, 0, 1}]
Out[5]=

Related Examples

de es fr ja ko pt-br ru zh