Second order ODE: finding solution.

In summary, the conversation is about finding solutions to the differential equation d2u/d2x + 1/2Lu = 0 where L is a function of x. The attempt at a solution involved using a trigonometric function and multiplying it by (1/2 L) to satisfy the equation. However, this solution is only correct if L is a constant. If L is a function of x, the derivatives must be calculated using the chain and product rule, and there may not be a known formula for the solution in this case.
  • #1
knockout_artist
70
2

Homework Statement



d2u/d2x + 1/2Lu = 0 where L is function of x

Homework Equations



I am try to find solutions y1 and y2 of this equation.

The Attempt at a Solution



y = [cos √(L/2) x] + [sin √(L/2) x]
y' = - [√(L/2) sin √(L/2) x] + [ √(L/2) cos √(L/2) x]
y'' = -[(L/2) cos √(L/2) x] - [(L/2) sin √(L/2) x ]so now we have
y = [cos √(L/2) x] + [sin √(L/2) x]
and if we multiply it with (1/2 L ) we get negative y'' which will satisfy original equation.

so solutions are
y1 = cos √(L/2) x
y2 = sin √(L/2) x

is that correct ?
 
Physics news on Phys.org
  • #2
knockout_artist said:
is that correct ?

No, not if L is a function of x. When you took the derivatives of your function y, you treated L as a constant, not as a function of x. If L is a function of x, there will be additional terms in the derivatives due to the chain rule. The solution will depend on the functional form of the function L(x).
 
  • #3
knockout_artist said:

Homework Statement



d2u/d2x + 1/2Lu = 0 where L is function of x

Homework Equations



I am try to find solutions y1 and y2 of this equation.

The Attempt at a Solution



y = [cos √(L/2) x] + [sin √(L/2) x]
y' = - [√(L/2) sin √(L/2) x] + [ √(L/2) cos √(L/2) x]
y'' = -[(L/2) cos √(L/2) x] - [(L/2) sin √(L/2) x ]so now we have
y = [cos √(L/2) x] + [sin √(L/2) x]
and if we multiply it with (1/2 L ) we get negative y'' which will satisfy original equation.

so solutions are
y1 = cos √(L/2) x
y2 = sin √(L/2) x

is that correct ?
Correct if ##L > 0## is constant, but wrong if ##L## is a function of ##x##, as you stated in the original question. For a general ##L = L(x) > 0## there may be no known formula for the solution, in which case you would need to solve the DE numerically.
 
  • #4
Your solutions are correct only if L is a constant. IF L is not a constant then you have to apply the chain and product rule in order to calculate correctly the derivatives.
For example for the first derivative it would be ##y'(x)=-(\frac{L'(x)x}{2\sqrt{2L(x)}}+\sqrt{\frac{L(x)}{2}})sin(\sqrt{\frac{L(x)}{2}}x)+(\frac{L'(x)x}{2\sqrt{2L(x)}}+\sqrt{\frac{L(x)}{2}})cos(\sqrt{\frac{L(x)}{2}}x)##.
 
Last edited:

1. What is a second order ODE?

A second order ODE (ordinary differential equation) is a type of mathematical equation that describes the relationship between a function and its derivatives. It involves a function, its first derivative, and its second derivative.

2. How do you solve a second order ODE?

There are several methods for solving a second order ODE, including the method of undetermined coefficients, variation of parameters, and Laplace transforms. The specific method used depends on the type of ODE and the initial conditions given.

3. What is the difference between a homogeneous and non-homogeneous second order ODE?

A homogeneous second order ODE has all terms containing the function and its derivatives, while a non-homogeneous ODE has additional terms not containing the function or its derivatives. The solution methods for these types of equations differ, with the non-homogeneous case requiring the use of particular solutions.

4. Can a second order ODE have multiple solutions?

Yes, a second order ODE can have multiple solutions. This is because there are different initial conditions that can be used to solve the equation, resulting in different solutions. Additionally, some ODEs may have a general solution with multiple variables, allowing for an infinite number of specific solutions.

5. How are second order ODEs used in science?

Second order ODEs are used in many areas of science, including physics, engineering, and biology. They are used to model and predict the behavior of physical systems, such as the motion of objects or the growth of populations. They are also used to analyze and solve real-world problems in various fields.

Similar threads

Replies
4
Views
510
  • Calculus and Beyond Homework Help
Replies
5
Views
540
  • Calculus and Beyond Homework Help
Replies
1
Views
710
  • Calculus and Beyond Homework Help
Replies
1
Views
110
  • Calculus and Beyond Homework Help
Replies
2
Views
920
  • Calculus and Beyond Homework Help
Replies
21
Views
851
  • Calculus and Beyond Homework Help
Replies
7
Views
508
  • Calculus and Beyond Homework Help
Replies
5
Views
537
  • Calculus and Beyond Homework Help
Replies
6
Views
2K
  • Calculus and Beyond Homework Help
Replies
14
Views
402
Back
Top