Questions on the symbolic (DSolve, DifferentialRoot) and numerical (NDSolve) solutions of differential equations in Mathematica.

learn more… | top users | synonyms

0
votes
1answer
122 views

Initial and boundary value errors

NDSolve::ivone: Boundary values may only be specified for one independent variable. Initial values may only be specified at one value of the other independent variable. >> I keep getting this, ...
0
votes
0answers
181 views

NDSolve::ndsz:At t==0.000039576, step size is effectively zero

I adjusted my code accordinly to the advice I got. However I still have a problem with this code which now looks like this: ...
0
votes
1answer
85 views

Plotting the discrete solution to a PDE

So I went through all the grunt work of solving a PDE in discrete form for a research project. Now I have a Temperature solution as a function of time and space: $$ T_{i}^{n+1}=\left( \dfrac ...
0
votes
0answers
142 views

How to obtain differential equations of motion using Lagrangian dynamics?

I'm confused to find a set of differential equations of motion of a pair of masses, m1 and m2 joined by a spring of constant ...
0
votes
1answer
35 views

How do I pull from a data list for parameter values in a system of ODEs and then solve and plot?

I have a parameter set list and I would like to solve a system of ODEs multiple times using each parameter set in the list. Then I would like each set of solutions to be graphed on the same plot. ...
0
votes
0answers
98 views

Boundary Condition Problem with Green's Function

My temperature distribution looks like: Mean wire temperature is : To[x_] := 2 c1 Cosh[x a1] + a2 And it is continuous at two points. In positive part: ...
0
votes
0answers
42 views

How do you explicitly define Box Operator (D'Alembert operator)? [duplicate]

I wanted to see how one can define a box operator in mathematica? $$ \Box\phi=(-\frac{\partial^{2}}{\partial t^{2}}+\frac{\partial^{2}}{\partial x^{2}}+\frac{\partial^{2}}{\partial ...
0
votes
0answers
144 views

Shooting method for solving 3rd Oder ODE with RK method

This is my 3rd Order IVP. D[y[x], {x, 3}] == (m/2)*((D[y[x], x])^2 - 1) - ((m + 1)/2)* y*(D[y[x], {x, 2}])^2. Initial conditions given are as follows ...
0
votes
3answers
246 views

Find an equations of motion using Euler Eqution [closed]

I am a completely new to Mathematica, so my question and code may look silly. I need to find a equation of motion of a point particle of mass m moving in a potential V(x) = A abs[x]^n. (n=1,2,3,4,5,6. ...
3
votes
1answer
102 views

NDSolve with varying PrecisionGoal and WorkingPrecision

Sometimes we need higher numerical precision to deal with large number cancellation in an equation. But if this cancellation happens only in a small (and known) parameter space, would it be possible ...
5
votes
2answers
427 views

StreamPlot for Bifurcation Diagram

When we do a StreamPlot, I want to show the bifurcation when $a = 0$ transitions to $a >0$, but do not see a better way to do this than the following. ...
2
votes
0answers
80 views

Internal Shooting Method of NDSolve in combination with NDSolve`Reinitialize?

To explain my problem, I am trying to extend the BVP problem example from the help that illustrates how to use the shooting method of NDSolve: ...
10
votes
3answers
725 views

Plot Matlab icon

I started to explore this on a whim and hasn't succeeded yet… Some introduction for the icon is found here but I can't understand it very well. (I admit that, though playing with ...
0
votes
1answer
103 views

Setting plot size within vector; dynamic slider (two part question)

I have a question about the size of a plot in mathematica. I'm working on some differential equations (a simplified model of heat transfer in a building). I've programmed it so that you can set ...
0
votes
0answers
31 views

How to Invert a Multivariate Interpolating Function? [duplicate]

I used NSolve on a partial differential equation with boundary conditions to get a numerical solution that Mathematica says is of the form InterpolatingFunction. I then defined a function f(x,y) which ...
0
votes
1answer
122 views

Infinite expression 1/0.^(1/4) encountered in NDSolve

I am trying to solve very simple system of coupled differential equations using the NDSolve function, but I am getting ...
0
votes
0answers
156 views

How to apply Robin boundary condition in Mathematica

Robin condition is the boundary condition which combines the Dirichlet and Neumann condition at the same boundary. For example: At the boundary x = 0 to 2: I want to apply ...
-1
votes
1answer
66 views

Error message NDSolve::conarg: The arguments should be ordered consistently [closed]

Here is my code, i'm trying to make a simulation of the double pendulum ...
0
votes
0answers
103 views

Maximum of NDSolve output. Problem with interpolating function

I solve a NonLinear PDE and get a solution (which for other reasons I put into a vector): SolVec1[1][[2]][x,t], where x and t are the indipendent variables. Now, I would like to get a distribution ...
0
votes
1answer
164 views

Using NDSolve for three variables as function of time

I want to be able to plot z, and r. Should I be using DSolve, NDSolve or something else? I've tried to clear it up a bit Thanks, Will ...
3
votes
1answer
254 views

Solving Rotational Equations of Motion

I'm trying to integrate the rotational equations of motion ...
0
votes
1answer
82 views

Check when DSolve returns input [closed]

I'm making a program where i need to plot the soluton of an ODE and ,if possible, obtain the analytical solution. My idea was to use DSolve, check the output, and if it failed use NDsolve. Now, i ...
9
votes
1answer
1k views

How to solve a system of partial differential equations?

Edit: since the upgrade to Mathematica 10, this problem seems solved I just want to solve a system of partial differential equations, for example: $$ \left\{ \begin{array}{l} ...
1
vote
1answer
129 views

Boundary condition is not specified on a single edge of the boundary of the domain

I am attempting to solve a PDE as prescribed in a paper I am reading; however, Mathematica doesn't seem to be happy with the way I am posing the problem. Im my case, r(t,100) is an approximation of ...
0
votes
0answers
43 views

Write nth line to file [duplicate]

I have a code that I am running on a supercomputer. Currently the algorithm must finish before I can export any results from the algorithm. What I would like to do is to have the algorithm write out ...
-1
votes
1answer
112 views

how to solve this ode problem? [closed]

NDSolve::ndnum: Encountered non-numerical value for a derivative at x \ == 0.`. >>
0
votes
1answer
83 views

Cannot get specific value from NDSolve (multiple functions)

I am trying to solve six connected differential equations. This is my code: ...
1
vote
1answer
253 views

Need help with solving a second order differential equation

I need help with solving this differential equation. ...
-1
votes
1answer
102 views

Solve set of non linear differential equations [closed]

I have set of differential equations. For example, I took two equations and tried to solve them as below. I am not getting any results. Please help me to figure it out the mistake. And I wonder if I ...
3
votes
1answer
215 views

Solving a constrained vector system with NDSolve

I'm trying to replicate the pendulum DAE example in the Documentation Center (example/ModelConstrainedSystemsAsDAEs) using Mathematica 9's vector support with NDSolve. So far I have: ...
0
votes
0answers
68 views

Nonlinear System of ODEs

I want to solve this NonLinear System: $$\Theta_{\xi} = \frac{(1-\lambda)K_{\alpha}}{\beta}\Phi^{2}\Theta+\frac{2\beta-1}{6\beta}\xi\Theta$$ $$\Phi_{\xi} = \frac{1}{2\lambda K_{\alpha}\ ...
1
vote
1answer
282 views

Use Euler method to solve differential equation

Use Euler's Method or the Modified Euler's to solve the differential equation ${dy/dt=y^2+t^2-1, y(-2)=-2}$ on $[- 2, 2]$. Take h = 0.2 (...
2
votes
1answer
119 views

Mathematica can't find constants for this differential equation

I am having problems solving this differential equation: diffeq = m x''[t] == -a E^(b*x'[t]); sol = DSolve[{diffeq, x[0] == 0, x'[0] == v0}, x[t], t] The output ...
0
votes
1answer
114 views

Partial differential equation with initial conditions

And so I want to solve the following equation, subject to these initial conditions: $\ u_{tt} - u_{xx} = 6u^5+(8+4a)u^3-(2+4a)u$ $\ u(0,x)=\tanh(x), u_t(0,x)=0$ When I use NDSolve to solve within ...
0
votes
0answers
90 views

How to solve a ParametricNDSolve issue when the system seems to be stiff?

I have a problem with ParametricNDSolve[]. Mathematica gives the warning that a stiff system is suspected. I have varied the methods but unfortunately I was not ...
5
votes
3answers
292 views

Kinetic Friction in Mathematica, weird behaviour

I found the behavoiur of Sign function weird in the code below. when $T=10$ ...
0
votes
1answer
130 views

Issue with NDSOlve while solving vector differential equation [closed]

I am trying to get solution of a vector differential equation x'[t]= aa*x[s] where aa is my 9X9 matrix ...
0
votes
0answers
56 views

Numerically solving a PDE with dependance on a fixed grid point

I am trying to solve partial differential equations of the type $y^{(1,0)}(t,x) = f(y^{(0,1)}(t,x), y(t,x_0))$ where $x_0$ is a fixed point. For example, when pluging this into Mathematica : ...
1
vote
1answer
136 views

Looping with NDSolve?

I have a series of PDE equations that are solved with NDSolve for certain variables $a$ and $b$ - Now, I want to see the output at a time $t$ as $a$ and $b$ change; so I was thinking of a loop ...
1
vote
0answers
176 views

Complicated condition for system of differential equation

I am trying to solve a series of nonlinear differential equation with complex condition as described by block diagram below. The left figure describes general concepts and the right figure describes ...
1
vote
1answer
52 views

Testing if a specific expression is a solution for ordinary differential equation [closed]

I would like to know what is the full command details of wanting to test if a specific expression is a solution for ordinary differential equation (without using DSolve). Thanking you in advance for ...
1
vote
1answer
198 views

How to use Compile with NDSolve function for large no of differential equations?

Matrix M[t] and and Hamiltonian of same order L^n x L^n. ...
4
votes
1answer
198 views

How to choose MaxStepFraction for optimal speed of NDSolve

I'm trying to use NDSolve to solve a 1D Schrodinger's equation, and it seems that MaxStepFraction has huge effect on the ...
0
votes
1answer
92 views

Problem with Plot of Solution for NDSolve [closed]

I'm trying to plot the solution of an equation using NDSolve. For some reason nothing shows up in the plot. I checked the output of the interpolating function and it doesn't look like there is ...
2
votes
3answers
237 views

Differential equation of a physical property which can not be below zero

A simple question but maybe also interesting for others. I have the simple differential equation: a'[t] == -r The quantity a has a physical meaning and can not ...
0
votes
1answer
125 views

Piecewise of different functions

You know, NDsolve coupled with Piecewise can be used to solve a series of discontinuous differential equations. But what if one of the function is different? For example: ...
1
vote
2answers
103 views

Eliminate complex answer to differential equation

I've tried the following: ...
0
votes
2answers
137 views

Asymptotic series

I need to solve the following problem. I have the following function: Erf[Sqrt[a x^2 + b y^2]]/Sqrt[a x^2 + b y^2], where x and y are variables and a and b ...
1
vote
2answers
143 views

Solving an ODE with parameters and conditions

I am trying to use Mathematica to solve a relatively simple ODE involving parameter(s). I would like to use a set of conditions to solve for the particular solution of the ODE. I understand how to ...
6
votes
0answers
126 views

Possible bug with FourierTransform linearity

Each component is easily transformed but the sum is not: FourierTransform[f''[x], x, k] FourierTransform[f'[x], x, k] ...