Wolfram Alpha's Why the 2 i π n?

  • Context: High School 
  • Thread starter Thread starter OmCheeto
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around the inclusion of the term '2 i π n' in the solution provided by Wolfram Alpha for the equation y = a * e^(b*x). Participants explore the implications of complex solutions in logarithmic functions and the nature of multiple branches in the complex plane.

Discussion Character

  • Exploratory, Technical explanation, Conceptual clarification, Debate/contested

Main Points Raised

  • One participant questions why Wolfram Alpha includes the term '2 i π n' in its solution, contrasting it with their own solution of x = log(y/a)/b.
  • Another participant explains that Wolfram Alpha provides all solutions, including complex ones, and notes that the logarithm function has multiple branches in the complex plane.
  • A further contribution demonstrates that substituting the Wolfram solution back into the original equation yields valid results, emphasizing that the additional term represents a complex exponential that equals one for integer values of n.
  • It is noted that while the n=0 solution corresponds to the participant's solution, other integer values of n yield complex solutions that also satisfy the equation.

Areas of Agreement / Disagreement

Participants generally agree on the validity of the complex solutions presented by Wolfram Alpha, but there is a divergence in perspective regarding the necessity of including these solutions in the context of the original problem.

Contextual Notes

The discussion does not resolve the question of whether the inclusion of complex solutions is necessary or expected in the original context, leaving the interpretation of the problem open to individual understanding.

OmCheeto
Gold Member
Messages
2,512
Reaction score
3,509
Was going through an old spreadsheet and I re-did some math that I had originally noted that I had done incorrectly. It seemed trivially simple but I wanted to double check with Wolfram to make sure I wasn't missing something.

Here's what I typed in: solve for x when y = a * e^(b*x)

Wolfram Alphas solution: x = (log(y/a) + 2 i π n)/b and a!=0 and y!=0 and b!=0 and n element Z

Why did Wolfram Alpha add the ‘2 i π n’ ?
My solution was x = log(y/a)/b
 
Physics news on Phys.org
Wolfram is giving you all the solutions, including complex solutions. The logarithm function has several branches in the complex plane, each with a valid solution. If you were not expected to know about the complex solutions, then your single solution was the expected one. Otherwise, the Wolfram answer is better.
 
  • Like
Likes   Reactions: Hornbein, topsquark, OmCheeto and 1 other person
Plug the answer back in to your formula.$$\begin{eqnarray*}
y&=&ae^{b(\log(y/a)+2i\pi n)/b}\\
&=&ae^{\log(y/a)}e^{2i\pi n}\\
&=&ye^{2i\pi n}
\end{eqnarray*}$$The extra exponential on the right is a complex exponential - it turns out that ##e^{i\phi}=\cos(\phi)+i\sin(\phi)##. And that means that ##e^{2i\pi n}=1##, so the right hand side in my third line above is also equal to ##y##.

As FactChecker says, Wolfram is providing all solutions, including complex ones. The ##n=0## solution is the same as yours and is the only real solution. But ##n=\ldots,-3,-2,-1,1,2,3,\ldots## complex solutions also satisfy the requirements you gave Wolfram.
 
  • Like
Likes   Reactions: FactChecker, topsquark, OmCheeto and 1 other person
Thanks!
 
  • Like
Likes   Reactions: Ibix

Similar threads

  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K