Third order linear ODE Wolfram Math. problem

  • Thread starter Thread starter dperkovic
  • Start date Start date
  • Tags Tags
    Linear Ode
AI Thread Summary
The discussion centers on solving the homogeneous ordinary differential equation (ODE) d^3x/dt^3 + 2dx/dt = 0 using the substitution x = e^(λt). The characteristic polynomial derived is λ^3 + 2λ = 0, yielding one real root (λ1 = 0) and a pair of complex roots (λ2, λ3 = ±√2i). The general solution is expressed as x(t) = C1 + C2cos(√2t) + C3sin(√2t). A discrepancy arises when comparing this solution to the output from Wolfram Mathematica, which includes different constants, attributed to Mathematica's method of finding general solutions that may involve more complex forms. Ultimately, the differences in constants do not affect the validity of the solutions, as integration constants are arbitrary.
dperkovic
Messages
17
Reaction score
0
I have a problem with this homogenous ODE:
<br /> \frac{d^3x}{dt^3} + 2\frac{dx}{dt} = 0$<br />

With substitution x=e^\lambda t, I got characteristic polinom: \lambda^3+2\lambda=0.
So,
\lambda_1 = 0, \lambda_{1,2} = \pm\sqrt{2}i

Because we have one real,and one pair of complex roots of characteristic polinom, general solution of ODE is:

x(t) =C1e^{0\cdot t} + C2\cos(\sqrt{2}t) +C3\sin(\sqrt{2}t),
or:
x(t) =C1 + C2\cos(\sqrt{2}t) +C3\sin(\sqrt{2}t)

But, Wolfram Mathematica's command DSolve[x'''[t] + 2*x'[t] == 0, x[t], t],give to me this:

x(t) =C1 - \frac{C2\cos(\sqrt{2}t)}{\sqrt{2}} +\frac{C3\sin(\sqrt{2}t)}{\sqrt{2}}.

As we can see, there is difference between my and wolfram's solution. Why ?? Where is a mistake in my procedure ?
 
Last edited:
Physics news on Phys.org
There is no difference in the solutions, remember the constants of integration are arbitrary.
 
Thank's. I thought that. But still, I can't figure out why constants in Mathematica's solution is different than constants i my solution. From which algorithm comming this "complicated" constants ?
 
The Mathematica DSolve usually looks for general solutions that match your particular equation and then it uses the form of the general solution to solve your specific problem. Often the general solution has such "complicated" constants.
 
In this case the general form is probably something like:
a x&#039;&#039;&#039;(t)+b x&#039;(t)=0

Which has the general solution:
\frac{\text{C1} \sqrt{a} \sin \left(\frac{\sqrt{b}<br /> t}{\sqrt{a}}\right)}{\sqrt{b}}-\frac{\text{C2} \sqrt{a} \cos<br /> \left(\frac{\sqrt{b} t}{\sqrt{a}}\right)}{\sqrt{b}}+\text{C3}

Which turns into exactly the expression you have above for a=1 and b=2
 
This is the explanation which I looking for :smile: :smile: :smile:. Thank you !
 
Thread 'Gauss' law seems to imply instantaneous electric field'
Imagine a charged sphere at the origin connected through an open switch to a vertical grounded wire. We wish to find an expression for the horizontal component of the electric field at a distance ##\mathbf{r}## from the sphere as it discharges. By using the Lorenz gauge condition: $$\nabla \cdot \mathbf{A} + \frac{1}{c^2}\frac{\partial \phi}{\partial t}=0\tag{1}$$ we find the following retarded solutions to the Maxwell equations If we assume that...
I passed a motorcycle on the highway going the opposite direction. I know I was doing 125/km/h. I estimated that the frequency of his motor dropped by an entire octave, so that's a doubling of the wavelength. My intuition is telling me that's extremely unlikely. I can't actually calculate how fast he was going with just that information, can I? It seems to me, I have to know the absolute frequency of one of those tones, either shifted up or down or unshifted, yes? I tried to mimic the...
Back
Top