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

learn more… | top users | synonyms

2
votes
2answers
44 views
1
vote
1answer
59 views

Preventing complex term in a differential equation solution

I am solving the initial value problem: $$y'=\frac{t+1}{t(t+4)},\quad y(-1)=0$$ I believe the correct answer is $$y=\frac14\left[\ln(-t)+3\ln(4+t)-3\ln 3\right]$$ with an interval of existence ...
3
votes
1answer
97 views

Fick's Law over Implicit Regions

I'm trying to solve 2D Fick's law of diffusion from the boundaries of a triangle (future shapes will include more complex implicit regions). I'm able to model diffusion without time in complex ...
3
votes
1answer
83 views

Boundary sphere partial differential equation

I am trying to solve partial differential equation in spherical coordinates $(\theta,\phi)$,but I don't know how to properly include boundary conditions of $\theta$. For $\phi$ it is periodic, but ...
3
votes
3answers
96 views

Differential equation with a Heavisidetheta function running for ever

So I'm trying to get the solution of the following differential equation: ...
20
votes
2answers
305 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
1answer
180 views

Help solving the following non-linear differential equation

After spending several hours exploring different options, I still couldn't not figure out how to solve the following differential equations. Any suggestions would be highly appreciated. ...
1
vote
1answer
80 views

RSolve works slow and does not give an analytical solution for solving high order linear difference equations

RSolve@@{{a[n]-a[n-10]==101}~Join~Table[a[i+1]==101+10i,{i,0,9}],a[n],n} I want to get the exact form of general formulas, but ...
4
votes
0answers
37 views

Extraneous reaped data with NDSolve and WhenEvent

In exploring What is the range of values $x$ for which $f(x)$ is higher than $k$ over a given domain?, I came across the following strange behavior: ...
1
vote
1answer
62 views

Initial Value Problem with initial conditions as closed region

Does Mathematica have functionality to solve an Initial Value Problem when the initial conditions consist of a closed region (rectangle) instead of a point? That is, instead of initial conditions as ...
0
votes
0answers
42 views

How to calculate electronic Band structure of cristal [on hold]

I need a notebook to calcolate the band structure of a cristal, please can someone help me?
1
vote
2answers
62 views

Plotting solutions to ODE for continuously varying parameters

I am trying to plot the solution of an ODE with continuously varying one of its three parameters. (I just fixed two of them for simplicity.) Any suggestions? ...
0
votes
0answers
27 views

What means the definition F[t_?NumericQ] :=…? [duplicate]

I've come along a function defined in this way: F[t_?NumericQ] := NDSolve[{-u''[x] - u[x]/x == -t^2 u[x], u[x0] == x0, u'[x0] == 1}, u, {x, x0, x1}] What does ...
3
votes
2answers
63 views

Saving a plot as a pdf to use in Latex

I use the following code: sol = DSolveValue[{y'[t] == 1/(2 y[t] + 3), y[0] == 1}, y, t]; Plot[sol[t], {t, -10, 10}, ImageSize -> Small] Then I Ctrl+click the ...
1
vote
2answers
111 views

Solving a second order non-linear differential equation

I am trying to solve the following equation DSolve[{u''[t] + 4 u[t] + 0.1 u[t]^3 u'[t] ^2 == 0, u[0] == 1, u'[0] == 1}, u, t] Unfortunately Mathematica is ...
14
votes
2answers
175 views

Least effort to handle a point source inside the domain of PDE(s)

By point source I mean a constrained condition at one point inside the domain of PDE(s). For example: $$\frac{\partial ^2u(t,x,y)}{\partial t^2}=\frac{\partial ^2u(t,x,y)}{\partial ...
0
votes
0answers
45 views

NDSolve with a free parameter [closed]

I want to solve a simple 2-nd order ODE with a parameter ω using NDSolve and I want to plot the solution ...
2
votes
1answer
89 views

PDE: Solving Burgers' equation with initial value given by a self consistency equation

I would like to solve in Mathematica the well known inviscid Burgers' equation \begin{align} \begin{cases} u_t(x,t) + u(x,t)u_x(x,t)= 0 \\ u(x,0) = m(x) \end{cases} \end{align} where $$m(x) ...
2
votes
1answer
100 views

DSolve not returning a rule

I am trying to solve a PDE, but the DSolve is not returning a rule. How exactly can I get Mathematica to yield a solution? ...
8
votes
1answer
315 views

Modelling the effect of a structure on a “tsunami” (hyperbolic wave equation)

So, the hyperbolic wave equation can be quite easily solved in Mathematica like this: ...
0
votes
0answers
33 views

NDSolveValue and linearized differential equation [closed]

I'm trying to solve a linearized set of two differential equations and plot the solution using Mathematica and function NDSolveValue. I used the same function for nn-linearized problem and everything ...
0
votes
2answers
68 views

NDSolve ensemble of initial points

I want to illustrate how the differential equation depends on the initial conditions. First if all differential equations: ...
0
votes
0answers
52 views

Flux continuity with NDSolve

When NDSolve is applied to model mass diffusion (or heat flow) through different materials, is the continuity of flux condition automatically satisfied at the ...
1
vote
2answers
210 views

Trying to model Heat flow trough different materials with NDsolve

What I'm trying to achieve is model of the heat flow, in this case for the simplest 1D case,its relatively easy to do for the steady state case, but when I try to do it with NDsolve so I get the ...
7
votes
1answer
163 views

mathematica 10 not showing numerical solution of differential equations?

I just got the new mathematica version 10 and tried to solve the following system of differential equation. $$r^2\frac{d^2f}{dr^2} = 2f(1-f)(1-2f)+\frac{r^2}{4}h^2(f-1)$$ ...
-1
votes
1answer
85 views
0
votes
0answers
50 views

Increasing precision of NDSolve [closed]

I am solving a certain set of coupled ODE's with NDSolve. The equations contain several constants, which are chosen randomly according to a certain distribution with RandomVariate. I don't specify any ...
2
votes
2answers
362 views

Trying to solve a differential equation with a piecewise initial condition

I am trying to solve $$u_t=\frac{1}{4}u_{xx}$$ $-\infty<x<\infty,\: t>0$ With the initial condition $u(x,0)=\phi(x)$ where $$ \phi(x)= \left\{ \begin{array}{lr} 1 & ...
-2
votes
1answer
73 views

Ordinary Differential Equation Question [closed]

I was wondering whether someone might be able to point me in the right direction for this ODE that I am trying to solve? It is: $$\frac{du}{dx} = \frac{x}{s}-\frac{1}{2}-\frac{u}{x}$$ with $s$ ...
0
votes
0answers
50 views

Solving for a coordinate transformation for a rank 2 tensor

I am working on a project in general relativity, and I have a metric or rank 2 tensor $g_{ab}$ of the form, $$g =\left( \begin{array}{ccccc} f(x^a) & 0 & 0 & 0 & 0\\ 0 & -f(x^a) ...
6
votes
2answers
128 views

How to use WhenEvent with a vector ODE in NDSolve

I have an ODE system I'd like to specify as a vector equation in NDSolve. I'm not clear on how to use WhenEvent for a system ...
3
votes
1answer
189 views

Using WhenEvent for derivative of discontinuous function

I have a discontinuous function ($u(t)$, a square wave) and I would like WhenEvent to trigger when the signal goes high/low, i.e. when the value of $u(t)$ changes. ...
4
votes
2answers
2k views

How can I solve this PDE with initial conditions?

I wish to solve the following second order partial differential equation $$u_{tt}=c^2 u_{xx}$$ with the initial conditions $$u(x,0)=e^x,\quad u_t(x,0)=\sin x$$ In Mathematica, I evaluated the ...
2
votes
0answers
129 views

How to control pedestrians to enter the simulation region with random functions?

I am working on simulating crowds of a cross-typed region, given that pedestrians entering from 4 gates of north, east, west and south, ...
0
votes
0answers
81 views

Solving a system of ODEs with DSolve

I am trying to solve a system of ODEs using DSolve ...
1
vote
1answer
657 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? ...
8
votes
1answer
487 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: ...
0
votes
2answers
48 views

trouble with adding a legend to a plot

I am having trouble with adding a legend to a plot. this is my code,I tryed to use serval things,like ...
1
vote
2answers
162 views

NDSolve with Explicit, Implicit Euler and Trapezoidal method

I am using Mathematica 9.0 both on Linux and Windows and I would like to integrate the Van der Pol equation numerically using various techniques such as Explicit and Implicit Euler and Trapezoidal ...
7
votes
3answers
226 views
1
vote
1answer
118 views

Plot multiple solutions of a system of differential equations with different values of constant c by using NDsolve

I am traying to solve system of differential equations with different values of constant c then plot the solution with different values of the constant c. where c= 2.2758, 2.04822, 1.82064, 1.59306, ...
0
votes
0answers
63 views

Issue in NDSolve and unknown error

I try to solve a simple BVP: $A {v}''(t)+B v(t)=f(t)$ where $A, B$ — $5\times 5$ matrices, $f(t)$ — 5-dimentional vector-function with the use of NDSolve. Each component of $f(t)$ is a combination ...
2
votes
0answers
75 views

DSolve versus DSolveValue [closed]

I've just discovered the new command DSolveValue in Mathematica 10. Is this new command now the preferred instead of DSolve? Is it the better command to teach to students? Same question for ...
3
votes
2answers
103 views

Implement functions that depend on previous value in NDSolve

I want to numerically solve a system of differential equations in Mathematica, say for example $\frac{dx}{dt} = f(x,y,t) \\ \frac{dy}{dt} = g(x,y,t)$ for $x(t), y(t)$. However, the functions depend ...
2
votes
1answer
88 views

NDSolve and maximum number of steps reached

I am newbie at Mathematica but I need to solve differential equation so I took my chances and tried to use this powerful tool to solve this equation: $$\frac{d}{dx}\left([\cos(2\pi ...
1
vote
2answers
152 views

Help to numerically solve ODE

http://math.stackexchange.com/questions/912076/time-period-of-ode Trying to numerically compute and compare the time period of an oscillation with the analytical solution suggested by Robert Israel. ...
0
votes
1answer
38 views

To get a certain value of NDsolve of the solution [closed]

I need to solve the differential equations for different values. Once it is solved I want to take, for example, x[29] for each initial condition and plot it as a function of this initial conditions. I ...
0
votes
1answer
152 views

Cannot get specific value from NDSolve (multiple functions)

I am trying to solve six connected differential equations. This is my code: ...
5
votes
2answers
172 views

RegionPlot from NDSolve

I am having quite a headache using RegionPlot to see the region of acceptance of certain coupled differential equation. I shall elaborate and try to be as ...
4
votes
2answers
154 views

Solving a discontinuous differential-algebraic equation system for plasticity behaviour

I need to solve a discontinuous equation which is typical in theory of plasticity. For a simple case I get the following equation system (reformulated for numerical implementation): $s(t) = ...