Plotting Base Characteristics in Mathematica w/ Equations & Initial Data

  • Thread starter Winzer
  • Start date
  • Tags
    Base
In summary, the conversation discusses using Mathematica to plot base characteristics, which involves solving a system of three equations and obtaining the functions x(tau,xi), y(tau,xi), and u(tau,xi). The conversation also mentions initial conditions and potential issues with expressing the functions in Mathematica.
  • #1
Winzer
598
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
  • #2
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.
 
  • #3
Any ideas? I think it's how I express the function in mathematica. Should I show x as a function of tau explicitly everywhere?
 
  • #4
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]
 
  • #5
What about uncoupling the equations?
 
  • #6
[tex]\hat{}\downarrow\downarrow[/tex][tex]\scshape[/tex]
 

FAQ: Plotting Base Characteristics in Mathematica w/ Equations & Initial Data

What is plotting base characteristics in Mathematica?

Plotting base characteristics in Mathematica refers to visualizing the behavior and properties of mathematical equations and initial data using the software Mathematica. This allows for a better understanding of the relationships and patterns within the data.

How do I plot base characteristics in Mathematica?

To plot base characteristics in Mathematica, you can use the Plot function with the desired equation and initial data. You can also use the Manipulate function to interactively change the parameters and see how it affects the plotted characteristics.

What types of base characteristics can be plotted in Mathematica?

Mathematica can plot various types of base characteristics such as curves, surfaces, and vector fields. These can represent different mathematical concepts such as functions, differential equations, and data points.

How can I customize the appearance of my plotted base characteristics in Mathematica?

You can customize the appearance of your plotted characteristics in Mathematica by using various options such as changing the colors, adding labels and legends, adjusting the axes, and adding annotations. The PlotStyle and PlotLabel functions can be particularly useful for this purpose.

Can I export my plotted base characteristics from Mathematica?

Yes, you can export your plotted base characteristics from Mathematica in various formats such as PDF, PNG, and EPS. This allows you to use the visualizations in other documents or presentations.

Back
Top