Solving ODEs with Complex Numbers: A Comprehensive Guide

AI Thread Summary
The discussion focuses on solving ordinary differential equations (ODEs) using complex numbers, specifically through the substitution of z = ue^{2xi}. This method allows for the simplification of the original ODE by transforming it into a form that can be solved more easily, ultimately leading to a particular solution that incorporates both sine and cosine components. The general solution combines the complementary solution with the particular solution derived from the complex approach. Participants express curiosity about the rationale behind using complex variables and how to determine when to extract real or imaginary parts from the solution. Understanding this technique is deemed beneficial for tackling ODEs, especially those of second order or higher.
Benny
Messages
577
Reaction score
0
Hi, I've been working on some ODEs and I've been using all of the standard techniques. Recently, I came across some solutions to some IVP problems(I don't have the questions, only the solutions). I'm curious as to the motivation behind the follow technique. As in, why would this method be used and what is its name?

To find the particular solution, solve instead z'' + 2z' + z = e^{2xi} and afterwards take the real part of z.

Let z = ue^{2xi} to get z' = u'e^{2xi} + 2ie^{2xi} u and z'' = u''e^{2xi} + 4ie^{2xi} u' - 4e^{2xi} u.

Substituting into the DE gives:

<br /> u&#039;&#039;e^{2xi} + 4ie^{2xi} u&#039; - 4e^{2xi} u + 2u&#039;e^{2xi} + 4ie^{2xi} u + ue^{2xi} = e^{2xi} <br />

<br /> u&#039;&#039; + \left( {4i + 2} \right)u&#039; + \left( { - 3 + 4i} \right)u = 1<br />

This is satisified by u = \frac{1}{{ - 3 + 4i}} = \frac{1}{{25}}\left( { - 3 - 4i} \right).

Hence z = \frac{1}{{25}}\left( { - 3 - 4i} \right)e^{2xi} = \frac{1}{{25}}\left( { - 3 - 4i} \right)\left( {\cos 2x + i\sin 2x} \right).

<br /> {\mathop{\rm Re}\nolimits} al\left( z \right) = \frac{1}{{25}}\left( { - 3\cos 2x + 4\sin 2x} \right)<br />

Hence A = -(3/25) and B = 4/25.

Particular solution is y_p = - \frac{3}{{25}}\cos 2x + \frac{4}{{25}}\sin 2x.

So general solution is y = c_1 e^{ - x} + c_2 xe^{ - x} - \frac{3}{{25}}\cos 2x + \frac{4}{{25}}\sin 2x.


I know that its hard to explain without having the original question but I would really like some help with this one. Looking at the general solution the characteristic equation is \left( {\lambda + 1} \right)^2 = 0 so the LHS the original DE is probably y&#039;&#039; + 2y&#039; + 1. The RHS is non-zero and looking at the general solution would suggest that it is of the form A\cos \left( {2x} \right) + B\sin \left( {2x} \right) where either A or B, but not both, could be zero.

So the original ODE(again I apologise for not having the actual question with me) is porbably something like:

<br /> y&#039;&#039; + 2y&#039; + 1 = A\cos \left( {2x} \right) + B\sin \left( {2x} \right)<br />

The beginning of the solution replaces y by z and sets z = uexp(2xi) so z = u(cos(2x)+isin(2x)) but what is the point in doing that? The form of the solution suggests that perhaps even undetermined coefficients would work(although its hard to say w/o the actual question) It seems that the question is the kind where you make the substitution y = a(x)b(x), where b(x) is a part of the complimentary solution. In any case if we were to solve the ODE(or any ODE where this technique of using z complex is applicable) in z instead, how do we know whether to take the real part, imaginary part or both?

I'd really like to know how to do use this technique(considering an equation in z and then taking the real or imaginary component) as it seems quite useful. So any explanations as to why one would consider an equation in z instead of y to solve an ODE of this kind would be great thanks.
 
Last edited:
Physics news on Phys.org
kind of seems similar to reduction of order, is this the section of higher order differential equations you were referring to (meaning higher then 2nd order)?
 
The section I referred to means 2nd or higher order.
 
Thread 'Variable mass system : water sprayed into a moving container'
Starting with the mass considerations #m(t)# is mass of water #M_{c}# mass of container and #M(t)# mass of total system $$M(t) = M_{C} + m(t)$$ $$\Rightarrow \frac{dM(t)}{dt} = \frac{dm(t)}{dt}$$ $$P_i = Mv + u \, dm$$ $$P_f = (M + dm)(v + dv)$$ $$\Delta P = M \, dv + (v - u) \, dm$$ $$F = \frac{dP}{dt} = M \frac{dv}{dt} + (v - u) \frac{dm}{dt}$$ $$F = u \frac{dm}{dt} = \rho A u^2$$ from conservation of momentum , the cannon recoils with the same force which it applies. $$\quad \frac{dm}{dt}...
I was thinking using 2 purple mattress samples, and taping them together, I do want other ideas though, the main guidelines are; Must have a volume LESS than 1600 cubic centimeters, and CAN'T exceed 25 cm in ANY direction. Must be LESS than 1 kg. NO parachutes. NO glue or Tape can touch the egg. MUST be able to take egg out in less than 1 minute. Grade A large eggs will be used.
Back
Top