Second-Order ODE with Missing X

  • Thread starter _N3WTON_
  • Start date
  • Tags
    Ode
Then, if you're interested in more than "just" constant coefficients (and you should be), look for a text on "ordinary differential equations" or "differential equations: an introduction".Some good textbooks on differential equations include:1. "Differential Equations and Linear Algebra" by Gilbert Strang2. "Elementary Differential Equations and Boundary Value Problems" by William E. Boyce and Richard C. DiPrima3. "Differential Equations with Boundary-Value Problems" by Dennis G. Zill and Warren S. Wright4. "Ordinary Differential Equations" by Morris Tenenbaum and Harry Pollard5. "A First
  • #1
_N3WTON_
351
3

Homework Statement


Solve the given differential equations with missing x.
[itex] y'' + y = 0 [/itex]

Homework Equations


[itex] y = c_1cos(x) + c_2sin(x) [/itex]
This is the answer given in the back of the book. However, I can't sem to get my answer to agree

The Attempt at a Solution


First, I made some substitutions:
[itex] y' = v y'' = v' [/itex]
Using the chain rule I obtained:
[itex] \frac{dv}{dx} = v\frac{dv}{dy} = v' [/itex]
So the equation becomes:
[itex] v\frac{dv}{dy} + y = 0 [/itex]
[itex] vdv = -ydy [/itex]
[itex] \int vdv = -\int ydy [/itex]
[itex] \frac{v^2}{2} = - \frac{y^2}{2} + C_1 [/itex]
[itex] v = +- sqrt(-y + C_1) [/itex]
[itex] \frac{dy}{dx} = sqrt(-y + C_1) [/itex]
[itex] \int\frac{dy}{dx} = \int sqrt(-y+C_1),dx [/itex]
[itex] y = \frac{2}{3} (-y+C_1)^{\frac{3}{2}} + C_2 [/itex]
Clearly this solution is nowhere close to the one in the back of the book, so I was hoping somebody could point out where I have gone wrong :)
 
Physics news on Phys.org
  • #2
Just to be clear, at the top the two equations are y'=v and y''=v'...it is not all one equation
 
  • #3
_N3WTON_ said:

Homework Statement


Solve the given differential equations with missing x.
[itex] y'' + y = 0 [/itex]

Homework Equations


[itex] y = c_1cos(x) + c_2sin(x) [/itex]
This is the answer given in the back of the book. However, I can't sem to get my answer to agree

The Attempt at a Solution


First, I made some substitutions:
[itex] y' = v y'' = v' [/itex]
Using the chain rule I obtained:
[itex] \frac{dv}{dx} = v\frac{dv}{dy} = v' [/itex]
So the equation becomes:
[itex] v\frac{dv}{dy} + y = 0 [/itex]
[itex] vdv = -ydy [/itex]
[itex] \int vdv = -\int ydy [/itex]
[itex] \frac{v^2}{2} = - \frac{y^2}{2} + C_1 [/itex]
[itex] v = +- sqrt(-y + C_1) [/itex]
[itex] \frac{dy}{dx} = sqrt(-y + C_1) [/itex]
[itex] \int\frac{dy}{dx} = \int sqrt(-y+C_1),dx [/itex]
[itex] y = \frac{2}{3} (-y+C_1)^{\frac{3}{2}} + C_2 [/itex]
Clearly this solution is nowhere close to the one in the back of the book, so I was hoping somebody could point out where I have gone wrong :)
You should always plug in a "solution" to see if it really works. Have you done that?

Surely your textbook must deal with problems similar to this one. Have you checked?
 
  • #4
_N3WTON_ said:

Homework Statement


Solve the given differential equations with missing x.
[itex] y'' + y = 0 [/itex]

Homework Equations


[itex] y = c_1cos(x) + c_2sin(x) [/itex]
This is the answer given in the back of the book. However, I can't sem to get my answer to agree

The Attempt at a Solution


First, I made some substitutions:
[itex] y' = v y'' = v' [/itex]
Using the chain rule I obtained:
[itex] \frac{dv}{dx} = v\frac{dv}{dy} = v' [/itex]
So the equation becomes:
[itex] v\frac{dv}{dy} + y = 0 [/itex]
[itex] vdv = -ydy [/itex]
[itex] \int vdv = -\int ydy [/itex]
[itex] \frac{v^2}{2} = - \frac{y^2}{2} + C_1 [/itex]
This is correct.

[itex] v = +- sqrt(-y + C_1) [/itex]
But this isn't. Multiplying the first equation by 2 gives [itex]v^2= -y^2+ 2C_1[/itex]
I wouldn't complain about your having "[itex]C_1[/itex]" rather than "[itex]2C_2[/itex]" (they are both "undetermined constants") but the difference between "[itex]y[/itex]" and "[itex]y^2[/itex] is very important!

[itex] \frac{dy}{dx} = sqrt(-y + C_1) [/itex]
[itex] \int\frac{dy}{dx} = \int sqrt(-y+C_1),dx [/itex]
[itex] y = \frac{2}{3} (-y+C_1)^{\frac{3}{2}} + C_2 [/itex]
Clearly this solution is nowhere close to the one in the back of the book, so I was hoping somebody could point out where I have gone wrong :)
 
  • #5
Ray Vickson said:
You should always plug in a "solution" to see if it really works. Have you done that?

Surely your textbook must deal with problems similar to this one. Have you checked?
I was quite certain my solution didn't work, I was just unsure of where I was going wrong. Also, unfortunately my textbook does not provide any examples similar to this one, this textbook is pretty lousy and I'm considering buying a new one just so I don't run into problems like this...
 
  • #6
HallsofIvy said:
This is correct. But this isn't. Multiplying the first equation by 2 gives [itex]v^2= -y^2+ 2C_1[/itex]
I wouldn't complain about your having "[itex]C_1[/itex]" rather than "[itex]2C_2[/itex]" (they are both "undetermined constants") but the difference between "[itex]y[/itex]" and "[itex]y^2[/itex] is very important!
thank you
 
  • #7
ok, so after adjusting my answer:
[itex] v = sqrt(-y^2 + C_1) [/itex]
[itex] \int \frac{dy}{dx} = \int sqrt(-y^2 + C_1) dx [/itex]
[itex] y = \frac{1}{3} (-y^2 + C_1)^{\frac{3}{2}} + C_2 [/itex]
I am confused about how to go from the above answer to:
[itex] C_1cos(x) + C_2sin(x) [/itex]
 
  • #8
_N3WTON_ said:
I was quite certain my solution didn't work, I was just unsure of where I was going wrong. Also, unfortunately my textbook does not provide any examples similar to this one, this textbook is pretty lousy and I'm considering buying a new one just so I don't run into problems like this...

OK, but never forget that Google is your friend. Looking at "linear differential equation" will turn up a host of relevant articles.

Anyway, to verify that the book's "solution" is valid involves nothing more than plugging it into see if it works. Of course, figuring out how the book got its solution in the first place is another issue. Basically, though, you just 'learn' that certain types of de's have certain types of solutions--- and that has been part of the math toolkit for more than 150 years.
 
  • #9
Ray Vickson said:
OK, but never forget that Google is your friend. Looking at "linear differential equation" will turn up a host of relevant articles.

Anyway, to verify that the book's "solution" is valid involves nothing more than plugging it into see if it works. Of course, figuring out how the book got its solution in the first place is another issue. Basically, though, you just 'learn' that certain types of de's have certain types of solutions--- and that has been part of the math toolkit for more than 150 years.
thank you, and while we're at it would you happen to know off the top of your head of any good DiffEq textbooks? Not only is my book short on examples but it is also chock full of small errors that can be very confusing at times :(
 
  • #10
@n3wton: Look in your text for "constant coefficient" differential equations. Even a bad text will have that topic. Otherwise Google it.
 
  • #11
LCKurtz said:
@n3wton: Look in your text for "constant coefficient" differential equations. Even a bad text will have that topic. Otherwise Google it.
thank you, i'll search for it
 
  • #12
_N3WTON_ said:
ok, so after adjusting my answer:
[itex] v = sqrt(-y^2 + C_1) [/itex]
[itex] \int \frac{dy}{dx} = \int sqrt(-y^2 + C_1) dx [/itex]
[itex] y = \frac{1}{3} (-y^2 + C_1)^{\frac{3}{2}} + C_2 [/itex]
The last line is wrong. You can not integrate like that.

ehild
 
  • #13
_N3WTON_ said:

Homework Statement


Solve the given differential equations with missing x.
[itex] y'' + y = 0 [/itex]

Homework Equations


[itex] y = c_1cos(x) + c_2sin(x) [/itex]
This is the answer given in the back of the book. However, I can't sem to get my answer to agree

The Attempt at a Solution


First, I made some substitutions:
[itex] y' = v y'' = v' [/itex]
Using the chain rule I obtained:
[itex] \frac{dv}{dx} = v\frac{dv}{dy} = v' [/itex]
So the equation becomes:
[itex] v\frac{dv}{dy} + y = 0 [/itex]
[itex] vdv = -ydy [/itex]
[itex] \int vdv = -\int ydy [/itex]
[itex] \frac{v^2}{2} = - \frac{y^2}{2} + C_1 [/itex]
[itex] v = +- sqrt(-y + C_1) [/itex]
[itex] \frac{dy}{dx} = sqrt(-y + C_1) [/itex]
[itex] \int\frac{dy}{dx} = \int sqrt(-y+C_1),dx [/itex]
[itex] y = \frac{2}{3} (-y+C_1)^{\frac{3}{2}} + C_2 [/itex]
Clearly this solution is nowhere close to the one in the back of the book, so I was hoping somebody could point out where I have gone wrong :)

This seems a roundabout way to solve this DE. Have you studied how to form the characteristic equation for an ODE yet?
 
  • #14
SteamKing said:
This seems a roundabout way to solve this DE. Have you studied how to form the characteristic equation for an ODE yet?
The problem gave specific orders that we were to solve it using this method. However, we have not yet studied what you mentioned...
 
  • #15
ehild said:
The last line is wrong. You can not integrate like that.

ehild
no? I did:
[itex] u = -y^2 + C_1 [/itex]
[itex] du = -2y dy [/itex]
[itex] = \frac{-1}{2} \int -2(-y^{2} + C_1) dy [/itex]
[itex] = \frac{-1}{2} \int u^{\frac{1}{2}} du [/itex]
[itex] = \frac{-1}{2} \frac{2}{3} u^{\frac{3}{2}} [/itex]
[itex] = \frac{-1}{3} (-y^2 + C_1)^{\frac{3}{2}} + C_2 [/itex]
what is wrong with that?
 
  • #16
_N3WTON_ said:
no? I did:
[itex] u = -y^2 + C_1 [/itex]
[itex] du = -2y dy [/itex]
[itex] = \frac{-1}{2} \int -2(-y^{2} + C_1) dy [/itex]
[itex] = \frac{-1}{2} \int u^{\frac{1}{2}} du [/itex]
[itex] = \frac{-1}{2} \frac{2}{3} u^{\frac{3}{2}} [/itex]
[itex] = \frac{-1}{3} (-y^2 + C_1)^{\frac{3}{2}} + C_2 [/itex]
what is wrong with that?
Everything. The left side is a differential, the right side is an integral. You mixed u and y. .. Do not forget, you need to find y(x).

ehild
 
  • #17
ehild said:
Everything. The left side is a differential, the right side is an integral. You mixed u and y. .. Do not forget, you need to find y(x).

ehild
Ok, I'm confused now, I thought since v = dy/dv I could make that substitution and then integrate, would I first need to sub x for y in the equation to be integrated?
 
  • #18
You can integrate a function of x with respect to x and a function of y with respect to y.

You have ##\frac{dy}{dx} =sqrt(-y^2 + C_1) ##

Collect the y terms on one side and the x terms on the other side.

[tex]\frac{dy}{\sqrt{-y^2+C_1}}=dx[/tex]

and integrate: [tex]\int{\frac{dy}{\sqrt{-y^2+C_1}}}=\int{dx}[/tex]

You get something like ##-\arccos( y/\sqrt{C_1})=x+C_2##
Solve for y.

ehild
 
Last edited:
  • #19
ehild said:
You can integrate a function of x with respect to x and a function of y with respect to y.

You have ##\frac{dy}{dx} =sqrt(-y^2 + C_1) ##

Collect the y terms on one side and the x terms on the other side.

[tex]\frac{dy}{\sqrt{-y^2+C_1}}=dx[/tex]

and integrate: [tex]\int{\frac{dy}{\sqrt{-y^2+C_1}}}=\int{dx}[/tex]

You get something like ##-\arccos( y/\sqrt{C_1})=x+C_2##
Solve for y.

ehild
Thank you so much! The book's solution makes soo much more sense now...I'm on my phone now but I'll try to formulate a final solution once I'm off campus :)
 
  • #20
Ok, I am getting something slightly different for my integral, but my trig sub skills are a bit rusty, here is what I did:
[itex] \int \frac{dy}{sqrt(C_1-y^2)} [/itex]
[itex] a = sqrt(C_1) [/itex]
[itex] y = sqrt(C_1)Sinb [/itex]
[itex] sqrt(C_1 - y^2) = sqrt(C_1)cosb [/itex]
[itex] dy = sqrt(C_1)Cosb [/itex]
[itex] = \int \frac{sqrt(C_1)Cosb db}{sqrt(C_1)Cosb} [/itex]
[itex] = \int db [/itex]
[itex] b = arccos(\frac{sqrt(C_1 - y^2)}{sqrt(C_1))} [/itex]
So then I would solve for Y in this equation:
[itex] arccos('') = x + C_2 [/itex] ?
 
Last edited:
  • #21
_N3WTON_ said:
Ok, I am getting something slightly different for my integral, but my trig sub skills are a bit rusty, here is what I did:
[itex] \int \frac{dy}{sqrt(C_1-y^2)} [/itex]
[itex] a = sqrt(C_1) [/itex]
[itex] y = sqrt(C_1)Sinb [/itex]
[itex] sqrt(C_1 - y^2) = sqrt(C_1)cosb [/itex]
[itex] dy = sqrt(C_1)Cosb [/itex]

the following is wrong. You state that
[itex] dy = \int \frac{sqrt(C_1)Cosb db}{sqrt(C_1)Cosb} [/itex]

You seem to forget that you wanted to simplify the integral on the left of
[tex]\int{\frac{dy}{\sqrt{-y^2+C_1}}}=\int{dx}[/tex], which becomes
[tex]\int \frac{sqrt(C_1)Cosb db}{sqrt(C_1)Cosb} = \int db =b[/tex]
that is,
[tex]b=x+C_2[/tex]

_N3WTON_ said:
[itex] b = arccos(\frac{sqrt(C_1 - y^2)}{sqrt(C_1))} [/itex]

No, that is wrong. b was defined with [tex] y =\sqrt{C_1}\sin(b)[/tex]
So [tex]b=\arcsin(\frac{y}{\sqrt{C_1}})[/tex]You have to solve the equation
[tex]\arcsin(\frac{y}{\sqrt{C_1}})=x+C_2[/tex]
for y.
 
  • #22
ehild said:
the following is wrong. You state that
[itex] dy = \int \frac{sqrt(C_1)Cosb db}{sqrt(C_1)Cosb} [/itex]

You seem to forget that you wanted to simplify the integral on the left of
[tex]\int{\frac{dy}{\sqrt{-y^2+C_1}}}=\int{dx}[/tex], which becomes
[tex]\int \frac{sqrt(C_1)Cosb db}{sqrt(C_1)Cosb} = \int db =b[/tex]
that is,
[tex]b=x+C_2[/tex]
No, that is wrong. b was defined with [tex] y =\sqrt{C_1}\sin(b)[/tex]
So [tex]b=\arcsin(\frac{y}{\sqrt{C_1}})[/tex]You have to solve the equation
[tex]\arcsin(\frac{y}{\sqrt{C_1}})=x+C_2[/tex]
for y.
Ok, I see where I went wrong, thanks again, as usual your insights have been extremely helpful :)
 

1. What is a second-order ODE with missing x?

A second-order ODE with missing x is a type of differential equation that includes a second derivative of a function, but the independent variable x is not explicitly present. This means that the function's value and its first derivative are known, but the value of the independent variable is not.

2. How do you solve a second-order ODE with missing x?

To solve a second-order ODE with missing x, you can use the method of undetermined coefficients. This involves assuming a particular form for the missing x term and then solving for the remaining coefficients using the known values of the function and its first derivative.

3. Can a second-order ODE with missing x have multiple solutions?

Yes, a second-order ODE with missing x can have multiple solutions. This is because the missing x term can have different forms, and each form can lead to a different solution. It is important to carefully consider the initial conditions to determine the appropriate form of the missing x term.

4. Are there any real-world applications of second-order ODEs with missing x?

Yes, there are many real-world applications of second-order ODEs with missing x. Some examples include population growth models, pendulum motion, and electrical circuits. These equations are used to model and predict various phenomena in science, engineering, and economics.

5. How can I check if my solution to a second-order ODE with missing x is correct?

You can check if your solution to a second-order ODE with missing x is correct by substituting it back into the original equation and verifying that it satisfies the equation. You should also check that your solution satisfies any given initial conditions. Additionally, you can use a computer program or graphing calculator to plot your solution and compare it to the known values.

Similar threads

  • Calculus and Beyond Homework Help
Replies
19
Views
771
  • Calculus and Beyond Homework Help
Replies
6
Views
755
  • Calculus and Beyond Homework Help
Replies
21
Views
834
  • Calculus and Beyond Homework Help
Replies
20
Views
452
  • Calculus and Beyond Homework Help
Replies
1
Views
823
  • Calculus and Beyond Homework Help
Replies
12
Views
1K
  • Calculus and Beyond Homework Help
Replies
4
Views
684
  • Calculus and Beyond Homework Help
Replies
8
Views
796
  • Calculus and Beyond Homework Help
Replies
2
Views
460
  • Calculus and Beyond Homework Help
Replies
13
Views
265
Back
Top