Diff eq with constants... Eulers identity...

  • #1
Rijad Hadzic
321
20

Homework Statement


Find the general solution of the second order DE.

[itex] y'' + 9y = 0 [/itex]

Homework Equations




The Attempt at a Solution



Problem is straight forward I just don't get why my answer is different than the books.

So you get

[itex] m^2 + 9 = 0 [/itex]
[itex] m = 3i [/itex] and [itex] m = -3i [/itex]

so the general solution would be:

[itex] c_1e^{3ix} + c_2e^{-3ix} = y [/itex]

my book gives me

[itex] e^{i\theta} = cos(\theta) + isin(\theta) [/itex]

from there I get

[itex] e^{iβx} = cos(βx) + isin(βx) [/itex]
[itex] e^{i-βx} = cos(βx) - isin(βx) [/itex]

I have

[itex] e^{i3x} = cos(3x) + isin(3x) [/itex]
[itex] e^{i-3x} = cos(3x) - isin(3x) [/itex]

so I get [itex] y = c_1cos(3x) + c_1isin(3x) + c_2cos(3x) -c_2isin(3x) [/itex]

but my book gives me

[itex] y = c_1cos(3x) + c_2sin(3x) [/itex]

I feel like my answer is still valid for some reason.. I just don't know how they got their answer from my answer. I used the correct identity..
 

Answers and Replies

  • #2
Orodruin
Staff Emeritus
Science Advisor
Homework Helper
Insights Author
Gold Member
20,004
10,651
Your ##c_1## and ##c_2## are just not the same constants as those of the book.
 
  • #3
Rijad Hadzic
321
20
Your ##c_1## and ##c_2## are just not the same constants as those of the book.

So I guess that means my answer is still valid then... I just don't get what they used for c1 and c2... did they use i or something? because I notice there is no i term in their answer..
 
  • #4
Ray Vickson
Science Advisor
Homework Helper
Dearly Missed
10,706
1,722

Homework Statement


Find the general solution of the second order DE.

[itex] y'' + 9y = 0 [/itex]

Homework Equations




The Attempt at a Solution



Problem is straight forward I just don't get why my answer is different than the books.

So you get

[itex] m^2 + 9 = 0 [/itex]
[itex] m = 3i [/itex] and [itex] m = -3i [/itex]

so the general solution would be:

[itex] c_1e^{3ix} + c_2e^{-3ix} = y [/itex]

my book gives me

[itex] e^{i\theta} = cos(\theta) + isin(\theta) [/itex]

from there I get

[itex] e^{iβx} = cos(βx) + isin(βx) [/itex]
[itex] e^{i-βx} = cos(βx) - isin(βx) [/itex]

I have

[itex] e^{i3x} = cos(3x) + isin(3x) [/itex]
[itex] e^{i-3x} = cos(3x) - isin(3x) [/itex]

so I get [itex] y = c_1cos(3x) + c_1isin(3x) + c_2cos(3x) -c_2isin(3x) [/itex]

but my book gives me

[itex] y = c_1cos(3x) + c_2sin(3x) [/itex]

I feel like my answer is still valid for some reason.. I just don't know how they got their answer from my answer. I used the correct identity..

Just write ##a = c_1 + c_2## and ##b = i c_1 - i c_2##. Your solution becomes ##a \cos 3x + b \sin 3x## for two constants ##a## and ##b##.

BTW: when using LaTeX, do NOT write ##cos(\theta)##, etc.; write, instead, ##\cos( \theta)## or ##\cos \theta##, which you get by typing "\cos" instead of "cos", The notation ##cos \theta## looks ugly and is hard to read, but ##\cos \theta## looks good and is clear.
 
  • #5
Rijad Hadzic
321
20
Gotcha. Ty everyone!
 

Suggested for: Diff eq with constants... Eulers identity...

Replies
8
Views
151
  • Last Post
Replies
10
Views
467
  • Last Post
Replies
3
Views
483
  • Last Post
Replies
4
Views
2K
Replies
0
Views
334
Replies
1
Views
948
Replies
9
Views
768
Replies
3
Views
411
  • Last Post
Replies
5
Views
1K
Top