Second order initial value problem

In summary: Ce-xplug in y(0) = 00 = -3 + 3 + CC = 0y = -3e-x + x2 - 2x + 3y' = 3e-x + 2x - 2plug in y'(0) = 11 = 3 + 2 - 21 = 3No, you cannot simply integrate the whole equation with respect to x. You must use the initial conditions to find the value of the constant C. Please follow the steps I have outlined above.
  • #1
jzl0027
5
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
  • #2
Typically solved by finding a particular solution and a homogeneous solution.

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

Do you know how to solve the homogeneous differential equation?
 
  • #3
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.
 
  • #4
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.
 
  • #5
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
 
  • #6
:redface:

Okay I'll be watching this thread
 
  • #7
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.
 
  • #8
no not really... not in terms of what that would mean for the problem I'm working on
 
  • #9
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 [itex]ay''(x)+by'(x)+cy=f(x)[/itex] 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 [itex]ay''(x)+by'(x)+cy=0[/itex]. We would like to solve the homogeneous problem first.

To solve [itex]ay''(x)+by'(x)+cy=0[/itex] we use a trial function [itex]e^{kx}[/itex]. 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 = [tex]\int[/tex](x2+1)ex dx = (x2 - 2x + 3)ex + C

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

What is a second order initial value problem?

A second order initial value problem is a type of mathematical problem that involves finding a function that satisfies a second order differential equation with specified initial conditions. It is often used in physics and engineering to model real-world phenomena.

What is the difference between a first and second order initial value problem?

The main difference between a first and second order initial value problem is the order of the differential equation. A first order initial value problem involves finding a function that satisfies a first order differential equation with specified initial conditions, while a second order initial value problem involves finding a function that satisfies a second order differential equation with specified initial conditions.

What are some real-world applications of second order initial value problems?

Second order initial value problems are commonly used in physics and engineering to model various physical systems, such as the motion of a pendulum, the behavior of an electrical circuit, or the vibration of a spring.

What are some common methods for solving second order initial value problems?

There are several methods for solving second order initial value problems, such as the Euler method, the Runge-Kutta method, and the shooting method. These methods involve using numerical techniques to approximate the solution of the differential equation.

Why is it important to solve second order initial value problems?

Solving second order initial value problems allows us to accurately model and predict the behavior of physical systems. This can be useful in a variety of fields, such as engineering, physics, and economics, where understanding the behavior of systems is crucial for making informed decisions and solving real-world problems.

Similar threads

  • Calculus and Beyond Homework Help
Replies
8
Views
751
  • Calculus and Beyond Homework Help
Replies
1
Views
960
  • Calculus and Beyond Homework Help
Replies
11
Views
951
  • Calculus and Beyond Homework Help
Replies
10
Views
1K
  • Calculus and Beyond Homework Help
Replies
14
Views
1K
  • Calculus and Beyond Homework Help
Replies
4
Views
1K
  • Calculus and Beyond Homework Help
Replies
9
Views
1K
  • Calculus and Beyond Homework Help
Replies
33
Views
3K
  • Calculus and Beyond Homework Help
Replies
9
Views
1K
  • Calculus and Beyond Homework Help
Replies
11
Views
1K
Back
Top