• Support PF! Buy your school textbooks, materials and every day products Here!

General solution of second order ODE

  • #1
131
1

Homework Statement



Find the general solution.

Homework Equations



y"+y=x2sin2x

The Attempt at a Solution



Characteristic equation would be:
m2 + 1 = 0

So,m2 = -1

Therefore, m = i or m = -i.

Complementary function would be : Asinx+Bcosx where,A and B are constants respectively.

If I write the particular integral as (Cx2+Dx+E)sin2x + (Px2+Qx+R)cos2x
Then,it would be very tedious to solve.

Is there any alternative way like writing sin2x as Imaginary part of ei2x and then solving the particular integral?
 

Answers and Replies

  • #2
33,096
4,796

Homework Statement



Find the general solution.

Homework Equations



y"+y=x2sin2x

The Attempt at a Solution



Characteristic equation would be:
m2 + 1 = 0

So,m2 = -1

Therefore, m = i or m = -i.

Complementary function would be : Asinx+Bcosx where,A and B are constants respectively.

If I write the particular integral as (Cx2+Dx+E)sin2x + (Px2+Qx+R)cos2x
Then,it would be very tedious to solve.
But not that tedious. All you have to do is take the first and second derivatives, and substitute them into your DE to determine the six constants. It might be there is another way, but this is how I would do the problem.
smart_worker said:
Is there any alternative way like writing sin2x as Imaginary part of ei2x and then solving the particular integral?
 
  • #3
rude man
Homework Helper
Insights Author
Gold Member
7,571
689
Another approach is Laplace transform:

For the right-hand term,
if f(x) ↔ F(s), then
x2f(x) ↔ F''(s)
and f(x) = sin(2x) and F(s) = L{sin(2x)}.

You can incorporate the two initial conditions on y also in the usual manner if they're not identically zero.
 

Related Threads for: General solution of second order ODE

  • Last Post
Replies
3
Views
559
  • Last Post
Replies
1
Views
1K
Replies
3
Views
6K
  • Last Post
Replies
6
Views
4K
Replies
0
Views
845
Replies
2
Views
868
Replies
2
Views
506
Replies
5
Views
3K
Top