Why can the i be dropped when defining the new constant B?

  • I
  • Thread starter Trying2Learn
  • Start date
In summary: B.Good MorningIn summary, the author solved a second order, linear differential equation with complex exponentials and defined new constants prior to using the initial conditions. However, he always gets a funny feeling at this step and would like someone to explain why he can justify dropping the "i" from consideration of the new definition B.
  • #1
Trying2Learn
373
57
TL;DR Summary
When solving a differential equation
Good Morning

I have a second order, linear differential equation. I solve it with complex exponentials. When I am done, I contract terms producing this:

q = exp(some term regarding damping) * ( C+D) cos(wt) + i (C-D) sin(wt) )

Then I define new constants (prior to using the initial conditions)

A = C+D
B = i(C-D) // I forgot the "i" here when I first posted this, but the rest of my post still has the question that I am asking. My dropping of the "i" here was a grave mistake in stating my own question... I am sorry.

And I have

q = exp(some term) * Acos(wt) +Bsin(wt) )

OK; what happened to the "i?"

Now, I know I can leave the original constants and work those through.
I also have a "feeling" that the new numbers COULD involve anything, even imaginary terms.
And I work it out. So all I did was assign B and ignored the "i"

But I always get a funny feeling at this step, and would like (hope) for someone to explain: "why can I justify, at that moment, why I can drop the "i" from consideration of the new definition B. No book I have read, ever addresses this point, and it may, indeed, be silly/Obvious, but I would really appreciate some thoughts by others.

I mean, I get taht I can say "iB is just a constant." But to my stubborn mind, it is a constant from the imaginary world.
 
Last edited:
  • Like
Likes Delta2
Physics news on Phys.org
  • #2
Trying2Learn said:
OK; what happened to the "i?"
If you first have i(C-D) and then write B as the coefficient in front of the sine, you have simply left it out :smile: ??!
(swept it under the rug, forgot it, whatever).

Please write out and post the differential equation and the steps you take in detail.
 
  • #3
BvU said:
If you first have i(C-D) and then write B as the coefficient in front of the sine, you have simply left it out :smile: ??!
(swept it under the rug, forgot it, whatever).

Please write out and post the differential equation and the steps you take in detail.
No

Every book does this. They drop the i, and now I am fairly sure they fail to explain this process. Just look at any book.

Mine is just a second order, linear, diff.eq for spring, mass and damping and no forcing function. Every book gets to this point and absorbs the i.
 
  • #4
Then I would guess they are assuming A and B are complex numbers. Otherwise it doesn't make sense. You are correct, the "i" can't just vanish.

Anyway, it's in the definition you provided:
C+D) cos(wt) + i (C-D) sin(wt) = Acos(wt) +Bsin(wt)
 
  • Like
Likes scottdave
  • #5
DaveE said:
Then I would guess they are assuming A and B are complex numbers. Otherwise it doesn't make sense. You are correct, the "i" can't just vanish.

Anyway, it's in the definition you provided:
C+D) cos(wt) + i (C-D) sin(wt) = Acos(wt) +Bsin(wt)
Well, that is interesting... that they assume that A and B could be potentially complex. You could be correct, but I am still uneasy.

Yet, even there, I have never seen it stated in any book.
 
  • #6
The other possibility is that they are assuming that you only care about the real part of the equation, and they are saying it's a generic sinusoid. In that case B ≠ i(C-D). So, because they've shown the answer is a sinusoid they switch to an alternate expression for it. i.e. Re( (C+D)cos(wt) + i(C-D)sin(wt) ) = Acos(wt) + Bsin(wt).
Personally, I find this sloppy and distasteful. If they are going to do that they need to say it explicitly (like I did).

Of course then C & D must be complex and A & B real, or else it's just stupid.
 
  • #7
DaveE said:
The other possibility is that they are assuming that you only care about the real part of the equation, and they are saying it's a generic sinusoid. In that case B ≠ i(C-D). So, because they've shown the answer is a sinusoid they switch to an alternate expression for it. i.e. Re( (C+D)cos(wt) + i(C-D)sin(wt) ) = Acos(wt) + Bsin(wt).
Personally, I find this sloppy and distasteful. If they are going to do that they need to say it explicitly (like I did).

Of course then C & D must be complex and A & B real, or else it's just stupid.
Well, to address your first point, they are setting it up for the forcing functions (initially sine and cosine -- long before they get to Fourier series).

Then, once they get a solution, the books say "If the forcing function was cosine, take the real and drop the imaginary. If the forcing was sine, drop the real part." I am used to that sloppiness.

But I am still uncomfortable with how they just drop the "i" when they are done with the machinery of complex exponentials and wish to return to the world of sinusoids.Your comment "Personally, I find this sloppy and distasteful."
is reassuring to me, but still, I am hoping for further clarificaiotn.

Maybe it is just that engineering-math books DO get lazy.
 
  • #8
Trying2Learn said:
Summary:: When solving a differential equation

Good Morning

I have a second order, linear differential equation. I solve it with complex exponentials. When I am done, I contract terms producing this:

q = exp(some term regarding damping) * ( C+D) cos(wt) + i (C-D) sin(wt) )

Then I define new constants (prior to using the initial conditions)

A = C+D
B = C-D

And I have

q = exp(some term) * Acos(wt) +Bsin(wt) )

OK; what happened to the "i?"
This is wrong, if you define ##A## and ##B## like that, then you will have the term $$A\cos(wt) +iB\sin(wt) )$$. To get rid of the ##i## you must define ##B = i(C-D)##.
Trying2Learn said:
I mean, I get taht I can say "iB is just a constant." But to my stubborn mind, it is a constant from the imaginary world.
Well, and ##C## and ##D## may be a constant from the "negative world", or worst, a constant of the "irrational world", whatever these "worlds" mean.
They could even be non-computable constants! What is your problem with that?
 
  • #9
Gaussian97 said:
This is wrong, if you define ##A## and ##B## like that, then you will have the term $$A\cos(wt) +iB\sin(wt) )$$. To get rid of the ##i## you must define ##B = i(C-D)##.

Well, and ##C## and ##D## may be a constant from the "negative world", or worst, a constant of the "irrational world", whatever these "worlds" mean.
They could even be non-computable constants! What is your problem with that?
OK, that was ONE sloppiness in my typing. I have fixed the original post.
I left out the i

Anyway, your last sentence is the one that seems to address the point.

Thank you!
 
  • #10
Trying2Learn said:
OK, that was ONE sloppiness in my typing. I have fixed the original post.
Even though my post #2 now looks silly: thanks !
Trying2Learn said:
Every book does this. They drop the i, and now I am fairly sure they fail to explain this process. Just look at any book.

Mine is just a second order, linear, diff.eq for spring, mass and damping and no forcing function. Every book gets to this point and absorbs the i.
Ok, so I took 'any book' (borrowed James Stewart: Calculus, 5th ed from my son :cool: ). Chapter 17.

It says a second order linear differential equation like you describe in its most general form looks like $$P(x)\,y'' + Q(x)\,y'+ R(x)\,y = G(x)$$ and it's homogeneous if ##G(x)=0## .
For the spring/mass with damping ##P, Q, R## are constants $$ay'' + by'+ c = 0$$ and a trial solution of the form ##\ y = e^{rx}\ ## seems to be a good candidate, leading to $$\left (ar^2 + br + c\right ) e^{rx} = 0$$ and a characteristic equation$$ar^2 + br + c= 0$$which has two (possibly complex) solutions ##r_1## and ##r_2##.
The most general solution of ## ay'' + by'+ c = 0 ## is then$$y = C_1 e^{r_1x} + C_2 e^{r_2x}$$with ##C_1## and ##C_2## (which may well be complex) determined by initial (or other) boundary conditions.

We look at the case ##r_1## and ##r_2## unequal and both complex.

And sure enough we now come to your point of confusion when ##r_1## and ##r_2## are written as $$r_1 = \alpha + i\beta,\quad r_2 = \alpha - i\beta$$leading to $$y = e^{\alpha x} \left ( c_1\cos\beta x + c_2\sin\beta x \right )\qquad\quad (1)$$with $$c_1 = C_1+C_2, \quad c_2 = i(C_1-C_2)\ .$$Nothing has been omitted, left out, swept under the rug or anything. Equation (1) gives all solutions, real or complex. Then:
Stewart said:
The solutions are real when the constants ##c_1## and ##c_2## are real
and this is the case for the spring/mass system.

Trying2Learn said:
I also have a "feeling" that the new numbers COULD involve anything, even imaginary terms.
You are absolutely right mathematically spoken. But for us physicists, the fact that what we describe is usually real makes that we forget the most general solution.

(the fun starts when we nevertheless add an imaginary part to the solution, just to drop it again at the very end of a whole lot of processing, claiming that we only need to look at the real part :biggrin: )

##\ ####\ ##
 
Last edited:
  • Like
Likes Delta2
  • #11
BvU said:
Even though my post #2 now looks silly: thanks !

I am so sorry about that first error.

However, thank you for the rest of your comment. I understand now.
 
  • Like
Likes BvU
  • #12
It's not necessary to mess around with this algebra; because ##e^{-f(t)} e^{\pm i\omega t}## is a basis of the space of complex solutions, then the real and imaginary parts of the first complex solution ##\{ e^{-f(t)} \cos{\omega t}, e^{-f(t)} \sin{\omega t} \}## constitute a basis of the space of real solutions. That means, any linear combination ##a e^{-f(t)} \cos{\omega t} + be^{-f(t)} \sin{\omega t}##, with ##a## and ##b## real, is a real solution.

[##f(t)## is the unspecified damping term mentioned in the OP.]
 
  • #13
Trying2Learn said:
Summary:: When solving a differential equation

Good Morning

I have a second order, linear differential equation. I solve it with complex exponentials. When I am done, I contract terms producing this:

q = exp(some term regarding damping) * ( C+D) cos(wt) + i (C-D) sin(wt) )

Then I define new constants (prior to using the initial conditions)

A = C+D
B = i(C-D) // I forgot the "i" here when I first posted this, but the rest of my post still has the question that I am asking. My dropping of the "i" here was a grave mistake in stating my own question... I am sorry.

And I have

q = exp(some term) * Acos(wt) +Bsin(wt) )

OK; what happened to the "i?"

Now, I know I can leave the original constants and work those through.
I also have a "feeling" that the new numbers COULD involve anything, even imaginary terms.
And I work it out. So all I did was assign B and ignored the "i"

But I always get a funny feeling at this step, and would like (hope) for someone to explain: "why can I justify, at that moment, why I can drop the "i" from consideration of the new definition B. No book I have read, ever addresses this point, and it may, indeed, be silly/Obvious, but I would really appreciate some thoughts by others.

You want [itex]q = Ce^{r_1t} + De^{r_2t}[/itex] to be real. The easiet way to do that is to take [itex]C[/itex] and [itex]D[/itex] to be complex conjugates, because then [itex]q[/itex] is a sum of complex conjugates and therefore real. So: [tex]
\begin{align*}
A = C + D &\mbox{ is real because it's the sum of complex conjugates.} \\
B = i(C - D) &\mbox{ is real because it's $i$ times the difference of complex conjugates.}
\end{align*}
[/tex]
 
  • Like
Likes jim mcnamara

1. Where does the "i" go in scientific writing?

The "i" in scientific writing typically goes in the middle of a word, between the first and last letters. For example, in the word "scientific," the "i" goes between the "n" and the "t." This is known as the "i-before-e" rule.

2. Why is the "i" placed before the "e" in scientific writing?

The "i" is placed before the "e" in scientific writing because it follows the general rule of English spelling and pronunciation. In most cases, when the letters "i" and "e" are next to each other, the "i" is pronounced as a long "i" sound, while the "e" is silent. This is why we say "scientific" with a long "i" sound instead of a short "i" sound.

3. Are there any exceptions to the "i-before-e" rule in scientific writing?

Yes, there are some exceptions to the "i-before-e" rule in scientific writing. Some words, such as "weird" and "seize," do not follow this rule and have the "i" placed after the "e." However, these exceptions are not very common in scientific writing.

4. How important is proper spelling in scientific writing?

Proper spelling is extremely important in scientific writing. It ensures that your work is taken seriously and that your ideas are communicated clearly. Inaccurate spelling can also lead to misunderstandings and errors in data analysis, which can have serious consequences in the scientific community.

5. Are there any tools or resources available to help with spelling in scientific writing?

Yes, there are many tools and resources available to help with spelling in scientific writing. Spell-check features in word processing programs, online dictionaries, and style guides specific to scientific writing can all be useful in ensuring accurate spelling. It is also important to proofread your work carefully and have others review it for spelling errors.

Similar threads

  • Differential Equations
Replies
3
Views
1K
Replies
8
Views
2K
  • Differential Equations
Replies
3
Views
2K
Replies
1
Views
1K
Replies
2
Views
1K
  • Precalculus Mathematics Homework Help
Replies
7
Views
916
  • Differential Equations
Replies
2
Views
2K
  • Differential Equations
Replies
2
Views
2K
  • Differential Equations
Replies
2
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
3
Views
1K
Back
Top