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

learn more… | top users | synonyms

0
votes
2answers
52 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 ...
1
vote
3answers
117 views

Simplify an integral involving trigonometric functions

We were doing variation of parameters in differential equations tonight and had to do the following integral, the result given by hand calculations. $$\int \cos t\tan^2 t\,dt=\ln|\sec t+\tan t|-\sin ...
6
votes
1answer
337 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
113 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
36 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
86 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 ...
2
votes
1answer
59 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
0answers
86 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
90 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
143 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
36 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
54 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
43 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
80 views

Define and refine mesh around a hole

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

Error message for FEMStiffnessElements

I am trying to solve this pde numerically with Mathematica: ...
2
votes
1answer
87 views

Fighting the Current

I am working a problem I am working on. A boat start across a river at the point (c,0) and points its bow directly across the river to the point (0,0). The parameter a is the river current velocity, b ...
1
vote
1answer
72 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
637 views

Non-numerical value for a derivative on NDSolve function

I am trying to solve the following system of differential equations: ...
2
votes
0answers
28 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 ...
0
votes
0answers
38 views

Boundary Value Problem Errror [on hold]

I have a first order differential equation such as $\quad \quad d/dt (u[x,t]) = - u[x,t]\,u[x,t]$ with the boundary conditions $\quad \quad u[0, t] = 0,\ u[L, t] = 0$ where $x$ is between $0$ and ...
1
vote
1answer
96 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
60 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
65 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
103 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
94 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
50 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
144 views
2
votes
0answers
59 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
77 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
50 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
45 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
58 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
124 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
77 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
175 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
36 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 ...
1
vote
0answers
72 views

Linear System with Complex Eigenvalues

My students will need to do the following work by hand. \begin{align*} x_1'&=-\frac14x_1+2x_2,\quad x_1(0)=1\\ x_2'&=-8x_1-\frac14x_2,\quad x_2(0)=1 \end{align*} They set it up in matrix ...
1
vote
0answers
41 views
0
votes
0answers
41 views

Two identical expressions for ODE, two distinct result

I have a problem in solving ODEs: two identical expression provides me different answers! I have no idea what's going on, can any one give me some reason why the following two expressions are ...
0
votes
0answers
46 views

Phase Portraits

If possible I want to create several phase portraits like this: ...
7
votes
2answers
279 views

Click in a vector plot to plot several solutions of a system of differential equations

I am aware of the Locator button and I am aware of the Equation Trekker package, but they are not what I want to use. Here is what I specifically want to know how to do, if possible. Consider the ...
7
votes
3answers
278 views

Find the eigenvalues for an ODE

For example, say I have $y'' + \lambda y = 0$ and the endpoint conditions are $y'(0) = 0$ and $y'(\pi) = 0$. How can I find the values for $\lambda$ that for which there is a non-trivial ($y\neq0$) ...
0
votes
1answer
37 views

Simplify huge output or using the output without showing it in full [closed]

I'm trying to solve a system of differential equations. It works fine but Mathematica creates a huge output, which, when shown in full, results in a file size about 100 mb. Using Simplify doesn't work ...
-1
votes
0answers
56 views

How can I solve my differential equation?

I am using Dsolve to solve this PDE, but it does not work. Can anybody help me? My equation: $y'(x)^{1/N} + x\ \frac{d}{dx} (y'(x)^{1/N}) - (y/x)^{1/N} = - A P/(2 ...
2
votes
0answers
82 views

System of Partial differential equations

I am trying to solve numerically a system of 3 partial differential equations and I am facing a problem. My functions are f[x,t], ...