Plotting Base Characteristics in Mathematica w/ Equations & Initial Data

  • Thread starter Thread starter Winzer
  • Start date Start date
  • Tags Tags
    Base
Click For Summary

Homework Help Overview

The original poster is attempting to plot base characteristics using Mathematica, focusing on a set of characteristic equations involving functions of variables x, y, and u. The equations describe the relationships between these variables over a parameter τ, with initial conditions provided for u.

Discussion Character

  • Exploratory, Mathematical reasoning, Problem interpretation

Approaches and Questions Raised

  • Participants discuss the formulation of ordinary differential equations (ODEs) based on the characteristic equations and initial conditions. There is a question about whether the functions should be expressed explicitly in terms of τ. Some participants consider the implications of different initial conditions and the possibility of uncoupling the equations.

Discussion Status

The discussion is ongoing, with participants exploring various approaches to formulating the problem in Mathematica. There is no explicit consensus yet, but several lines of reasoning are being examined, including the structure of the equations and the representation of initial conditions.

Contextual Notes

Participants note issues with the formatting of Mathematica code when copied and pasted, which may affect the interpretation of the equations. There is also mention of different initial conditions that could influence the problem setup.

Winzer
Messages
597
Reaction score
0

Homework Statement


I am trying to plot base characteristics using mathematica.
The characteristic equations are:

Homework Equations


[tex]\frac{dx}{d\tau}=x u(x,y)[/tex]
[tex]\frac{dy}{d\tau}=y u(x,y)[/tex]
[tex]\frac{du}{d\tau}=x^2+y^2[/tex]
u(x,1)=Sqrt(x^2+1) Initial Data

The Attempt at a Solution


How do I solve this with Mathematica. I need to get x(tau,xi),y(tau,xi),u(tau,xi) so I can plot the base characteristics. By the way xi is the other parameter.
 
Physics news on Phys.org
i tried for x
Code:
ode1 = D[x[\[Tau]], \[Tau]] == x[\[Tau]] u[x[\[Tau]], y[\[Tau]]]
ode2 = D[y[\[Tau]], \[Tau]] == y[\[Tau]] u[x[\[Tau]], y[\[Tau]]]
ode3 = D[u[\[Tau]], \[Tau]] == x[\[Tau]]^2 + y[\[Tau]]^2
DSolve[{ode1, ode2, ode3, x[0] == \[Xi], y[0] == 1, 
  u[0] == Sqrt[\[Xi]^2 + 1]}, x[\[Tau]], \[Tau]]
Note: \[Tau]=[tex]\tau[/tex] & \[Xi]=[tex]\xi[/tex]
Its when I copy pasted the code it turned up like this.
 
Any ideas? I think it's how I express the function in mathematica. Should I show x as a function of tau explicitly everywhere?
 
What about if i have the intial conditions:
[tex]x(\xi,0)=\xi[/tex]
[tex]y(\xi,0)=1[/tex]
[tex]u(\xi,0)=\sqrt(\xi^2+1)[/tex]
 
What about uncoupling the equations?
 
[tex]\hat{}\downarrow\downarrow[/tex][tex]\scshape[/tex]
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
19
Views
3K
  • · Replies 14 ·
Replies
14
Views
2K