Second order initial value problem

jzl0027
Messages
5
Reaction score
0

Homework Statement


Solve the initial value problem y" = 2x - y' , y'(0) = 1 , y(0) = 0


I know this is probably a simple problem but I don't have a book for the class yet and the teacher didn't really cover this material in class but we still have homework due on monday so i need to figure this out. Thanks in advance for any help you can provide.
 
Physics news on Phys.org
Typically solved by finding a particular solution and a homogeneous solution.

The homogeneous problem is y''(x)+y'(x)=0. After you have solved this equation you can easily guess another solution that fits the original equation y''(x)+y'(x)=2x.

Do you know how to solve the homogeneous differential equation?
 
put the y terms on the left

y''+y'=2x

find the complementary function

y''+y'=0

form the quadratic

k^2 + k = 0

solve it

k = -1 or 0

the complementary function is:

y = Ae^(-x) + B

Find the particular integral

P(x)= ax^2 + bx + c

P'(x)= ax + b

P''(x)= a

P''(x) + P'(x) = 2x

a + ax + b = 2x

a = 2 b = -2

P(x)= 2x^2 - 2x

Add the complementary function and the particular integral to give the general solution

y(x)= Ae^(-x) + 2x^2 - 2x + B

Differentiate

y'(x)= -Ae^(-x) + 2/3 x^3 -2

plug in the initial values to find A and B

A + B = 0
-A -2 = 1

A = -3
B = 3

And voila

y(x)= -3e^-x + 2x^2 - 2x + 3

Please note that I didn't stop to check my answer so plug it in and see if it fits.

That was probably fairly confusing but these are actually quite easy. I started studying these, amongst other things, on Thursday and on Monday I have an exam, so I hope I understand them.
 
The idea isn't to just do the entire calculation for someone, but to assist with the steps leading up to the answer so they actually learn something.

Furthermore if you do an entire calculation for someone at least check if you haven't made any mistakes.

Gwilim said:
P(x)= ax^2 + bx + c

P'(x)= ax + b

P''(x)= a

P''(x) + P'(x) = 2x

a + ax + b = 2x

a = 2 b = -2

P(x)= 2x^2 - 2x

This is wrong.
 
i put it in my ti-89 and came up with y = -3e^-x + x^2 - 2x + 3

it would help for somebody to give an example (preferably the actual problem I'm working on)

what gwillim did would've helped out a lot if it'd been right... I'm not asking for the answer ... i just need to know how to work the problem
 
:redface:

Okay I'll be watching this thread
 
We can work through this problem together if you'd like. But first do you know how to solve a homogeneous equation? Are you familiar with the terms homogeneous and particular solution?

Gwilim you almost did everything right apart from saying that d/dx ax^2=ax instead of 2ax. This results in you being a factor two off.
 
no not really... not in terms of what that would mean for the problem I'm working on
 
all we've covered in class is first order
 
  • #10
Cyosis said:
Gwilim you almost did everything right apart from saying that d/dx ax^2=ax instead of 2ax. This results in you being a factor two off.

Oh wow, thanks for pointing that out!
 
  • #11
Well let's start at the start then.

If we have a second order differential equation of the form ay''(x)+by'(x)+cy=f(x) with a,b and c constants then we call this an inhomogeneous second order linear differential equation. The homogeneous linear differential equation is then given by ay''(x)+by'(x)+cy=0. We would like to solve the homogeneous problem first.

To solve ay''(x)+by'(x)+cy=0 we use a trial function e^{kx}. Now plug this equation into the homogeneous differential equation and find the constraints on k.
 
  • #12
jzl0027 said:
all we've covered in class is first order

Then this is a couple of steps more advanced than what you've been prepared for.

If you have a homogenous equation of the form ay'' + by' + cy = 0 you form a characteristic equation, which is a quadratic of the form ak^2 + bk + c = 0.

The form the solution takes depends on whether you have distinct real roots, repeated roots or complex roots.

for distinct real roots you have

y(x) = Ae^k1x + Be^k2x

where k1 and k2 are the solutions of the characteristic equation

for a repeated root you have

y(x) = Ae^kx + Bxe^kx

where k is the solution of the characteristic equation

for complex roots you have

y(x) = e^px(Asin(wx) + Bcos(wx))

where p is the real part of the root and w is the positive imaginary part
 
  • #13
If all you have covered in class is first order equations, let u= y'. Then the equation becomes u'+ u= 2x. That is a linear first order equation for u. Go ahead and use the condition y'(0)= u(0)= 1 to find the constant of integration. Then just integrate u to find y. Use the condition y(0)= 0 to find the new constant of integration.
 
  • #14
can i just integrate the whole equation with respect to x so that:

y'=x2 - y + C

plug in values and

C=1 so that

y' + y = x2 + 1

I(x) = e(integral of 1 dx) = ex

(e^x)y = \int(x2+1)ex dx = (x2 - 2x + 3)ex + C

y = -3e-x + x2 - 2x + 3
 
Back
Top