Let’s say one is given the ODE y” + ay = 0 with boundary conditions y'(0) = 0 and y'(1) = 0. How would one use Mathematica to find the eigenvalues and eigenfunctions? What if one is given a more general ODE, let’s say y” + (y^2 – 1/2)y = 0 with the same boundary conditions?
This question has been answered by Simon’s comment below.
DSolveonly gives solutions for “generic” parameters, which is whyonly returns the trivial
{{y -> Function[{x}, 0]}}.If you’re considering $-a^2$ to be an eigenvalue of the second derivative operator with the 0 velocity boundary conditions, first solve
then enforce the boundary conditions using
Reduce(where, to simplify the result, I’ve also assumed that
a != 0and that
solis not trivial)which says that the eigenvectors are proportional to $\cos(a x)$ for $a = 2 n \pi$ or $a = (2 n + 1) \pi$ with $n$ an integer.
As for the second equation in your question, it only makes sense to talk about eigenvectors for linear operators. For nonlinear differential equations, eigenvectors are useful for examining the linearized behaviour around critical points.