How to solve the ODE y'' + y = sin(x)

  • Thread starter Thread starter toastie
  • Start date Start date
  • Tags Tags
    Ode
Click For Summary
SUMMARY

The discussion focuses on solving the ordinary differential equation (ODE) y'' + y = sin(x) with initial conditions y(90°) = 3 and y(45°) = 2. The user correctly identifies the complementary solution as y_c = c1*cos(x) + c2*sin(x) but encounters difficulties when applying the method of undetermined coefficients for the particular solution. The issue arises because the right-hand side of the equation includes terms already present in the complementary solution, necessitating the use of a modified approach, such as the method of variation of parameters or the introduction of an additional factor to the particular solution.

PREREQUISITES
  • Understanding of ordinary differential equations (ODEs)
  • Familiarity with the method of undetermined coefficients
  • Knowledge of complementary and particular solutions
  • Basic trigonometric functions and their properties
NEXT STEPS
  • Study the method of variation of parameters for solving ODEs
  • Learn about the Wronskian and its role in finding particular solutions
  • Review the theory behind resonance in differential equations
  • Explore advanced techniques for solving non-homogeneous linear ODEs
USEFUL FOR

Students studying differential equations, mathematics educators, and anyone seeking to deepen their understanding of ODE solution techniques, particularly in the context of non-homogeneous equations.

toastie
Messages
46
Reaction score
0

Homework Statement


y"+y=sinx

initial conditions: y(90 deg) = 3, y(45 deg) = 2

Calculate y at x = -1


Homework Equations


y=u+v


The Attempt at a Solution



I have gotten the following:

r^2 + 1 = 0 Therefore, r1=i and r2 = -i

u=(c1)cosx + (c2)sinx

v=Asinx + Bcosx
v'=Acosx - Bsinx
v"=-Asinx - Bcosx

-Asinx -Bcosx + Asinx + Bcosx - sinx = 0

everything cancels down to: -sinx = 0. Thus, v=0

Then I get,

y=(c1)cosx + (c2)sinx + 0

y(45 deg) shows that c2=2

y(90 deg) shows that c1=3

Thus, y=3cosx + 2sinx

y(-1) = -.06204

Could someone please let me know where I am making a mistake?

Thank you in advance!
 
Physics news on Phys.org


The solution of the homogeneous case has terms cos x and sin x in it. The right-hand-side *also* has one of those terms in it. Presumably your textbook has the information of what to do in this exceptional case... as you found, the usual method does not work.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
Replies
4
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 16 ·
Replies
16
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
2
Views
1K
Replies
9
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K