Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [differential-equations]

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

4,466 questions
Filter by
Sorted by
Tagged with
150 views

How to use NDSolve with limited RAM?

How can I use NDSolve when running out of RAM? The code I am implementing: ...
45 views

Using MinValue with NDSolve

A simplified example looks like this. The basic idea is to maximize fHelper by adjusting \[Alpha] for each ...
63 views

Mathematica 12: avoid crashing when using NDSolve on a large domain

I have a set of coupled PDEs, that I'd like to solve numerically using Mathematica (11.3 or 12.0). The problem is, that I need to solve in on a large domain to make sure that there are no boundary ...
50 views

How do I formulate a Dirichlet boundary condition for which the boundary depends on the other variable?

I am trying to solve the Poisson equation on a cylindrical grid. $$\frac{1}{r^2} \frac{\partial}{\partial r} r^2 \frac{\partial f(r, \theta)}{\partial r} = n(r, \theta)$$ Analytically, there is ...
53 views

Help implementing Magnus Expansion

The Magnus expansion is a tool to approximate solutions to first-order linear differential equations (the Wikipedia page is quite instructive and concise) - it's particularly useful because all orders ...
71 views

Numerical solution to Differential equation

I want to get the differential solution numerically. I used wolfram alpha. here is the link. I tried this code on the Mathematica file. ...
94 views

Why DSolve gives different answer depending on order of variables: $u(x,t)$ vs. $u(t,x)$?

Using V12 on windows 10. I would think it should not matter if one uses $u(x,t)$ or $u(t,x)$ in the specification of the PDE, as long as everything else is consistent (keeping the initial condition ...
75 views

How Does StreamPlot Handle Singularity or Indeterminates?

I will like to know how StreamPlot finds its way around singular/indeterminate values. Actually, I was thinking of using ...
378 views

Can NDSolve address spherical gravitational collapse?

As far as I know spherical gravitational collapse -of central importance to theoretical physics- is thought to be out of the scope of Wolfram Mathematica. However there are cases, as in this article,...
225 views

Problems with solving PDEs

I am using NDSolve to solve the two equations: ...
71 views

DSolve returns unevaluated(I need a closed or numerical solution for this system and plot solution)

I am trying to find a solution to this system of differential equations but the program gives the same output without any messages. I would like help. Please find the Mathematica code posted here. a ...
61 views

Next maximum plot with results from NDSolve

I want to produce a Next-maximum-plot, i.e., I want to plot all local maxima $m_{i+1}$ against the local maximum $m_i$ in order to check for chaotic behavior. In particular, I have the following code:...
94 views

82 views

Solving system of PDEs with NDSolve

I am trying to solve a system of coupled PDEs with zero-flux boundary conditions on a large domain. I have two problems: 1) Is there a possibility to use results of NDSolve as inititial conditions? ...
40 views

Plotting the solutions of parametric NDSOLVE[] as a function of its parameters

I am trying to solve a 2 set of coupled differential equations one using parametricndsolve and other using *ndsolve . So far I am successful in solving these equations. The solution I found by using ...
66 views

Solving a system of linear differential equations [closed]

I am trying to solve a system of linear differential equations, and I am following the instructions given on the Wolfram Alpha page. I am not getting the desired output, as can be seen below: In the ...
47 views

Solution of non linear coupled equations by using shooting, block and StartingInitialConditions

My code is not giving out put. Moreover i do not know how to copy paste this code from my note book. is there any easiest way to paste here. I m plotting graph for the different values of R. I have ...
95 views

Solving a stiff nonlinear ODE system

The system I am trying to solve is simple, but looks pretty stiff and I have unsuccessfully tried to solve it with StiffnessSwitching. It is the following one: <...
153 views

How to Solve $y'(x)=x\ln(y(x))$ with $y(1)=1$ using DSolve

The solution to $y'=x \ln(y)$ with initial conditions $y(1)=1$ is $y=1$. How to persuade DSolve to obtain this solution? ...
141 views

One dimensional heat exchange on a ring: Periodic solution

Subsequent I consider the transient heat exchange problem of a ring in polar coordinates. The ring is heated in a small range 0<\[CurlyPhi]<20° and cooled ...
48 views

Solving coupled differential equations with 4 unknown constants

Recently I just started Mathematica for solving differential equations. Then I tried following 7 coupled differential equations with four unknown constants $(a, b, c, d)$. But after completion of ...
70 views

Solving 2D Integro-Differential equation numerically

The following problem was given to me by a friend, so I can't really guaranty that a solution exists, but if, I certainly can't find it myself... Let us consider the following Integro-differential ...
46 views

NDSolve 1/0 error

I'm having trouble to solve a differential equation with NDSolve. Does anyone knows how can I get rid of this problem? ...
36 views

DSolve 4 variables function error

Mathematica version: 12.0.0.0 I'm trying to solve 2 basic differential equations; ...
75 views

Getting an empty plot after plotting the solution of a differential equation

I am facing problem to plot this ...
70 views

Using ParametricNDSolve for coupled differential equations

I am trying to solve two coupled equations. I have one parameter, namely c, in the program given below. What I am trying to find is the solution for the coupled ...
127 views

Understanding PeriodicBoundaryConditions

Every thing works fine in a simple example with periodic boundary condition u[ 2,y]==u[0,y] from documentation of ...
86 views

Problem with complex eigenvalues in periodic Sturm-Liouville problem

I'm having trouble using NDEigenvalues to obtain the first few eigenvalues for a differential operator on the circle of radius one-half. \$\qquad Lf(x) = f''(x)+ (-...
221 views

Controlling dynamic time step size in NDSolveValue

Statement of problem I'm writing a script to calculate the temperature of a 2D system with time-dependent heat deposition. The heat deposition is a square wave pulse of duration w = 10^-6 seconds, ...
190 views

Finite element for coupled 1D and 3D equations

This is a renewed post for this question, since the old post is already 2 years old and the problem hasn't been solved completely. The problem is to solve heat conduction with robin type boundary ...
167 views

How to increase NDSolve accuracy for 2nd order ODE?

My attempt to NDSolve a 2nd order nonlinear ODE ...
62 views

NDSolve: Boundary conditions not numerical

I am trying to solve coupled differential equations using NDsolve. I am getting an error which says Boundary conditions not numerical. I am not sure about my mistake. Can I get some help? My code ...
86 views

How do I truncate an interpolating function?

I have a very large interpolating function and want access the function at one point in time. I am running out of RAM running ...
77 views

Help me to fixe the errors in my code [closed]

This code does not give me the expected plot, so please help me. ...
57 views

NDSolve 3D Poisson PDE (cylindrical coordinates)

I try to model the threedimensional heating problem of a flat cylinder which is heated along the circumference and cooled along the face side. The temperature ...
50 views

How to apply the utility Packages for Numerical Differential Equation Solving

I have solved two coupled equations with {Solf, Solg} = NDSolveValue[eqns, {f, g}, {x, 0, L}, {t, 0, tmax}] and want to extract the computational grid ...