Construct a second order ODE given the solutions?

In summary, the conversation discusses the construction of a linear differential equation of order 2 with a given set of fundamental solutions on a given interval. Various attempts and methods are discussed, including the use of the Wronskian and checking for a fundamental set. It is eventually determined that the equation must have variable coefficients and is not a constant coefficient equation. The general solution is found to be y(x) = (A + Bx)sin(x), but it is unclear how this is helpful in finding the desired equation.
  • #1
wadawalnut
14
0

Homework Statement


I've been stuck on this problem for three days now, and I have no clue how to solve it.

Construct a linear differential equation of order 2, for which {[itex] y_1(x) = sin(x), y_2(x) = xsin(x)[/itex]} is a set of fundamental solutions on [itex] I = (0,\pi) [/itex].

Homework Equations


Wronskian for second order equations:
[itex] W(y_1,y_2) = y_1 y_2' - y_2 y_1' [/itex]

[itex] \dfrac{dW}{dx} + PW = 0 [/itex]

The Attempt at a Solution


I checked with the Wronskian that this can be a fundamental set, since the Wronskian returns [itex]sin^2(x)[/itex] which is never 0 on the interval. Now I'm stuck trying to construct the equation. I tried basic stuff like [itex] y'' + y = 0 [/itex] but all attempts were unsuccessful. I then tried using the identity [itex] \dfrac{dW}{dx} + P(x)W = 0 [/itex], which yielded [itex]P(x) = -cot(x)[/itex]. So I attempted [itex] y'' - cot(x)y' = 0 [/itex] which also doesn't work. Is there a method for doing this or do I have to keep guessing?
 
Physics news on Phys.org
  • #2
wadawalnut said:

Homework Statement


I've been stuck on this problem for three days now, and I have no clue how to solve it.

Construct a linear differential equation of order 2, for which {[itex] y_1(x) = sin(x), y_2(x) = xsin(x)[/itex]} is a set of fundamental solutions on [itex] I = (0,\pi) [/itex].

Homework Equations


Wronskian for second order equations:
[itex] W(y_1,y_2) = y_1 y_2' - y_2 y_1' [/itex]

[itex] \dfrac{dW}{dx} + PW = 0 [/itex]

The Attempt at a Solution


I checked with the Wronskian that this can be a fundamental set, since the Wronskian returns [itex]sin^2(x)[/itex] which is never 0 on the interval. Now I'm stuck trying to construct the equation. I tried basic stuff like [itex] y'' + y = 0 [/itex] but all attempts were unsuccessful. I then tried using the identity [itex] \dfrac{dW}{dx} + P(x)W = 0 [/itex], which yielded [itex]P(x) = -cot(x)[/itex]. So I attempted [itex] y'' - cot(x)y' = 0 [/itex] which also doesn't work. Is there a method for doing this or do I have to keep guessing?
If the set of fundamental solutions happened to be ##\{e^x, xe^x\}##, I would be looking for a differential equation something like y'' - 2y' + y = 0, or ##[D^2 - 2D + 1]y = 0##. Here the characteristic equation as a repeated root.

For your DE, I think this is a hint in the right direction. Also, because the DE is specifed to be of order 2, I'm pretty sure you should be looking at a nonhomogeneous DE.
 
  • #3
Mark44 said:
If the set of fundamental solutions happened to be ##\{e^x, xe^x\}##, I would be looking for a differential equation something like y'' - 2y' + y = 0, or ##[D^2 - 2D + 1]y = 0##. Here the characteristic equation as a repeated root.

For your DE, I think this is a hint in the right direction. Also, because the DE is specifed to be of order 2, I'm pretty sure you should be looking at a nonhomogeneous DE.

Thanks for the response. I believe [itex] y'' + y = 2cos(x) [/itex] has the solution y = sin(x) + xsin(x) but would {sin(x),xsin(x)} be a fundamental set of solutions in that case?
 
  • #4
wadawalnut said:
Thanks for the response. I believe [itex] y'' + y = 2cos(x) [/itex] has the solution y = sin(x) + xsin(x) but would {sin(x),xsin(x)} be a fundamental set of solutions in that case?
I think this is where the problem intends you to go, but I'm not certain of it. A fundamental set for the DE you found would also include cos(x) and xcos(x). With suitable initial conditions the coefficients of cos(x) and xcos(x) would turn out to be zero. I'm not sure of the significance of the interval I that you're given.
 
  • #5
The problem here is that if the ODE has constant real coefficients and [itex]\sin x[/itex] is a solution, then [itex]\cos x[/itex] also has to be a solution (because roots of the auxiliary equation are either real or a complex conjugate pair). For a second-order constant-coefficient real ODE you will not get [itex]x \sin x [/itex] as a solution since that implies a repeated pair of complex conjugate roots, which requires the ODE to be fourth order.

I don't think you're looking for a constant coefficient equation here.

The general solution you are looking for is [itex]y(x) = (A + Bx)\sin x[/itex]. The second derivative of [itex]A + Bx[/itex] is zero, and [itex]\sin x \neq 0[/itex] on [itex](0,\pi)[/itex]. Does that suggest anything?
 
Last edited:
  • #6
pasmith said:
The problem here is that if the ODE has constant real coefficients and [itex]\sin x[/itex] is a solution, then [itex]\cos x[/itex] also has to be a solution (because roots of the auxiliary equation are either real or a complex conjugate pair). For a second-order constant-coefficient real ODE you will not get [itex]x \sin x [/itex] as a solution since that implies a repeated pair of complex conjugate roots, which requires the ODE to be fourth order.

I don't think you're looking for a constant coefficient equation here.

The general solution you are looking for is [itex]y(x) = (A + Bx)\sin x[/itex]. The second derivative of [itex]A + Bx[/itex] is zero, and [itex]\sin x \neq 0[/itex] on [itex](0,\pi)[/itex]. Does that suggest anything?

Thank you very much for the reply. I was actually just coming to the conclusion that there would have to be variable coefficients. However I'm still stuck knowing that [itex] y(x) = (A + Bx)sin(x) [/itex]. I don't understand how it is particularly helpful to know that the second derivative of [itex] A + Bx [/itex] is 0 because it is part of a product rule, so it doesn't really vanish. Would it have to be some sort of Cauchy-Euler Equation, like of the form [itex] x^2y'' + axy' + by = 0 [/itex], which reduces to something with complex roots?
 
  • #7
wadawalnut said:
Thanks for the response. I believe [itex] y'' + y = 2cos(x) [/itex] has the solution y = sin(x) + xsin(x) but would {sin(x),xsin(x)} be a fundamental set of solutions in that case?

No. ##\sin x## isn't a solution of that DE. In fact, you can't even talk about a fundamental set of solutions for a nonhomogeneous linear DE. The sum of two solutions can never be a solution in that case. If ##L(y_1)= f## and ##L(y_2) = f## then ##L(y_1+y_2) = L(y_1) + L(y_2) = f + f = 2f##.
 
  • #8
wadawalnut said:
Thank you very much for the reply. I was actually just coming to the conclusion that there would have to be variable coefficients. However I'm still stuck knowing that [itex] y(x) = (A + Bx)sin(x) [/itex]. I don't understand how it is particularly helpful to know that the second derivative of [itex] A + Bx [/itex] is 0 because it is part of a product rule, so it doesn't really vanish. Would it have to be some sort of Cauchy-Euler Equation, like of the form [itex] x^2y'' + axy' + by = 0 [/itex], which reduces to something with complex roots?

Due to the restriction on the domain, [itex]\sin x[/itex] is not zero so you can divide both sides of the required general solution [itex]y(x) = (A + Bx)\sin x[/itex] by [itex]\sin x[/itex].
 
  • #9
pasmith said:
Due to the restriction on the domain, [itex]\sin x[/itex] is not zero so you can divide both sides of the required general solution [itex]y(x) = (A + Bx)\sin x[/itex] by [itex]\sin x[/itex].

How does dividing by [itex]\sin(x)[/itex] help? That would leave me with [itex]\dfrac{y(x)}{\sin(x)} = A + Bx [/itex]. How does this help me solve the equation? Thanks for the responses.
 
  • #10
I also do not understand what pasmith is getting at with his hint. I think the question is poorly worded and there may be some confusion between the notion of "fundamental set" and "general solution". It is certainly true that the DE ##y'' + y = 2\cos x## has a solution ##y=\sin x + x\sin x##. But it also has a general solution ##y=A\sin x + B\cos x + x\sin x##. You could say ##\{\sin x,\cos x\}## is a fundamental set for the homogeneous equation and that ##y=A\sin x + B\cos x + x\sin x## is the general solution of the nonhomogeneous equation. Neither seems to be what the problem is asking.

After all is said and done, I would like for you to report back to this thread what your teacher explains about this problem.
 
  • #11
Once you have [tex]
\frac{y(x)}{\sin x} = Ax + B[/tex] you can simply differentiate twice and you will have a second-order linear ODE whose general solution is [itex]Ax\sin x + B \sin x[/itex]!

That this is what the question-setter intended is strongly suggested by the explicit restriction of the domain to [itex](0,\pi)[/itex], on which [itex]\sin x > 0[/itex].
 
  • #12
Nice. And since the result is a homogeneous DE it does make sense to call ##\{\sin x,x\sin x\}## a fundamental set.
 

Related to Construct a second order ODE given the solutions?

1. What is a second order ODE?

A second order ODE (ordinary differential equation) is a mathematical equation that involves a function and its first and second derivatives. The equation is in the form of f(x,y,y'), where y is the function, y' is the first derivative of y, and y'' is the second derivative of y. It describes the relationship between the function and its derivatives.

2. What does it mean to construct a second order ODE given the solutions?

Constructing a second order ODE given the solutions means to find an equation that satisfies the given solutions. This involves using the solutions to determine the coefficients and constants in the equation. The goal is to find an equation that can be used to solve for any other values of the function.

3. How do you construct a second order ODE given the solutions?

The process of constructing a second order ODE given the solutions involves several steps. First, you need to determine the values of the coefficients and constants in the equation by plugging in the given solutions. Then, you can use these values to construct the equation in the form of f(x,y,y'). Finally, you can verify that the equation satisfies the given solutions by plugging in the solutions and checking that it equals 0.

4. What are some common techniques for constructing a second order ODE?

There are several techniques that can be used to construct a second order ODE given the solutions. These include the method of undetermined coefficients, variation of parameters, and the method of reduction of order. Each of these techniques involves different steps and approaches for finding the equation that satisfies the solutions.

5. What are some applications of solving second order ODEs?

Second order ODEs are used in many areas of science and engineering to model real-world phenomena. They are particularly useful in physics, where they can be used to describe the motion of objects under various forces. They are also used in fields such as electrical engineering, economics, and biology to model various systems and processes. Solving second order ODEs allows us to understand and predict the behavior of these systems.

Similar threads

  • Calculus and Beyond Homework Help
Replies
2
Views
300
  • Calculus and Beyond Homework Help
Replies
5
Views
313
  • Calculus and Beyond Homework Help
Replies
1
Views
316
Replies
4
Views
523
  • Calculus and Beyond Homework Help
Replies
14
Views
415
  • Calculus and Beyond Homework Help
Replies
17
Views
2K
  • Calculus and Beyond Homework Help
Replies
1
Views
125
  • Calculus and Beyond Homework Help
Replies
21
Views
858
  • Calculus and Beyond Homework Help
Replies
8
Views
773
  • Calculus and Beyond Homework Help
Replies
7
Views
2K
Back
Top