Questions tagged [dsolve]

69 questions
0
votes
1 answer

Maple. Dsolve and functions

I have a differential equation that my program solves: p := dsolve({ic, sys}, numeric, method = rosenbrock); After solving we have the following: print(p(10)); [t = 10., alpha(t) = HFloat(0.031724302221312055), beta(t) =…
0
votes
0 answers

How to solve system of mutually dependent ODEs like this using matlab or simulink?

I have a system of ODEs of this form; Yi=2*Yi*(Y(i-1)-Y(i+1))-Yi; i=1,2,...n-1; Please note i,i-1 and i+2 with Y are not index;but subscripts since I can't type subscripts here. Y(i-1) is known for only Yi(i=1) and Y(i+1) is known for…
0
votes
0 answers

Maple numeric dsolve. Maxtime of result

I have a system of differential equations. I solve it with numerical dsolve: sol := dsolve({First, Fourth, Second, Third, iA(0) = 0, iB(0) = 0, theta(0) = 0, (D(theta))(0) = 0}, numeric, vars,maxfun=100000): First, Second, Third, Fourth --- are…
Sergey Kanaev
  • 570
  • 5
  • 18
0
votes
1 answer

Matlab: how to use an array in dsolve function?

I have an ODE system of two equations, but want to minimize it with using just one equation with the result of the other. 1) t=linspace(0,2,3); syms x(t) y(t); inits='x(0)=2,y(0)=0'; [x,y]=dsolve('Dx=y','Dy=(y*2)-x', inits) x = 2*exp(t) -…
0
votes
2 answers

initial values for Dsolve in matlab

Suppose that you have a differential equation and you want to solve that with dsolve function in matlab but at first you must ask the user for initial values and according to what he would input the program gives the answer. How should I do that?
0
votes
2 answers

DSolve for a specific interval

I am trying to solve an D-equation and do not know y[0], but I know y[x1]=y1. I want to solve the DSolve only in the relevant xrange x=[x1, infinitny]. How could it work? Attached the example that does not work dsolv2 = DSolve[{y'[x] == c*0.5*t12[x,…
0
votes
1 answer

How to solve a Differential Equation with DSolve with Function Coefficient?

Suppose I have v[x_] = Square[1.453 Sech[x + 1]] + I Sech[x + 1] Tanh[x + 1] And I have to solve the equation: mu1 u1[x] - u1''[x] - v[x] u1[x] == 0 for u1[x]. The conditions that are given are: u1[-2] == 1, u1'[-2] == 0 . I have tried DSolve…
-1
votes
1 answer

Accounting for a proportionality constant to use dsolve in Python

I have the differential equation: dP/dt = kx(t) where k is a proportionality constant. I am trying to use dsolve to find a general solution, but I don't know how to account for that k in the code. Below is my code, which technically works, but…
-1
votes
1 answer

dsolve MATLAB :Explicit solution could not be found

I want to solve the differential equation. MATLAB shows warning: clear all syms x f(x) theta eq = (-6*x+(-7+theta)*f*diff(f,x))*(1+diff(f,x)^2)+x*f*(diff(f,x,x))==0 cond = f(0)==1 dsolve(eq,cond) Warning: Explicit solution could not be found. >…
1 2 3 4
5