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

learn more… | top users | synonyms

2
votes
2answers
156 views

Exact Differentials

I just started using Mathematica so my apologies if this is a very basic question. I tried to find related questions on this forum but couldn't, so here goes. I have an equation, $\quad \quad dp ...
4
votes
2answers
112 views

Vector form using NDSolve

Michael E2 wrote a wonderful solution for my question. Now I am considering the system: $$ \begin{align*} x'&=x^2 y,\ x(0)=1\\ y'&=-x y^2,\ y(0)=1 \end{align*} $$ I am wondering how I can ...
0
votes
1answer
133 views

A good choice to find solutions of ODE

In order to rephrase the question. I would ask you to take a look at the following problem: I have this system of ODE: $$ \begin{cases} \dot{x}(t)= x(t)[r_1(t) -b_1(t)x(t- \tau(t)) - c_1(t)y^m(t)] ...
1
vote
1answer
194 views

Defining a curved region for NDSolve

I have an equation to solve using NDSolve which involves two parameters: $en$ and $k$. The equation produces a set of curves when $en$ is plotted against $k$. In ...
4
votes
3answers
324 views

Verify Cayley-Hamilton Theorem

Consider the matrix: A = {{-1, -4, -2}, {0, 1, 1}, {-6, -12, 2}} Now, the characteristic polynomial is found: ...
0
votes
1answer
122 views

How can I create a phase plane? [duplicate]

I want to make a phase plane for an equation system. I want it to look something like a Mu-Space in Stat-Mech. Basically I want it to show the same system with various different initial condition ...
1
vote
1answer
722 views

Integro-differential eqn with double integral

I am looking at the following variation of a integro-differential, with y[0]=1. The output is not great, any solutions to this? ...
0
votes
0answers
44 views

How to plot three related differential equations in Mathematica?

Eq1: $ \frac{1}{3\phi}=\left[\frac{x}{x+1}\frac{d^{2}}{dx^{2}}+\frac{2x+1}{(x+1)^{2}}\frac{d}{dx}\right]{\phi^{2}} $ Eq2: $ ...
9
votes
4answers
395 views

Should DSolve always return solution with constant of integration?

Bug introduced in 10.0.0 and fixed in 10.0.2 Clear[y,x]; DSolve[D[y[x], x] - y[x]^2 + y[x]*Sin[x] - Cos[x] == 0, y[x], x, GeneratedParameters -> C] or ...
1
vote
1answer
77 views

Failed to create a special random-disturbed initial condition for partial differential equation

I try to use BSplineFunction to creat a initial condition for NDSolve which has periodic boundary condition, that is realized by ...
9
votes
1answer
603 views

NDSolve::ndcf: Repeated convergence test failure. How to solve?

I am trying to simulate a system of $n$ pendulums with some friction in Mathematica 9. This is the code I am using: ...
1
vote
4answers
150 views

How can I remove horizontal lines on a phase plot for a pendulum?

I am attempting to do a phase plot for a driven,damped pendulum. When the angle wraps from Pi to -Pi or -Pi to Pi I get a horizontal line on the plot. I would like to remove these lines as they mask ...
7
votes
1answer
213 views

Problem with Neumann condition in quarter disc

Bug persists through version 10.1 So I'm following the available examples in version 10 for FEM, The plane stress operator is shown as this ...
6
votes
1answer
368 views

Poisson PDE over a irregular region with FDM

The problem modeled by the Poisson PDE is related to the torsion of prismatic beams and I use the Finite Differences Method (FDM). I've managed to solve the equation over a rectangle region with ...
0
votes
3answers
119 views

How to define a function

How can I define a function which depends on a function of x? Something like this f[u[x]_,u[x]']= u[x]' + a [x] u[x] +b[x] I think I wasn't enaugh clear. If I ...
0
votes
0answers
51 views

find initial condition for NDSolve

I have a complicate second order differential equation to solve numerically (too complicate to be posted). Unfortunately I do not know the behavior of the solution $\theta(r)$ near $r=0$ and I am not ...
1
vote
1answer
101 views

Poisson PDE in a rectangular domain

I found a solution for this problem, but this is in Scilab and I never use Scilab. Can anyone can help me to translate it in Mathematica? Here is the Link:http://imechanica.org/files/TorqueR.pdf I ...
0
votes
0answers
99 views

Laplace PDE in a polar coordinate system

I want to solve a Laplace PDE in a polar coordinate system with finite difference method, but I have a problem with boundary conditions at r = 0. Here is what I ...
6
votes
1answer
106 views

DSolve giving strange error messages solving a PDE

Consider this set of PDE $$\left( x^{2}+y^{2}\right) \dfrac {\partial u}{\partial x}+n x y\dfrac{\partial u}{\partial y}=0$$ have general solution $$u\left( x,y\right) =f\left( \dfrac {1}{n-1}\dfrac ...
3
votes
2answers
153 views

NDSolve in Mathematica won't use all the cores avaiable

When I solve a system of differential equations in Matlab, the task manager shows that all the CPU cores are in use. This is not true when I solve the same system in Mathematica. I have six cores. ...
0
votes
0answers
38 views

Trying to plot solution curves on top of a direction field

I'm trying to do some diff. eq. homework that requires taking a general solution to a differential equation and graphing a series of possible solution curves over a direction field of the general ...
2
votes
1answer
68 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
57 views

NDSolve Poisson PDE for rectangle with hole

When I solved the Poisson PDE with function NDSolve in a rectangular domain with hole in the center, and search the first derivative with x and y why appear these protrusions on the diagram around the ...
3
votes
1answer
90 views

Define and refine mesh around a hole

I am solving Laplace equation with particular geometry and boundary conditions: ...
1
vote
0answers
38 views

Error message for FEMStiffnessElements

I am trying to solve this pde numerically with Mathematica: ...
1
vote
1answer
78 views

DSolve for a huge linear inhomogeneous ODE in parallel

I have a linear inhomogeneous ODE with constant coefficients, which I need to solve symbolically. The problem is that the inhomogeneity is sum of more than 100 terms (however, each term itself is ...
1
vote
1answer
710 views

Non-numerical value for a derivative on NDSolve function

I am trying to solve the following system of differential equations: ...
2
votes
0answers
35 views

How to handle solution returned by ParametricNDSolveValue in FindRoot

i was trying to solve a problem relative to root finding in a system of differential equations; here's a simpler case. With two distinct set of parametric differential equations, i'm able to find the ...
1
vote
1answer
129 views

4th-order Runge-Kutta method to solve a system of coupled ODEs [duplicate]

I am a beginner at Mathematica programming and with the Runge-Kutta method as well. I'm trying to solve a system of coupled ODEs using a 4th-order Runge-Kutta method for my project work. I have ...
3
votes
2answers
68 views

Memory Problem with Modules and NDSolve

I'm using NDSolve inside a module, and I appear to have a memory leak. The relevant code is: ...
1
vote
1answer
82 views

How to modify a PDE inside NDSolve according to an if condition

I need to solve this PDE $$\partial_tf(t,x)+\partial_xf(t,x)+k\partial_{xx}f(t,x)-xf(t,x)=0 $$ with $k\in\mathbb{R}$ and final condition $f(T,x)=1$ with $0<t<T$. My problem is how to solve ...
2
votes
1answer
122 views

(NDSolve) Non-linear 2nd order ODE, regular singular point (looking for good methods for this problem)

I am solving this set of non-linear 2nd order ODE by NDSolve, $$r^2\frac{d^2f}{dr^2} = 2f(1-f)(1-2f)+\frac{r^2}{4}h^2(f-1)$$ $$\frac{d}{dr}\left[r^2\frac{dh}{dr} \right]=2h(1-f)^2+\lambda ...
0
votes
2answers
105 views

Solving differential equations with Wolfram Mathematica

So i saw this differential equations in my textbook $\frac{{{d^4}\omega }}{{d{x^4}}} + 4{\lambda ^4}\omega = 0$ and i figured why not solve it with majestic Wolfram Mathematica, so i write this ...
1
vote
1answer
61 views

Entering an differential equation in a Manipulate box

Does anyone have an example of a Manipulate demonstration where the user can type into a box the differential equation, time interval, initial condition, and the result is plotted? This possible in ...
7
votes
2answers
149 views
2
votes
0answers
64 views

Differential Geometry on a MeshRegion

For many many years (honestly, since 1987) I've had my own MMa computational geometry code for dealing with 3D meshes. I principally (there's a joke there somewhere) use it to calculate coordinate ...
2
votes
1answer
88 views

Nullclines and equilibrium point labels

I am trying to draw the vector field, nullclines, and equilibrium points for the system $$ \begin{align*} x'&=2x-y+3(x^2-y^2)+2xy\\ y'&=x-3y-3(x^2-y^2)+3xy \end{align*} $$ I have completed ...
3
votes
1answer
54 views

NDSolve with known tolerance function

I would like to solve the differential equation: y'[x]=F[y[x],x] with y[0.5]=y0 and x ...
0
votes
0answers
46 views

Having trouble reading this output (pure functions) [duplicate]

I'm after decoupling some odes and trying to solve them using mathematica but my output is in terms of Functions and InverseFuntions and I'm afraid I have no idea how to translate the output into ...
0
votes
1answer
46 views

NdSolve problem :NDSolve::ndode: Input is not an ordinary differential equation

I am new to Mathematica. I am working on solving the following different equations numerically written in the code as below. Not so sure about the boundary values that depends on R (M(0)=0, n(1)=0) ...
4
votes
1answer
64 views

How to use DSolve with vectors without decomposing into vector components?

Given a basic, two-dimensional ballistic trajectory problem, I can solve the equations of motion using DSolve (or NDSolve) by ...
2
votes
1answer
137 views

Coupled non-linear differential equations

I have a system of coupled nonlinear differential equations to solve: $$ \frac{\partial m(x,t)}{\partial t}+v(x,t)\frac{\partial m(x,t)}{\partial x}=-\gamma \frac{\partial^2 v(x,t)}{\partial x^2}, \\ ...
0
votes
0answers
80 views

Finding roots by solving its ODEs [duplicate]

Roots of fluctuating function (p,q real) needed to evaluate eigenvalues of $$ y(x) = \dfrac{\sin px }{p} + \dfrac {\sin q x }{q} =0 ...(1*) $$ form a real and complex infinite set. The way to ...
3
votes
2answers
180 views

How to propel the integration of time a little bit further? Numerical solution can not evolve to the max time

I try to solve a nonlinear partial differential equation. I obtain a numerical solution which can not continue to the max time I set, I always receive message NDSolve::ndcf: Repeated convergence ...
1
vote
1answer
37 views

Value of event function not a real number

I am having some problems with handling an event during NDSolve. The event itself is simple, I am looking for when one of my coordinates, defined in ...