Qurak

D solve initial and boundary value problems ivps with piecewise coefficients

Tutorial 15 stappen, op volgorde uitgevoerd in één sessie. Elke stap is tegen de engine uitgevoerd en de uitvoer hieronder is wat hij opleverde.

Stap 1
PiecewiseExpand[UnitStep[x] + Max[x, x ^ 2]]
Uitvoer
Max[x, x^2] + UnitStep[x]
Stap 2
DSolve[y'[x] == UnitStep[x], y, x]
Uitvoer
{{y -> Function[{x}, C[1] + Integrate[UnitStep[x], x]]}}
Stap 3
eqn = {y'[x] == UnitStep[x], y[0] == 1};

Geen uitvoer - deze stap zet iets klaar voor de volgende.

Stap 4
sol = DSolve[eqn, y, x]
Uitvoer
{{y -> Function[{x}, 1 - Integrate[1, 0] + Integrate[UnitStep[x], x]]}}
Stap 5
Plot[y[x] /. sol, {x, -3, 3}]
Uitvoer
-Graphics-
Stap 6
Simplify[eqn /. sol[[1]], x  > 0 || x  < 0]
Uitvoer
{Derivative[1, Function[{x}, 1 - Integrate[1, 0] + Integrate[UnitStep[x], x]], x] == UnitStep[x], True}
Stap 7
sol = DSolve[ {y'[x] + Max[x, 1] y[x] == 0, y[0] == 1}, y[x], x ]
Uitvoer
{{y[x] -> E^(Integrate[1, 0] - Integrate[Max[1, x], x])}}
Stap 8
Plot[y[x] /. sol, {x, -3, 3}]
Uitvoer
-Graphics-
Stap 9
FinalSol  = DSolve[ {y'[t] == If[ t ≤ 2, y[t], -y[t] / 2], y[0] == 1}, y, t]
Uitvoer
DSolve[{Derivative[1][y][t] == If[t <= 2, y[t], -(y[t]/2)], y[0] == 1}, y, t]
Stap 10
SolFromMinusInfinityToTwo = DSolve[{y'[t] == y[t], y[0] == 1}, y, t]
Uitvoer
{{y -> Function[{t}, E^t]}}
Stap 11
SolFromTwoToInfinity = DSolve[{y'[t] == -y[t] / 2, y[2] == E ^ 2}, y, t]
Uitvoer
{{y -> Function[{t}, E^(3 - t/2)]}}
Stap 12
eqn = {y''[t] + y[t] == Piecewise[{{-1, t < 0}, {1, t < 1}, {Sin[t], t < 2}}], y[0] == 1, y'[0] == 1};

Geen uitvoer - deze stap zet iets klaar voor de volgende.

Stap 13
sol = DSolve[ eqn, y, t ]
Uitvoer
DSolve[{y[t] + Derivative[2][y][t] == Piecewise[{{-1, t < 0}, {1, t < 1}, {Sin[t], t < 2}}, 0], y[0] == 1, Derivative[1][y][0] == 1}, y, t]
Stap 14
eqn = {y''[x]  - Clip[x] * y[x] == 0, y[0] == 0, y'[0] == -1};

Geen uitvoer - deze stap zet iets klaar voor de volgende.

Stap 15
DSolve[eqn, y, x]
Uitvoer
DSolve[{-(Clip[x]*y[x]) + Derivative[2][y][x] == 0, y[0] == 0, Derivative[1][y][0] == -1}, y, x]

Gebruikte functies

Gerelateerde recepten

Alle recepten · Functiereferentie · Gebruik dit vanuit een MCP-client