Plotting Contours for a Non-Linear Function with the Lambert-W Function

  • Thread starter Thread starter mmh37
  • Start date Start date
Click For Summary

Homework Help Overview

The discussion revolves around plotting contour diagrams for the non-linear function z = (x^2 - y^2) * e^(-x^2 - y^2), specifically for the case when z = 1. Participants are exploring the implications of the equation ln(x^2 - y^2) = x^2 + y^2 and the challenges associated with visualizing this relationship.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning

Approaches and Questions Raised

  • Participants are attempting to understand how to plot the contour diagram and are questioning the feasibility of solving the equation ln(x^2 - y^2) = x^2 + y^2. There is discussion about transforming variables and the implications of intersections between functions.

Discussion Status

Some participants have offered alternative perspectives on how to approach the problem, suggesting different methods of manipulation and the potential use of the Lambert W function. However, there is no explicit consensus on a single method or solution path at this stage.

Contextual Notes

Participants are grappling with the complexity of the equations involved and the limitations of their current understanding regarding the plotting of the functions. There is an acknowledgment of the difficulty in visualizing the relationships without a clear method to solve for y.

mmh37
Messages
56
Reaction score
0
I shall plot the contour diagram of

[tex]z = (x^2 - y^2) * e^ {-x^2 - y^2}[/tex]

for z = O this is easy, however, if z = 1 one gets

[tex]ln (x^2-y^2) = x^2 + y^2[/tex]

Does anyone know how to draw this?

I tried to find the intersection between two functions y1 and y2 being the lhs and rhs of the above equation respectively; but since I don't know how to draw y = ln (x^2 - y^2) either I have no clue how this is supposed to work.
 
Physics news on Phys.org
Maybe start by looking at x² as X, and y² as Y, so you're just looking at ln(X-Y) = X+Y. Also, you do not want to see where y = ln(x² - y²) and y = x² + y² intersect. For example, if you wanted to plot the diagram for

cos(y) = sin(y)

you wouldn't want to see where:

y = sin(y), and y = cos(y)

intersected. y = cos(y) will just be the horizontal line y = 0.74 (approximately), and y = sin(y) will just be the horizontal line y = 0, so their intersection will be empty. On the other hand, sin(y) = cos(y) will have a solution consisting of infinitely many horizontal lines, a distance of [itex]\pi[/itex] apart from one another.

So you really just have to solve ln(X-Y) = X+Y.
 
thanks for this. I do understand your argument. however, I do not understand how I could draw ln(X-Y) = X+Y either, since solving for x and y looks impossible.


AKG said:
Maybe start by looking at x² as X, and y² as Y, so you're just looking at ln(X-Y) = X+Y. Also, you do not want to see where y = ln(x² - y²) and y = x² + y² intersect. For example, if you wanted to plot the diagram for

cos(y) = sin(y)

you wouldn't want to see where:

y = sin(y), and y = cos(y)

intersected. y = cos(y) will just be the horizontal line y = 0.74 (approximately), and y = sin(y) will just be the horizontal line y = 0, so their intersection will be empty. On the other hand, sin(y) = cos(y) will have a solution consisting of infinitely many horizontal lines, a distance of [itex]\pi[/itex] apart from one another.

So you really just have to solve .
 
I believe you're approaching it wrong. Do not take the log but rather solve for y in the equation:

[tex]a=(x^2-y^2)e^{-(x^2+y^2)}[/tex]

Yea, it could happen via the Lambert W function. How about I start it for you:

Switch it around to:

[tex](x^2-y^2)=ae^{(x^2-y^2)}[/tex]

Now here comes the tricky part: What do I have to multiply both sides by so that the LHS is:

[tex]fe^{f}[/tex]

(where f is some algebraic expression)

That's the form to extract the Lambert-W function. Then solve for y . . . equal rights and all that stuf.:smile:
 
Last edited:

Similar threads

  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
8
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 17 ·
Replies
17
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K