Finding Non-trivial solutions to ODE in Mathematica

  • Thread starter Thread starter sci-phy
  • Start date Start date
  • Tags Tags
    Mathematica Ode
Click For Summary
To find non-trivial solutions for the second-order ODE X'' + λ*X = 0 in Mathematica, it is essential to correctly set boundary conditions. The trivial solution occurs when u(a) = 0 is applied without specifying conditions on 'a'. To obtain non-trivial solutions, rewrite 'a' in terms of a suitable multiple of λ. This adjustment allows Mathematica to produce the desired non-trivial solutions. Properly defining the parameters is crucial for accurate results in solving differential equations.
sci-phy
Messages
17
Reaction score
0
For an ODE of order 2 like:

X'' + λ*X = 0, how do I find the non-trivial solution in Mathematica 8? It's giving me only the trivial solution.

In: ComplexExpand [DSolve[{u''[x] + \[Lambda]^2 u[x] == 0, u[0] == 0, u[a] == 0}, u[x], x]]

and the out: u[x]--> 0 which is the trivial soln

Thanks
 
Physics news on Phys.org
You've set ##u(a)=0## without placing any conditions on ##a##. Try using rewriting ##a## in terms of an appropriate multiple of ##\lambda##.
 
  • Like
Likes 1 person

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 24 ·
Replies
24
Views
4K
  • · Replies 11 ·
Replies
11
Views
3K
Replies
0
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K