How Do I Solve y'' - y = 0 with Given Initial Conditions?

  • Thread starter Thread starter cheeee
  • Start date Start date
  • Tags Tags
    2nd order Diff eq
Click For Summary
SUMMARY

The discussion focuses on solving the second-order differential equation y'' - y = 0 with initial conditions y(0) = 7 and y(1) = 5. The solution involves finding the general solution using characteristic equations, resulting in y = c1 * e^t + c2 * e^(-t). The participants emphasize the importance of recognizing the initial conditions as boundary value conditions rather than initial value conditions, which affects the existence and uniqueness of solutions. The conversation also touches on methods for solving similar differential equations with constant coefficients.

PREREQUISITES
  • Understanding of second-order differential equations
  • Familiarity with characteristic equations and exponential functions
  • Knowledge of initial and boundary value problems
  • Basic integration techniques for differential equations
NEXT STEPS
  • Study the method of characteristic equations for solving linear differential equations
  • Learn about boundary value problems and their implications on solution existence
  • Explore the use of hyperbolic functions in solving differential equations
  • Investigate Euler's formula and its application in complex solutions of differential equations
USEFUL FOR

Students and professionals in mathematics, engineering, and physics who are solving differential equations, particularly those dealing with boundary value problems and exponential solutions.

cheeee
Messages
15
Reaction score
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
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.
 
The solution here is going to be an exponential.
<br /> L(y) = y&#039;&#039; - y = 0
<br /> L(e^{rt}) = (r^{2} - 1)(e^{rt})<br />

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

\phi _{1} = e^{t}
\phi _{2} = e^{-t}<br />
It turns out every solution to L(y) = 0 is in the span of these two solutions.
<br /> y = c_{1}\phi _{1} + c_{2}\phi_{2}<br />
Use the two initial value points to get two equations in two unknowns then solve the system
 
Last edited:
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
 
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.
 
oh, okay thanks, that's what I found confusing it makes sense now.
 
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:

z=-\sqrt{y^2+A^2}=\frac{dy}{dt}

This gives as an integral:

-\int dt= \int \frac{dy}{\sqrt{y^2+A^2}}

Or:

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

Now, if you rewrite this as:

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

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.
 
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?
 
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". "existence and Uniqueness" for an initial value problem depend entirely upon the equation. "existence 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
a y + b y&#039; + c y&#039;&#039; + d y&#039;&#039;&#039; + e y&#039;&#039;&#039;&#039; + ... = 0,
as long as you can solve the polynomial you get for the r in the trial solution e^{r t} (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
e^{i\theta} = \cos\theta + \mathrm i \sin\theta
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 \lambda) then try plugging in something like
y(t) = A \cos(\lambda t) + B \sin(\lambda t)
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
 

Similar threads

Replies
6
Views
2K
Replies
8
Views
2K
Replies
3
Views
2K
Replies
7
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
3
Views
2K
  • · Replies 21 ·
Replies
21
Views
2K
Replies
11
Views
2K