New answers tagged differential-equations
2
votes
1
vote
Accepted
3D Parametric Plotting for N Charged Particles in a Nonuniform Electric Field
Your initial conditions are lists with 1 element, but numbers are expected. E.g. instead of x1[j][0] == pos0[[j, 1, ]] write x1[j][0] == pos0[[j, 1, 1]]
7
votes
Accepted
Matrix Integro-differential equation
The problem can easily be solved after reformulation to a system of ODEs. Let us start with
$$
\frac{d\rho}{dt}=-i[H_{0}(t),\rho(t)]-A^{2}\Big[H_{1},\int_{t1}^{t}e^{-B(t-s)}\Big(e^{-i\int_{s}^{t}H_{0}(...
1
vote
Why does DSolve give 1/0 on this first-order Riccati ODE?
Fyi, this has been fixed in 13.1. Now it does not give 1/0 but gives the correct solution.
The following is screen shot
2
votes
3
votes
Problem with a DAE and DiscreteVariables
One can keep differentiating until the DAE turns into an ODE:
...
7
votes
Accepted
Symbolic solution for steady-state heat equation i.e. Laplace equation inside cylinder
This post contains several code blocks, you can copy them easily with the help of functions here.
It's not too surprising to see DSolve failing on the problem, ...
3
votes
Heat Equation with Mobile Boundary
Since OP is having difficulty in understanding previous related posts, I'll solve the problem as a favor. But I won't explain much because there's nothing new in this problem compared with previous ...
3
votes
Solution on nonlinear pde with intial condtion
There are initial values missing.
For an example I assume the following initial values:
U[0, t] == 1.4, V[0, t] == 2
Then there should be a comma instead of a ...
6
votes
Solution on nonlinear pde with intial condtion
It produces an error.
You need boundary conditions. You only have initial conditions. For numerical solver, both are needed.
I put some below, but you need to put the correct ones as you know the ...
8
votes
Accepted
Error in Attempting Moving Boundary Fluid System
… why would the system be classified by NDSolveValue a differential-algebric system, since every variable has at least one differential term?
This isn't quite ...
2
votes
non-linear first ODE with boundary condition
This is the same idea as Nasser's, but my route yielded solutions in a slightly different form.
...
4
votes
Ploting solution to a differential equation with different parameters
Something to get you started,. You can use Manipulate
...
2
votes
non-linear first ODE with boundary condition
Here is my hand solution with the help of the computer
Solve
\begin{gather*}
\boxed{\frac{\left(y^{\prime}\right)^{2}}{y^{2}}-\frac{b y^{\prime}}{y}-\frac{k}{3 y^{2}}-\frac{f}{3}=0}
\end{gather*}
With ...
7
votes
How do I plot the Lorenz attractor inside an ellipsoid?
Unless I've done something wrong, it does not appear that the trajectories stay inside the given ellipsoid. The given ellipsoid can be rewritten as
$$
\frac{P}{b} x^2 + \frac{1}{b} y^2 + \left( z - \...
3
votes
Linear ODEs with NDSolve
I have a package for solving eigenvalue boundary value problems using the Compound Matrix Method with the Evans function, which I'll use here. The package is available on my GitHub (which has a ...
2
votes
why DSolve gives "Warning: one or more assumptions evaluated to False." when I am not using any assumptions in the call?
It looks like one of the internal steps of DSolve is running
...
6
votes
Accepted
NDEigensystem: 1D problem with discontinuous coefficients
Yes, it's possible, we just need to use the documented but seldom-used and (probably) confusing last syntax of NDEigensystem.
As discussed in
Position of ...
6
votes
Solve singular fourth order ODE
This is an incomplete answer, but perhaps you can combine it with the answer of @MichaelSeifert. It is more manual in a way, but perhaps allows you to understand where the numerical issues come from. ...
2
votes
How to solve 2D Heat equation on rectangle with NDSolve?
The code is not working, what is my mistake?
You had two minor mistakes.
Your Rectangle was wrong Rectangle[{0, a}, {0, b}]. ...
6
votes
8
votes
Accepted
Linear ODEs with NDSolve
This eigenvalue problem can be solved largely symbolically as follows. With the equations rationalized,
...
7
votes
Linear ODEs with NDSolve
Update
As mentioned by bbgodfrey and by Michael E2, the code I had proposed below only returns a trivial constant solution, as the following indicates:
...
4
votes
Solving this system of differential equation with NDSolve
I fixed the exp that @cvgmt noted, pulled τc and Ip out of ...
3
votes
How to Plot the solution of the heat equation on rectangle
u[x, y, t, 5, 5] is too small when t is large. Here we set {t, 0, 2}.
Replace ...
5
votes
How to Plot the solution of the heat equation on rectangle
A few observations.
It is generally better to use a fixed PlotRange rather than All for an animation so your scale is not ...
3
votes
Accepted
Why does NDSolve[] want to treat my equations as Delay Differential Equations?
Nice to have the ODEs and ICs separate, because it makes separate analyses easier:
...
0
votes
Why do two different Mathematica files with the same ODEs substituted with the same values give me different outputs?
The problem was that the numerical data values should be put right before the NDSolve command execution (not earlier)-then it can handle this really well. I dont know why it is such a difference for ...
4
votes
Accepted
Problem with a DAE and DiscreteVariables
As stated in the question, a[t] does not behave properly for the code in the question, which probably is a bug. Circumventing this problem can be accomplished with
<...
10
votes
Accepted
NDSolve for Laplace equation on disk is not working
3 issues here.
You've mixed up polar coordinates and Cartesian coordinates. Since the equation is defined in polar coordinates, the shape of domain of definition is no longer a ...
1
vote
1
vote
How to define a function of parameters of a DSolve output?
You can solve with the parameters directly:
...
4
votes
NDSolve for Laplace equation on disk is not working
It looks like the problem was with the periodic BC and JM's above showed how to handle this periodic BC.
This below shows that DSolve can also solve this ...
9
votes
Accepted
How to shoot backwards using the "Shooting Method"?
The "StartingInitialConditions" suboption sets the IC at x == 0.9, and with good values for the IC, a successful ...
1
vote
Plot3D in Mathematica a function
Another approach:
G[s_, t_] = Min[s, t] (Max[s, t] - 1);
Plot3D[G[s, t], {s, 0, 1}, {t, 0, 1}, PlotStyle -> Green]
13
votes
Phase Portrait on a Simplex
Here's another way (equations pulled from docs -- it's easier):
...
5
votes
4
votes
The solution for Sinh[] and Cosh[]
If we multiply the arbitrary constant C[1] by I, FullSimplify can do the job if passed the ...
4
votes
Accepted
Phase Portrait on a Simplex
Look what I got. Do not rush to accept the answer, look more carefully. You may need to add the equation of the simplex you are writing about to the plot for additional visualization. I can't help you ...
2
votes
How to put 2 or 3 NeumannValue conditions?
NeumannValue type boundary conditions may overlap, while DirichletCondition may not overlap. So something like this:
...
1
vote
Why do I see Part::partw error when using NDSolveValue?
This was a bug that's fixed in V13.0 (or earlier).
7
votes
Accepted
How does FindRoot decide if a solution has converged?
Turning my comment into an answer.
I am in a rush now, Here are the relevant literature references for the affine covariant Newton solver that is implemented as a method of ...
1
vote
If or Piecewise dependent coefficients in NDSolveValue
There are examples in the documentation that show how to do this: Have a look at the nonlinear (single material) model on the HeatTransferPDEComponent ref page. Concerning multi-materials you could ...
4
votes
Inactive form for PDE and symmetry
Up until version 13.0 the finite element method works with Cartesian coordinates. In 13.1 one can use a truncated cylindrical coordinate for axisymmetric PDEs. It's unlikely that something else will ...
2
votes
Accepted
NDEigensystem returns reversed list of eigenfuctions
As I pointed out in a comment above, this is because of an issue described in the documentation: Ordering of dependent variables. The simplest way to deal with this is to specify the "...
2
votes
3
votes
3
votes
Accepted
Plot3D in Mathematica a function
Try this:
T[s_, t_] :=
Piecewise[{{s (1 - t), 0 <= s <= t <= 1}, {t (1 - s),
0 <= t <= s <= 1}}]
Plot3D[T[s, t], {t, 0, 1}, {s, 0, 1}]
...
11
votes
Accepted
Is it a bug in DSolve?
Symbolic algebra is, generically speaking, only generically true: Sometimes the solution space as given by a formula is missing a hypermanifold that is contained in the closure of the solution space. ...
Top 50 recent answers are included
Related Tags
differential-equations × 6557numerical-integration × 1094
equation-solving × 923
plotting × 803
finite-element-method × 748
numerics × 532
nonlinear × 411
calculus-and-analysis × 279
physics × 273
warning-messages × 252
boundary-conditions × 242
symbolic × 210
parametric-functions × 160
boundary-condition-at-infinity × 158
interpolation × 133
eigenvalues × 130
performance-tuning × 110
manipulate × 107
bugs × 107
event-detection × 106
mathematical-optimization × 101
heat-equation × 101
fitting × 100
integral-equations × 91
finite-difference-method × 86