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

learn more… | top users | synonyms (3)

0
votes
0answers
33 views

Solving Time-Dependent PDE's Analytically with no non-trivial Boundary Conditions

I'm having some trouble solving a partial differential equation that is supposed to model the propagation of a scalar field in Schwarzschild spacetime using spherical coordinates. I'm using the DSolve ...
6
votes
0answers
46 views

EventLocator in NDSolve seemingly hogs memory in Windows, but not Mac

I have written a function (ftest in my code) which does the following: Takes a vector {x,vx,vy} as input Numerically solves (with high precision) a specific ...
4
votes
1answer
73 views

Issues with modeling pulses in a very simple system of DAEs

Some time ago I had asked this question about evaluation difficulties using Euler Integration to solve a system of ODE where discrete pulses occur. While I have now abandoned Euler integration and ...
0
votes
1answer
67 views

How to perform this nth derivative operation in MMA?

I have to solve this following equation where I need to differentiate a function $n$ times. $$A=\sum_{n=0}^{m-1}\frac{s^n}{n!}(-1)^n\frac{d^nf(s)}{ds^n}$$ How to express the above equation in ...
0
votes
0answers
36 views

Recycle boundary condition

I'm having the following issue that can not find a solution , by using this boundary condition u[0, t] == 2 u[1, t] that Mathematica does not understand, someone ...
1
vote
0answers
80 views

How to “INJECT” with holding Evaluation, specifically into a WhenEvent

I am importing a set of differential and stochastic equations from an external package, and want to use Mathematica to analyse this. I am struggling building the set of equations that I can use with ...
9
votes
1answer
76 views
0
votes
2answers
83 views

Jump boundary conditions

I'm having the following issue that can not find a solution , by using this boundary condition ...
2
votes
1answer
284 views

NDSolve for axisymmetric problem

I would like to solve an axisymmetric Poisson equation on a disk with FEM. The code for Cartesian coordinates works fine: ...
1
vote
0answers
44 views

Solving ode which solution oscillate violently

This is a ordinary differential equation: y[x]/(-1 + x^4)^2 - ((1 + 2 x^2 + 3 x^4 - 2 x^6) Derivative[1][y][x])/(x - x^5) + Derivative[2][y][x] == 0 I want to ...
1
vote
1answer
214 views

Solving wave PDE

I am trying to solve the wave PDE with NDSolve. Below is the equation: ...
3
votes
2answers
94 views

Switching Differential Equation in NDSolve

I am trying to solve the following system of differential equations using NDSolve: $\dot{z}_t=.5(1-z_t)$ $\dot{y}_t=.05y_t+z_t-x_t$ subject to the following constraint: $-y_t-z_t\le0$ where $z_t$ ...
0
votes
0answers
39 views

Pass List / Vector argument through NDSolve to a function

I am trying to pass vector or list as argument to the function from NDsolve.And I am getting these error. Also I am pretty new to stack overflow. Apology if this a possible duplicate. Here is my code. ...
1
vote
1answer
39 views

portions of plot missing for a relatively simple function

I am trying to produce a graph of the linear dynamic system response to a step input. The code is as follows: ...
0
votes
2answers
82 views

Free-fall air resistance problem

I´m working on a free fall problem and I got an equation with variable $k$ when the situation has air resistance. Then I compared with no air resistance equation ($-4.9$, considering t variable). So, ...
3
votes
0answers
77 views

Kernel crashes when computing finite difference mixed derivative with respect to y & z but works fine when computing with respect to x & y or x & z?

I am using Mathematica 10.4.0 on Ubuntu 16.04. I am trying to solve a set of differential equations using finite difference method on an NxNxN cubic grid (x, y, z directions). I am getting a weird ...
3
votes
0answers
37 views

Constraining Function to be positive with NDSolve, Allee effect

I am trying to numerically solve the steady-state behaviour of the Allee effect (with one spatial dimension, diffusion): $\frac{\partial n}{\partial t} = D \frac{\partial^2 n }{\partial x^2} + ...
5
votes
1answer
73 views

Finding the correct boundary conditions to a specific problem

I want to reproduce the following problem in the figure: $$\phi''+c\phi'\sqrt{m^2\phi^2+\phi'^2}+m^2\phi=0$$ where $\phi=\phi(x)$ with $x \in (-\infty,\infty)$, $c=\sqrt{3/2} \ $ and $m=0.2$. ...
3
votes
2answers
94 views

Assigning Element Markers to 3D FEM Mesh

I have created a 3D graphic using GraphicsComplex and then use ToElementMesh to generate a 3D Mesh that I want to solve a PDE on, but I cannot figure out how to apply ElementMarkers to the Boundaries. ...
10
votes
1answer
204 views

NDEigensystem cannot solve numerically the 3D Coulomb problem, while DSolve returns the right answer

After having derived by hand the eigenvalues and eigenfunctions for the 3D and 2D hydrogen atom, I want to solve the systems numerically using Mathematica. I need to do this because my next step is to ...
17
votes
4answers
2k views

How do I solve a PDE with a strange boundary condition?

How do I solve the PDE with boundary value like this $$u(t,x,y)=0, \textrm{when } F(x,y)=0$$ using DSolve? As a specific example, I want to solve heat equation $$\frac{\partial u}{\partial ...
0
votes
1answer
1k views

how to solve second order nonlinear coupled differential equations using NDSolve with hyperbolic function

i have to solve some solitons scattering through this coupled equations. i need to get two different graph, but still the graph did not come out. and also the equations quite complicated containing ...
3
votes
2answers
173 views

Solving coupled differential equations with unknown constants

Is it possible to obtain exact solutions of these types of coupled differential equations directly in Mathematica ...
2
votes
0answers
84 views

NDSolve for unsteady Taylor-Goldstein equation, can't use MethodOfLines

I am trying to solve a relatively simple system of linear PDE in two variables (z,t). The equations are basically the Navier-stokes equations linearized around a constant background velocity profile ...
14
votes
2answers
260 views

What can one do with extremely stiff problem in NDSolve?

Consider the following illustrative problem: $$ \frac {\partial f} {\partial t} = \frac {\partial} {\partial x}(x f) + \frac {\partial} {\partial x}(f \frac {\partial f} {\partial x}) $$ This is ...
2
votes
3answers
112 views

Strong glitch with Evaluate in Manipulate

I'm experiencing a strong evaluation problem for a Manipulate box and I can't find the best solution yet. Here's a MWE to show the glitch : ...
0
votes
1answer
69 views

Using Neumann boundary conditions

I had a semi-related physics problem I needed to solve analytically (which I have already done), but I am now curious how I would go about numerically solving the entire system in Mathematica. ...
0
votes
1answer
48 views
0
votes
2answers
278 views

Why the result by hand is different from the built-in DSolve?

Yesterday, I used Mathematica to solve a differential equation using the built-in command DSolve[]: ...
6
votes
0answers
124 views

DSolve breaks when the ordering of independent variables aren't proper?

Bug introduced in 5.2 or earlier and persisting through 10.4.1. I encountered this when trying to solve this problem with DSolve: ...
35
votes
3answers
1k views

Can Mathematica solve Plateau's problem (finding a minimal surface with specified boundary)?

Given a closed curve $\mathcal C$ in three dimensions, is it possible to use Mathematica's built-in functionality to compute a minimal surface whose boundary is $\mathcal C$? For simplicity, let us ...
0
votes
0answers
44 views

Problems with numerical solution of differential equation

I'm trying to obtain a numerical solution for my differential equation. But i have the following mistake: Encountered non-numerical value for a derivative at z == 0. Can somebody help with that? ...
3
votes
2answers
73 views

DiscretizeRegion does not include the boundary specified in ImplicitRegion (10.1)

I am trying to do some 3D PDE solving, and I keep running into problems with boundary conditions because my meshed boundaries are not what I expected. For example, the following code ...
0
votes
0answers
46 views

Fitting 6 differential equations to 6 sets of data

I am using the newest Mathematica and I am trying to fit a set of 6 linear differential equations to a set of experimental data for each of the six variables. I am a baby beginner at this and could ...
0
votes
0answers
42 views

Impose conditions on differential equations

This is my first post in Mathematica Stack Exchange, so thanks for your help and sorry for any rookie mistakes. I am solving the Einstein equations for two vectorial pertubations h_Alpha and v_Alpha ...
1
vote
1answer
220 views

Using the Levenberg - Marquardt algorithm to minimize a user-defined function

I wrote a function in Matlab that optimizes another user defined function using lsqnonlin with 'levenberg-marquardt' option. Now, I'd like to use the first to ...
2
votes
1answer
45 views

Clearing Problem with DSolve

Consider: This is a classic mistake (using a single equal sign) that has been discussed on Mathematica Stack Exchange before. I know that Clear[Derivative] will cure the problem. However, consider ...
1
vote
1answer
40 views

“MemoryAllocationFailure” in DSolve

Mathematica 10.4, Windows 10, 6 GB RAM, 64 bits When I trying to solve DSolve[{v'[t] == 100 - 0.15 v[t]^2, v[0] == 30}, v[t], t] I get ...
0
votes
1answer
32 views

NDSolve point animation not working [closed]

The below code plots the path of a ball bouncing but loses 90% of its velocity each time it bounces. (adapted from https://reference.wolfram.com/language/ref/WhenEvent.html). ...
0
votes
1answer
95 views

Plotting graphical analysis of chaotic behavior

I am trying to plot some results of chaotic behavior in a system based on a paper for one of my classes. I am a physics undergrad. I found some sample code online springy.nb which I have been trying ...
20
votes
2answers
390 views

Numerical optimal control

I was hoping to tackle optimal control using Mathematica in order to learn how I can use Mathematica's built in numerical integration and optimization functions together in order to solve an optimal ...
3
votes
1answer
66 views

Dsolve svars error: Equations may not give solutions for all “solve” variables

New to Mathematica, trying to solve a set of coupled differential equations related to a geodesics/Calculus of Variations problem. More specifically, I am trying to solve the two Euler-Lagrange ...
0
votes
1answer
59 views

I am having trouble with the DSolve function [closed]

DSolve[{x''[t] + 0.01 x'[t] + x[t] == E^(It), x[0] == 1, x'[0] == 1}, x[t], t] This give the following error :"Equation or list of equations expected instead ...
2
votes
0answers
59 views

How to change the boundary condition near singularity

The following system has a singularity around $x=0.451$. What I want to do is to detect when the solution gets close enough to this singular point (in this example I'm using the threshold of $0.001$), ...
1
vote
0answers
50 views

DSolve does not give an analytic solution for a tutorial input [closed]

I am just starting with Mathematica and I have tried to solve PDE following DSolve, with first three inputs from the Elliptical Partial Differential equations ...
0
votes
0answers
57 views

Nonlinear PDE system in a rectangle

This question is posted by two physics students working together. We are having some trouble while trying to solve Navier-Stokes equations, The main problem is that, while our set of partial ...
0
votes
1answer
92 views

How to omit the corrupt value in a program?

I've such errors: Coordinate .. is not a floating-point number and can't correctly fix it. The problem occures when x==Log[2] The program works correctly ...
0
votes
0answers
56 views

NDSolve for an (slightly) discontinuous Piecewise input

I define a Piecewise discontinuous function V[f[t]], which depends on a function f[t] I want to get numerically using ...