Question about solving ODE with Complex eigenvalue

Click For Summary
SUMMARY

The discussion centers on solving the ordinary differential equation (ODE) y'' + y = 0 using MAPLE, where the general solution is expressed as f(x) = _C1*sin(x) + _C2*cos(x). The user questions the discrepancy between their derived solution using complex eigenvalues (+i, -i) and the solution generated by MAPLE. The resolution clarifies that the general solution can be rearranged to f(x) = A1*cos(x) + A2*sin(x) with A1 and A2 as complex constants, emphasizing that real functions require A1 and A2 to be real, aligning C1 and C2 as complex conjugates.

PREREQUISITES
  • Understanding of ordinary differential equations (ODEs)
  • Familiarity with complex numbers and eigenvalues
  • Knowledge of MAPLE software for solving differential equations
  • Basic understanding of Euler's formula
NEXT STEPS
  • Explore advanced features of MAPLE for solving ODEs
  • Study the implications of complex eigenvalues in differential equations
  • Learn about the relationship between complex constants and real functions
  • Investigate the application of Euler's formula in various mathematical contexts
USEFUL FOR

Mathematicians, engineering students, and anyone interested in solving differential equations, particularly those involving complex eigenvalues and using MAPLE for computational solutions.

nufeng
Messages
6
Reaction score
0
For example,
ODE: y'' + y = 0
solve this problem using MAPLE
f(x) = _C1*sin(x)+_C2*cos(x)

My question is Eigenvalue for D^2+1=0 is +i, -i
so general solution is f(x) = C1*exp(i*x)+C2*exp(-i*x)
according to Euler's formula f(x) = C1( cos(x)+i*sin(x) ) + C2*( cos(x)-i*sin(x) )
it is different from the general solution generated by MAPLE
why?

Thanks!
 
Physics news on Phys.org
Your solution is the general solution assuming f(x) is complex, and your constants C1 and C2 are also complex. You can rearrange it as
f(x) = (C1 + C2) cos(x) + i (C1 - C2) sin(x)
or
f(x) = A1 cos(x) + A2 sin(x)
wherne A1 and A2 are complex constants.
If course if you want to restrict f(x) to be a real function, A1 and A2 must be real. That condition is the equivalent to C1 and C2 being complex conjugates, so that C1 + C2 is real and C1 - C2 is imaginary.
 
AlephZero, thank you! Really helpful!

AlephZero said:
Your solution is the general solution assuming f(x) is complex, and your constants C1 and C2 are also complex. You can rearrange it as
f(x) = (C1 + C2) cos(x) + i (C1 - C2) sin(x)
or
f(x) = A1 cos(x) + A2 sin(x)
wherne A1 and A2 are complex constants.
If course if you want to restrict f(x) to be a real function, A1 and A2 must be real. That condition is the equivalent to C1 and C2 being complex conjugates, so that C1 + C2 is real and C1 - C2 is imaginary.
 

Similar threads

  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 28 ·
Replies
28
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K