How can I graph a heat equation with multiple variables in Maple?

Click For Summary

Homework Help Overview

The discussion revolves around graphing a heat equation with multiple variables in Maple, specifically the function T(x,t) = T1e^(lambda*x)sin(omega*t-lambda*x) with given parameters. Participants are exploring how to effectively visualize this equation in a three-dimensional plot.

Discussion Character

  • Exploratory, Problem interpretation, Assumption checking

Approaches and Questions Raised

  • The original poster attempts to use the plot3d function but is unsure about how to handle the multiple variables and constants in the equation. They express confusion over obtaining a 3D plot and question how to treat omega as a constant.
  • Another participant shares their own attempts and notes that they are also receiving a flat graph, indicating a potential misunderstanding in the plotting process. They suggest removing the (x,t) notation to see if it resolves the issue.

Discussion Status

Participants are actively sharing their attempts and troubleshooting issues related to graphing in Maple. Some guidance has been offered regarding the syntax and handling of variables, but there is no explicit consensus on the best approach yet.

Contextual Notes

There is mention of confusion regarding the treatment of the variable omega and its necessity in the plot. The original poster and others are navigating the complexities of plotting functions with multiple variables in Maple, indicating a learning process in understanding the software's capabilities.

Ultramilk
Messages
10
Reaction score
0

Homework Statement


Graph T(x,t) = T1e^(lambda*x)sin(wt-lambda*x) in Maple
lambda = -.2
T1 = 10
omega = constant

Homework Equations


Maybe heat equation
ut(x,t) = uxx(x,t)


The Attempt at a Solution


I'm really unsure on how to graph a multiple variable function/equation in Maple. I gave it a couple of tries using plot3d, but I really don't have a clear understanding of how exactly the functions work (I only plot 2d stuff before this).

My only close attempt was when I typed in:
plot3d(T1e^(lambda*x)sin(wt-lambda*x), x=0..10, t=0..10)
where I had define lambda := -.2 and T1 := 10;
It didn't give me any errors, but it gave me an empty plot.

I also looked up procedures in graphing heat equation, but it didn't give me a plot I wanted. Rather I wanted a plot in 3d, while it gave me a plot in 2d as the end result.

I guess my biggest problem right now is how to get Maple to treat omega (w) as a constant. Should I leave it out while trying to plot it? Because when I do I get a curved 2d line on the graph.
I'm unsure if graphing if covered in this forum, but it would be really helpful if a person could direct me in the right direction, maybe drop some advice as to which plot to use (like PDEplot or if plot3d is fine?)

Thanks a lot for the help guys.
 
Physics news on Phys.org
So I kept trying it, and looking up guides to graph said equation in the end I got:

T(x,t) := 10 exp(-.2 *x)*sin(omega*t+.2*x);
plot3d(T(x, t), x = -10 .. 10, t = 0 .. 10, axes = framed, orientation = [-20, 20])

I don't think I need too many lines of code to graph it, but I keep getting a flat graph. I mean I get a 2d plot on the xt plane while I want a 3d plot. I'm not 100% what I'm doing wrong, does anybody have a clue?

Thank you.
 
Ultramilk said:
So I kept trying it, and looking up guides to graph said equation in the end I got:

T(x,t) := 10 exp(-.2 *x)*sin(omega*t+.2*x);
plot3d(T(x, t), x = -10 .. 10, t = 0 .. 10, axes = framed, orientation = [-20, 20])

I don't think I need too many lines of code to graph it, but I keep getting a flat graph. I mean I get a 2d plot on the xt plane while I want a 3d plot. I'm not 100% what I'm doing wrong, does anybody have a clue?

Thank you.

I assume you have assigned a value to ω (you can't leave it undefined in a plot). I think if you remove the (x,t) like this:

T := 10 exp(-.2 *x)*sin(omega*t+.2*x);
plot3d(T, x = -10 .. 10, t = 0 .. 10, axes = framed, orientation = [-20, 20]);

it will work.
 
Oh wow that worked :O
 

Similar threads

Replies
6
Views
3K
Replies
1
Views
2K
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 14 ·
Replies
14
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
6K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
8
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K