Solving 2nd Order Differential Equation with Initial Conditions

Click For Summary

Homework Help Overview

The discussion revolves around solving a second-order differential equation, specifically ##y''+4y'+4y=e^{x}##, with initial conditions ##y(0)=0; y'(0)=1##. Participants are examining the correctness of the original poster's (OP) approach and solution process.

Discussion Character

  • Exploratory, Assumption checking, Problem interpretation

Approaches and Questions Raised

  • The original poster attempts to solve the differential equation by finding the characteristic equation and deriving both the general and particular solutions. Some participants question the application of initial conditions and the resulting values for constants.

Discussion Status

Participants are engaged in verifying the correctness of the OP's solution and discussing the application of initial conditions. There is acknowledgment of the OP's method, but also a suggestion that there may have been errors in determining the constants based on the initial conditions.

Contextual Notes

There is a mention of the importance of not deleting posts, as it affects the resourcefulness of the forum for future users seeking similar solutions. This highlights the collaborative nature of the discussion.

iRaid
Messages
558
Reaction score
8
Mod note: Reinstated problem after poster deleted it. [/color]

Homework Statement


Just wondering if I did this correctly: ##y''+4y'+4y=e^{x}## and initial conditions ##y(0)=0; y'(0)=1##


Homework Equations





The Attempt at a Solution


So I found the characteristic equation to be ##r^{2}+4r+4=0## so r=-2 and the general solution is then: ##y_{g}=c_{1}e^{-2x}-c_{2}xe^{-2x}## and particular solution: ##y_{p}=Ae^{x}## and obviously the first and second derivatives are going to be the same thing. So plugging the particular solution into the problem: ##Ae^{x}+4Ae^{x}+4Ae^{x}=e^{x}##, so ##A=\frac{1}{9}##.

Now ##y=y_{g}+y_{p}## Which is: ##y=c_{1}e^{-2x}+c_{2}xe^{-2x}+\frac{1}{9}e^{x}##. Finally taking initial conditions y(0)=0 y'(0)=1 I get: $$y=\frac{-1}{9}e^{-2x}+\frac{-7}{9}xe^{-2x}+\frac{1}{9}e^{x}$$
 
Last edited by a moderator:
Physics news on Phys.org
iRaid said:

Homework Statement


Just wondering if I did this correctly: ##y''+4y'+4y=e^{x}## and initial conditions ##y(0)=0; y'(0)=1##

Homework Equations


The Attempt at a Solution


So I found the characteristic equation to be ##r^{2}+4r+4=0## so r=-2 and the general solution is then: ##y_{g}=c_{1}e^{-2x}-c_{2}xe^{-2x}## and particular solution: ##y_{p}=Ae^{x}## and obviously the first and second derivatives are going to be the same thing. So plugging the particular solution into the problem: ##Ae^{x}+4Ae^{x}+4Ae^{x}=e^{x}##, so ##A=\frac{1}{9}##.

Now ##y=y_{g}+y_{p}## Which is: ##y=c_{1}e^{-2x}+c_{2}xe^{-2x}+\frac{1}{9}e^{x}##. Finally taking initial conditions y(0)=0 y'(0)=1 I get: $$y=\frac{-1}{9}e^{-2x}+\frac{-7}{9}xe^{-2x}+\frac{1}{9}e^{x}$$

You can check these things yourself. Substitute your solution into the DE and conditions you are given. That's what the checkers you enlisted will do. I agree that y satisfies the DE and that y(0)=0. I don't think y'(0)=1.
 
Dick said:
You can check these things yourself. Substitute your solution into the DE and conditions you are given. That's what the checkers you enlisted will do. I agree that y satisfies that DE and the y(0)=0. I don't think y'(0)=1.

I'm not so much concerned with the answer, I want to know if I'm doing the work correctly and whether or not there's a simpler way to solve it.
 
iRaid said:
I'm not so much concerned with the answer, I want to know if I'm doing the work correctly and whether or not there's a simpler way to solve it.

You are doing it correctly and I don't think there's simpler way. You just goofed up a little in solving for c1 and c2 in applying the boundary conditions.
 
Dick said:
You are doing it correctly and I don't think there's simpler way. You just goofed up a little in solving for c1 and c2 in applying the boundary conditions.

OK that's all I was wondering thanks.
 
iRaid said:
done thanks

Now why did you delete the OP? Part of the use of Physics Forums is to provide a resource for people to look up past solutions and get some hints for their own problem. Deleting parts of threads makes them unreadable. That's, in part, why I quoted you. That makes the deletion doubly pointless.
 
iRaid, For the reason that Dick gave, please don't delete your post just because you got an answer.
 

Similar threads

  • · Replies 18 ·
Replies
18
Views
3K
Replies
2
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 21 ·
Replies
21
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
Replies
5
Views
2K
  • · Replies 12 ·
Replies
12
Views
2K
Replies
2
Views
2K