Second-order nonhomogeneous diff-eq

  • Context: Undergrad 
  • Thread starter Thread starter BucketOfFish
  • Start date Start date
  • Tags Tags
    Nonhomogeneous
Click For Summary

Discussion Overview

The discussion revolves around solving a second-order nonhomogeneous differential equation of the form u'' + a^2*u = cos(bx). Participants explore methods for finding the general solution, including approaches for handling the nonhomogeneous term on the right side of the equation.

Discussion Character

  • Homework-related
  • Mathematical reasoning

Main Points Raised

  • One participant recalls the method for solving the homogeneous part of the equation but is uncertain about addressing the cosine term.
  • Another participant suggests finding a particular solution by using a combination of cos(bx) and sin(bx), noting that if b equals ±a, a different approach involving xcos(bx) and xsin(bx) would be necessary.
  • A different approach is proposed involving the use of complex exponentials, suggesting that one could use the function u'' + a^2*u' = e^(ibx) and apply Euler's formula to separate real and imaginary parts.
  • There is a discussion about the preference for using exponential functions over trigonometric functions, even when the cosine function is present on the right-hand side.

Areas of Agreement / Disagreement

The discussion contains multiple competing views on how to approach the solution, with no consensus reached on the best method to apply.

Contextual Notes

Participants express uncertainty regarding the specific conditions under which different methods may be applicable, particularly in relation to the values of b and a.

BucketOfFish
Messages
60
Reaction score
1
Hey guys. It's been a few years since I've taken diff-eq and I can't remember how to solve second-order problems like this one:

Find the general solution of
u'' + a^2*u = cos(bx)

I know that if it were homogeneous, I would solve for r^2 + a^2 = 0, and get u = ce^(rx). But for the life of me I can't remember what to do with that cosine on the right side of the equation. Can anyone help?
 
Physics news on Phys.org
Welcome to PF!

Hi BucketOfFish! Welcome to PF! :smile:

(try using the X2 icon just above the Reply box :wink:)

You need to find a particular solution (ie any solution to the equation), which you can then add to the general solution to the homogeneous equation.

In this case, try a combination of cos(bx) and sin(bx). :smile:

(if b = ±a, that doesn't work, and you'll need xcos(bx) and xsin(bx))
 
Thanks a lot; that really helped!
 
I bet you could also use the function:

u''+a2u' = eibx and split the real and imaginary portions with Euler's formula.

I find e easier to work with than sin and cos.
 
hi evad1089! :smile:
evad1089 said:
I find e easier to work with than sin and cos.

even when cos is already on the RHS? :wink:
BucketOfFish said:
u'' + a^2*u = cos(bx)
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
3K
Replies
4
Views
2K
  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 19 ·
Replies
19
Views
5K
Replies
4
Views
2K