Math Help Forum

Math Help Forum Feed Site Feed

Go Back   Math Help Forum > University Math Help > Differential Equations
Reply
 
Thread Tools Display Modes
  #1  
Old October 9th, 2009, 12:49 PM
Newbie
 
Join Date: Oct 2009
Posts: 17
Country:
Thanks: 6
Thanked 3 Times in 3 Posts
jfortiv is on a distinguished road
Default [SOLVED] Complex Stiffness Solution

Hi,

I'm trying to solve a differential equation of a 1 degree of freedom mechanical system with a complex stiffness:

m*d^2u/dt^2 + k*u = A*e^(i*w*t), where k is complex (k = a + i*b), i = sqrt(-1)

First, I assume a solution for u of the form u = u_mag*e^(r*t), thus d^2u/dt^2 = r^2*u_mag*e^(r*t), and I use this to solve the homogeneous equation, getting the characteristic equation for r:

m*r^2 + k = 0

Solving for r yields:

r = +/- sqrt(-k/m) = +/- sqrt( - ( a+ i*b) / m) = +/- i * sqrt(a/m + i*b/m)

So u = u_mag * e^( i * sqrt(a/m + i*b/m))

or

u = u_mag * e^(- i * sqrt(a/m + i*b/m))


At this point I am stuck. I want to use Euler's formula to rewrite u in terms of sin and cos, but I can't isolate the real and imaginary terms in the exponent, such as in the following form to which I am accustomed:

e^(s + i*t) = e^(s) * e^(i*t)

Can someone offer some insight or point out the error of my methodology?

Thanks.
Reply With Quote
Advertisement
 
  #2  
Old October 9th, 2009, 04:06 PM
Super Member
 
Join Date: Aug 2008
Posts: 601
Country:
Thanks: 46
Thanked 262 Times in 227 Posts
shawsend is a jewel in the roughshawsend is a jewel in the roughshawsend is a jewel in the roughshawsend is a jewel in the rough
Default

If I write it as:

(D^2+\frac{k}{m})u=\frac{a}{m} e^{i\omega t}

and apply the operator (D^2+w^2) to both sides to annihilate the right side, and work through it, I get:

u(t)=c_1 e^{i\sqrt{\frac{k}{m}} t}+c_2 e^{-i\sqrt{\frac{k}{m}}t}+\frac{a}{k-m\omega^2} e^{i\omega t}.

In general if k\in\mathbb{C} then:

\displaystyle{
e^{i\sqrt{\frac{k}{m}}t}=\text{Exp}\left[\pm it(r^{1/2}e^{i/2\Theta})\right],\quad \Theta=Arg(k/m) },\quad r=|k/m|

however, the solution above already contains both roots of the square root so that in the solution, \sqrt{\frac{k}{m}}=r^{1/2}e^{\frac{i}{2}\theta}, the principal value.

Also, if you're into Mathematica, here's the code to study a particular IVP numerically:

u''+(1-\frac{i}{2})u=-\frac{1}{2}e^{it},\quad u(0)=1+i,\quad u'(0)=2-i

Code:
eqn = Derivative[2][u][t] + (k/m)*u[t] == 
    (a/m)*Exp[I*w*t] //. {k -> 2 - I, 
    m -> 2, w -> 1, a -> -1}
sol = NDSolve[{eqn, u[0] == 1 + I, 
    Derivative[1][u][0] == 2 - I}, u, 
   {t, 0, 5}]
p1 = Plot[{Re[Evaluate[u[t] /. sol]], 
    Im[Evaluate[u[t] /. sol]]}, 
   {t, 0, 5}, PlotStyle -> {Red, Blue}]
And then the code to solve for the two constants and plot the analytic solution:

Code:
clist = First[{c1, c2} /. FullSimplify[
     Solve[{c1 + c2 + a/(k - m*w^2) == u, 
        c1*I*Sqrt[k/m] - c2*I*Sqrt[k/m] + 
          (I*w*a)/(k - m*w^2) == v}, 
       {c1, c2}] //. {k -> 2 - I, m -> 2, 
       w -> 1, a -> -1, u -> 1 + I, 
       v -> 2 - I}]]
solution = k1*Exp[I*Sqrt[k/m]*t] + 
    k2*Exp[(-I)*Sqrt[k/m]*t] + 
    (a/(k - m*w^2))*Exp[I*w*t] /. 
   {k -> 2 - I, m -> 2, w -> 1, a -> -1, 
    k1 -> clist[[1]], k2 -> clist[[2]]}
p2 = Plot[{Re[solution], Im[solution]}, 
   {t, 0, 5}, PlotRange -> 
    {{0, 5}, {-3, 3}}, PlotStyle -> 
    {Red, Blue}]
Show[{p1, p2}]
and then plots of the real component of the solution in red and complex component in blue (pretty neat I think-- I never worked one like this before ):
Attached Thumbnails
solved-complex-stiffness-solution-complex-de.jpg  
__________________
"I am beset by the ironies in my life"

Last edited by shawsend; October 9th, 2009 at 06:28 PM.
Reply With Quote
The Following 2 Users Say Thank You to shawsend For This Useful Post:
Donate to MHF
  #3  
Old November 5th, 2009, 07:16 AM
Newbie
 
Join Date: Oct 2009
Posts: 17
Country:
Thanks: 6
Thanked 3 Times in 3 Posts
jfortiv is on a distinguished road
Default

Thanks for helping with this. I worked through your math. I never would have thought to apply an operator like that to both sides.

As it turns out, it doesn't make sense to use an imaginary stiffness in a time-domain solution. It's only applicable to frequency-domain. It was an interesting mathematical exercise anyway.

Thanks!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -7. The time now is 03:26 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
©2005 - 2009 Math Help Forum


Math Help Forum is a community of maths forums with an emphasis on maths help in all levels of mathematics.
Register to post your math questions or just hang out and try some of our math games or visit the arcade.