Am I expanding e^ix incorrectly?

  • Context: Graduate 
  • Thread starter Thread starter sa1988
  • Start date Start date
  • Tags Tags
    Expanding
Click For Summary

Discussion Overview

The discussion revolves around the confusion experienced by a participant regarding the expansion of the solution to a second-order ordinary differential equation (ODE) of the form y'' + y = t. Participants explore the relationship between complex exponential solutions and their equivalent trigonometric forms, particularly in the context of using Mathematica for verification.

Discussion Character

  • Technical explanation
  • Conceptual clarification
  • Debate/contested
  • Homework-related

Main Points Raised

  • One participant expresses confusion about the imaginary terms in their solution compared to the output from Mathematica, questioning where the imaginary components went.
  • Another participant clarifies that the expressions y = Ae^(it) + Be^(-it) and y = Asin(t) + Bcos(t) are equivalent, but the constants A and B are not the same in both forms.
  • A later reply suggests that the imaginary parts can be incorporated into the constants A and B, leading to a reformulation of the solution.
  • Participants discuss the implications of using complex numbers in solutions and the conditions under which imaginary parts may be ignored in physical problems.
  • There is a mention that imaginary components often get eliminated by initial conditions in physics problems, which adds to the confusion for the original poster.
  • One participant notes that while they thought imaginary parts were eliminated, they are still present in the general case unless explicitly addressed.
  • Another participant emphasizes that imaginary numbers do have real-world applications, particularly in fields like electricity.

Areas of Agreement / Disagreement

Participants generally agree on the equivalence of the complex and trigonometric forms of the solution, but there is some uncertainty regarding the treatment of imaginary parts in specific contexts, particularly in relation to physical applications.

Contextual Notes

Participants acknowledge that the constants A and B in the trigonometric form can be complex numbers, which may lead to confusion when interpreting solutions in real-world scenarios. The discussion highlights the need for clarity regarding the treatment of imaginary components in differential equations.

Who May Find This Useful

This discussion may be useful for students and practitioners working with ordinary differential equations, particularly in physics and engineering contexts, where the treatment of complex numbers and their implications in real-world problems are relevant.

sa1988
Messages
221
Reaction score
23
I'm working on a pretty simple ODE but am getting really confused about one little bit.

It's of this form:

y'' + y = t

So, in solving the complementary solution I use the characteristic method to find:

λ2 + 1 = 0

Hence λ = ± i
Therefore:
yc = Aei t + Be-i t

This expands to:
yc = Acos(t) + i Asin(t) + Bcos(t) - i Bsin(t)

BUT

If I run the same thing through DSolve in Mathematica, I get:

yc = Asin(t) + Bcos(t)

There's a clear similarity between that and my own answer, but also a very clear difference!

Where have I gone wrong? Where are the imaginary terms in the Mathematica solution? Plus, even if I ignore or cancel the imaginary terms in my solution I end up with (A+B)cost(t) which is still wrong, it seems.

What's gone wrong?

Thanks!
 
Last edited:
Physics news on Phys.org
y = Ae^(it) + Be^(-it)
is equivalent to
y = Asin(t) + Bcos(t)

It's just that the A's and B's are not the same.
 
  • Like
Likes   Reactions: sa1988
DuckAmuck said:
y = Ae^(it) + Be^(-it)
is equivalent to
y = Asin(t) + Bcos(t)

It's just that the A's and B's are not the same.

Oh man, that's so obvious I should probably go and hide in a cave somewhere and think about my idiocy, ha.

So I'm right in assuming the imaginary term has simply been tucked away into A or B?

I'm getting it like this:

yc = (iA-iB)sin(t) + (A+B)cos(t)

= Csin(t) + Dcos(t)

I didn't know it was permissible to tuck the imaginary parts away like that though?
 
You can tuck away imaginary parts. A and B are "complex numbers" now.
 
  • Like
Likes   Reactions: sa1988
Great stuff, cheers.

I guess the thing that threw me is that the Mathematica solution didn't tell me " A, B ∈ ℂ "

I thought the imaginary parts were eliminated somehow.
 
sa1988 said:
Great stuff, cheers.

I guess the thing that threw me is that the Mathematica solution didn't tell me " A, B ∈ ℂ "

I thought the imaginary parts were eliminated somehow.

They often are elimated by initial conditions, if you're doing a physics problem. But yes, you have to explicitly eliminate them. They are still there in the general case.
 
DuckAmuck said:
They often are elimated by initial conditions, if you're doing a physics problem.

It actually is part of a physics problem, so I figured there'd be a point where I ignore the imaginary part because it's a 'real-world' fluid dynamics problem of a particle in a flow. The main thing confusing me however was just that 'imaginary' part of the differential equation. All good now! Thanks :oldsmile:
 
sa1988 said:
It actually is part of a physics problem, so I figured there'd be a point where I ignore the imaginary part because it's a 'real-world' fluid dynamics problem of a particle in a flow. The main thing confusing me however was just that 'imaginary' part of the differential equation. All good now! Thanks :oldsmile:

Be careful though, imaginaries do exist in the real world. (Usually in electricity problems.) :oldsmile:
 
DuckAmuck said:
y = Ae^(it) + Be^(-it)
is equivalent to
y = Asin(t) + Bcos(t)

It's just that the A's and B's are not the same.
Then you should use different pairs of letters...
 
  • #10
DuckAmuck said:
Be careful though, imaginaries do exist in the real world. (Usually in electricity problems.) :oldsmile:

Oh I know, heh, but it usually describes those sort of 'extra' numerical factors rather than something Real such as position, which is what I'm doing working on with this fluid dynamics stuff. My bad, I was too vague with what I said.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 23 ·
Replies
23
Views
7K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K