Sin+cos solution undetermined coeff. de

  • Thread starter Thread starter EvLer
  • Start date Start date
Click For Summary
SUMMARY

The discussion centers on solving the differential equation y'' + 16y = 24 cos(4x) using the method of undetermined coefficients. The homogeneous solution is correctly identified as y = c1e^(4ix) + c2e^(-4ix). The particular solution is proposed as y = x(Acos(4x) + Bsin(4x), leading to the coefficients A and B being determined as A = 0 and B = 3, resulting in the particular solution y(p) = 3x sin(4x). The participant also notes that the book's answer was incorrect.

PREREQUISITES
  • Understanding of second-order linear differential equations
  • Familiarity with the method of undetermined coefficients
  • Knowledge of Euler's formula for complex exponentials
  • Ability to differentiate trigonometric functions
NEXT STEPS
  • Study the method of undetermined coefficients in greater detail
  • Learn about solving non-homogeneous differential equations
  • Explore the application of Euler's formula in solving differential equations
  • Practice solving similar differential equations with varying coefficients
USEFUL FOR

Students and professionals in mathematics, particularly those studying differential equations, as well as educators looking for examples of the method of undetermined coefficients.

EvLer
Messages
454
Reaction score
0
This looks like a very simple one, but i ran out of ideas. I do not get the answer and unlikely will get it without some help:

y'' + 16y = 24 cos(4x)

I found homogeneous solution:

y = c1ei4 + c2e-i4

I haven't re-written it using euler's formula yet.
So, for particular solution the general form is:

y = x(Acos(4x) + Bsin(4x))

I differentiated it and plugged into the DE and here's what i have:

-8Asin(4x) + 8Bcos(4x) + xsin(4x)*[16A - 16B] + xcos(4x)*[16B - 16A] = 24cos(4x);

It seems like last two terms need to go away, but then A = B and to get rid of the sin A = 0! the answer is totally different though.
Where am i going wrong?

Thanks for any hints.

EDIT: or would yp = x2(Acos(4x) + Bsin(4x))
I'm confused... :confused: i can't work it out with x2 either ...
 
Last edited:
Physics news on Phys.org
I find the last two terms do cancel

y = x(Acos(4x) + Bsin(4x))

y' = Acos(4x) + Bsin(4x) + x (-4Asin(4x) + 4Bcos(4x))

y" = -4Asin(4x) + 4Bcos(4x) -4Asin(4x) + 4Bcos(4x) + x (-16Acos(4x) - 16Bsin(4x))

Putting back into the equation y" + 16y = 24cos(4x) gives

-4Asin(4x) + 4Bcos(4x) -4Asin(4x) + 4Bcos(4x) + x (-16Acos(4x) - 16Bsin(4x))

+ 16 ( x(Acos(4x) + Bsin(4x)) ) = 24 cos(4x)

Here we are left with

-8Asin(4x) + 8Bcos(4x) = 24 cos(4x)

so B = 3 and A = 0

so a

y(p) = 3x sin(4x)
 
Thanks for reply.
that was my "other" solution. Good thing it matched yours. Come to find out: the book answer was wrong :mad:
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 14 ·
Replies
14
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K