Plotting Base Characteristics in Mathematica w/ Equations & Initial Data

  • Thread starter Thread starter Winzer
  • Start date Start date
  • Tags Tags
    Base
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
5 replies · 2K views
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]