Qurak

Solve a differential equation

Guide pratique 12 étapes, exécutées dans l'ordre dans une même session. Chaque étape a été exécutée sur le moteur et la sortie ci-dessous est ce qu'elle a produit.

Étape 1
DSolve[y'[x] == x, y[x], x]
Sortie
{{y[x] -> x^2/2 + C[1]}}
Étape 2
solution = DSolve[y'[x] == x, y[x], x]
Sortie
{{y[x] -> x^2/2 + C[1]}}
Étape 3
f[x_] = y[x] /. solution[[1]]
Sortie
x^2/2 + C[1]
Étape 4
f[4]
Sortie
8 + C[1]
Étape 5
DSolve[{y''[x] == y[x], y[0] == 1, y'[0] == 1}, y[x], x]
Sortie
{{y[x] -> E^x}}
Étape 6
DSolve[y''[x] == y[x], y[x], x]
Sortie
{{y[x] -> E^x*C[1] + C[2]/E^x}}
Étape 7
DSolve[{y'[x] == z[x], z'[x] == -y[x], y[0] == 0, z[0] == 1}, {y[x], z[x]}, x]
Sortie
DSolve[{Derivative[1][y][x] == z[x], Derivative[1][z][x] == -y[x], y[0] == 0, z[0] == 1}, {y[x], z[x]}, x]
Étape 8
DSolve[{x'[s] == Cos[t[s]], y'[s] == Sin[t[s]], t'[s] == s, x[0] == 0, y[0] == 0, t[0] == 0}, {x[s], y[s], t[s]}, s]
Sortie
DSolve[{Derivative[1][x][s] == Cos[t[s]], Derivative[1][y][s] == Sin[t[s]], Derivative[1][t][s] == s, x[0] == 0, y[0] == 0, t[0] == 0}, {x[s], y[s], t[s]}, s]
Étape 9
solution  = DSolve[{y''[x] == y[x], y'[0] == 0}, y[x], x]
Sortie
{{y[x] -> E^x*C[1] + C[2]/E^x}}
Étape 10
g[x_] = y[x] /. solution[[1]]
Sortie
E^x*C[1] + C[2]/E^x
Étape 11
t[x_] = Table[g[x] /. C[1] -> j, {j, 1, 10}]
Sortie
{E^x + C[2]/E^x, 2*E^x + C[2]/E^x, 3*E^x + C[2]/E^x, 4*E^x + C[2]/E^x, 5*E^x + C[2]/E^x, 6*E^x + C[2]/E^x, 7*E^x + C[2]/E^x, 8*E^x + C[2]/E^x, 9*E^x + C[2]/E^x, 10*E^x + C[2]/E^x}
Étape 12
Plot[t[x], {x, -2, 2}]
Sortie
-Graphics-

Fonctions utilisées

Recettes connexes

Toutes les recettes · Référence des fonctions · Utiliser ceci depuis un client MCP