2nd order diff Eq help

In summary, the conversation discusses solving a second order differential equation with the independent variable t missing. The method used involves setting z = y' and reducing it to a first order DE. The solution is found to be an exponential function. The conversation also touches on solving other similar problems and the use of different methods for solving boundary value problems.
  • #1
cheeee
15
0
2nd order diff Eq with t missing

I am trying to find y as a function of t
and y'' - y = 0
The two IV given are y(0) = 7, and y(1) = 5 .. Remark: the initial condition involves values at two points.

Well since y = {y,y''} and the independent variable t does not appear, I went about it by setting z = y' and trying to reduce it to a first order DE.

z = dy/dt = y'
z * dz/dy - y = 0
z(dz/dy) = y
Separating the variables and integrating...
zdz = ydy
(z^2)/2 = (y^2)/2 + c
z^2 = (y^2) + C (where C = 2c)
z = sqrt (y^2 + C)
Normally here I would use the IVs to determine C before..however both there is no IV involving y'(t)...
Anyways...
z = sqrt (y^2 + C)
y' = sqrt (y^2 + C)
dy/dt = sqrt (y^2 + C)
dy/sqrt(y^2 + C) = dt
So do I just integrate from here? Isn't this a composite function on the left hand side...so the variable y would appear as well as y^2 ?

How do I solve this problem and get an answer in the form of y(t) = _________________
Any help would be appreciated.
 
Physics news on Phys.org
  • #2
I am trying to find y as a function of t (Determine y(t) = _____________)
and y'' - y = 0
The two IV given are y(0) = 7, and y(1) = 5 .. Remark: the initial condition involves values at two points.

Well since y = {y,y''} and the independent variable t does not appear, I went about it by setting z = y' and trying to reduce it to a first order DE.

z = dy/dt = y'
z * dz/dy - y = 0
z(dz/dy) = y
Separating the variables and integrating...
zdz = ydy
(z^2)/2 = (y^2)/2 + c
z^2 = (y^2) + C (where C = 2c)
z = sqrt (y^2 + C)
Normally here I would use the IVs to determine C before..however both there is no IV involving y'(t)...
Anyways...
z = sqrt (y^2 + C)
y' = sqrt (y^2 + C)
dy/dt = sqrt (y^2 + C)
dy/sqrt(y^2 + C) = dt
So do I just integrate from here? Isn't this a composite function on the left hand side...so the variable y would appear as well as y^2 ?

How do I solve this problem and get an answer in the form of y(t) = _________________
Any help would be appreciated.
 
  • #3
The solution here is going to be an exponential.
[tex]
L(y) = y'' - y = 0[/tex]
[tex]
L(e^{rt}) = (r^{2} - 1)(e^{rt})
[/tex]

That expression is zero when r = [itex]\pm 1[/itex]
This gives us two different solutions

[tex]\phi _{1} = e^{t} [/tex]
[tex]\phi _{2} = e^{-t}
[/tex]
It turns out every solution to L(y) = 0 is in the span of these two solutions.
[tex]
y = c_{1}\phi _{1} + c_{2}\phi_{2}
[/tex]
Use the two initial value points to get two equations in two unknowns then solve the system
 
Last edited:
  • #4
Can you please explain to me how you got to this step:

This gives us two different solutions
phi1 = e^t*phi2 = e^(-t)

Thanks
 
  • #5
I plugged e^(rt) into L(y). This gave us (r^2 - 1)e^(rt) = 0
e^(rt) can't be zero so this is only zero when r^2 - 1 = 0 which gives r = 1 or r = -1.
Taking r = 1 gives us e^t, r = -1 gives us e^-t. The two solutions aren't being multiplied; they're two different equations. I'll edit my post to make that more clear.
 
  • #6
oh, okay thanks, that's what I found confusing it makes sense now.
 
  • #7
Hello cheeee,

You are on the right track. Indeed you need to integrate this function, but keep in mind that there are two roots, a positive and a negative one, so you have to check two integrals. Now take p.e. the negative one, which was:

[tex]z=-\sqrt{y^2+A^2}=\frac{dy}{dt}[/tex]

This gives as an integral:

[tex]-\int dt= \int \frac{dy}{\sqrt{y^2+A^2}}[/tex]

Or:

[tex]-t= ln(y+\sqrt{y^2+A^2})+B[/tex]

Now, if you rewrite this as:

[tex]e^{(-t-B)}=y+\sqrt{y^2+A^2}[/tex]

Take the square, and use this equation as a substitution, you will find y=f(t). There will be two constants involved as it should be. Calculate the same for the positive root, it will be the same and then you can apply the initial values. Note that it is a standard equation you are solving, to be honest I had to think a bit before I could follow your reasoning. To me it is so common that I know the solution by heart. There is a different way of writing the solution if you consider the definition of the hyperbolic sin and cosine function.

If anything is unclear, please post.
 
  • #8
I have other problems of similar form
such as 4y'' - 81y = 0
and 2500y'' + 9y = 0

Should I go about solving these using the same method?
 
  • #9
cheeee said:
I have other problems of similar form
such as 4y'' - 81y = 0
and 2500y'' + 9y = 0

Should I go about solving these using the same method?

That's ok for the first one. But the second one will have solutions of the form cos(rt) and sin(rt). Haven't you learned a more general method for handling these types of equations?
 
  • #10
No unfortunately the professor has mentioned anything about it and gave us this web assignment anyways... also we don't use a textbook just his lectures...which why I am utterly confused.. if someone can point me in the direction of a good link that might explain the general methods that would be great.
 
  • #11
By the way, you don't have an initial condition involving "values at 2 different points". An "initial condition", by defition has all values given at a single point. What you have is a "boundary value condition".

It's not just a "technical point". "Existance and Uniqueness" for an initial value problem depend entirely upon the equation. "Existance and Uniquenexx" for boundary value problems also depends upon the precise boundary values.
 
  • #12
This same problem appeared in "homework" so I am merging the threads
 
  • #13
cheeee said:
I have other problems of similar form
such as 4y'' - 81y = 0
and 2500y'' + 9y = 0

Should I go about solving these using the same method?

Yep, that will definitely work and in fact it will work with any equation of the form
[tex]a y + b y' + c y'' + d y''' + e y'''' + ... = 0[/tex],
as long as you can solve the polynomial you get for the r in the trial solution [itex]e^{r t}[/itex] (which might be very hard, and impossible to do non-numerically for fifth-order equations)

But, as Dick said, the second one might give you problems if you are not used to working with complex numbers. If you are, however, you can just use the same method and use Euler's identity
[tex]e^{i\theta} = \cos\theta + \mathrm i \sin\theta[/tex]
to write it in terms sines and cosines (which is completely equivalent, but looks better).

If you're not used to working with complex numbers: just try the first method. If you find there are no solutions for r (usually I call it [itex]\lambda[/itex]) then try plugging in something like
[tex]y(t) = A \cos(\lambda t) + B \sin(\lambda t)[/tex]
which seems like a reasonable thing to do, since y'' already looks very much like y (just need to determine the constants)
 
Last edited:
  • #14
cheeee said:
No unfortunately the professor has mentioned anything about it and gave us this web assignment anyways... also we don't use a textbook just his lectures...which why I am utterly confused.. if someone can point me in the direction of a good link that might explain the general methods that would be great.

Your examples so far are linear equations with constant coefficients. You might check out http://en.wikipedia.org/wiki/Linear_differential_equation
 

1. What is a 2nd order differential equation?

A 2nd order differential equation is a mathematical equation that expresses the relationship between an independent variable, its derivatives, and a dependent variable. It involves the second derivative of the dependent variable and can be written in the form of d²y/dx² = f(x,y,dy/dx).

2. How do you solve a 2nd order differential equation?

The general method for solving a 2nd order differential equation is to first identify the type of equation (i.e. linear, non-linear, homogeneous, etc.), then use a variety of techniques such as separation of variables, substitution, or the method of undetermined coefficients to find the solution. Additionally, boundary or initial conditions may need to be applied to obtain a specific solution.

3. What is the difference between a 1st and 2nd order differential equation?

A 1st order differential equation involves the first derivative of the dependent variable, while a 2nd order differential equation involves the second derivative. This means that a 2nd order equation is more complex and requires more information to be solved compared to a 1st order equation.

4. Why are 2nd order differential equations important?

2nd order differential equations have a wide range of applications in various fields such as physics, engineering, economics, and biology. They are used to model and predict the behavior of systems that involve acceleration, oscillations, and exponential growth or decay. They also play a crucial role in understanding and solving real-world problems.

5. What are some common techniques used to solve 2nd order differential equations?

Some common techniques for solving 2nd order differential equations include the method of undetermined coefficients, variation of parameters, power series, and Laplace transforms. Each technique has its own advantages and is applicable to different types of equations. It is important to choose the appropriate method based on the characteristics of the equation at hand.

Similar threads

  • Calculus and Beyond Homework Help
Replies
6
Views
746
  • Calculus and Beyond Homework Help
Replies
21
Views
826
  • Calculus and Beyond Homework Help
Replies
2
Views
365
  • Calculus and Beyond Homework Help
Replies
20
Views
443
  • Calculus and Beyond Homework Help
Replies
4
Views
1K
  • Calculus and Beyond Homework Help
Replies
7
Views
674
  • Calculus and Beyond Homework Help
Replies
8
Views
455
  • Calculus and Beyond Homework Help
Replies
5
Views
616
  • Calculus and Beyond Homework Help
Replies
12
Views
977
  • Calculus and Beyond Homework Help
Replies
2
Views
296
Back
Top