Qurak

Solve a differential equation

Guida pratica 12 passi, eseguiti in ordine in una sola sessione. Ogni passo è stato eseguito sul motore e l'output qui sotto è ciò che ha prodotto.

Passo 1
DSolve[y'[x] == x, y[x], x]
Output
{{y[x] -> x^2/2 + C[1]}}
Passo 2
solution = DSolve[y'[x] == x, y[x], x]
Output
{{y[x] -> x^2/2 + C[1]}}
Passo 3
f[x_] = y[x] /. solution[[1]]
Output
x^2/2 + C[1]
Passo 4
f[4]
Output
8 + C[1]
Passo 5
DSolve[{y''[x] == y[x], y[0] == 1, y'[0] == 1}, y[x], x]
Output
{{y[x] -> E^x}}
Passo 6
DSolve[y''[x] == y[x], y[x], x]
Output
{{y[x] -> E^x*C[1] + C[2]/E^x}}
Passo 7
DSolve[{y'[x] == z[x], z'[x] == -y[x], y[0] == 0, z[0] == 1}, {y[x], z[x]}, x]
Output
DSolve[{Derivative[1][y][x] == z[x], Derivative[1][z][x] == -y[x], y[0] == 0, z[0] == 1}, {y[x], z[x]}, x]
Passo 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]
Output
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]
Passo 9
solution  = DSolve[{y''[x] == y[x], y'[0] == 0}, y[x], x]
Output
{{y[x] -> E^x*C[1] + C[2]/E^x}}
Passo 10
g[x_] = y[x] /. solution[[1]]
Output
E^x*C[1] + C[2]/E^x
Passo 11
t[x_] = Table[g[x] /. C[1] -> j, {j, 1, 10}]
Output
{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}
Passo 12
Plot[t[x], {x, -2, 2}]
Output
-Graphics-

Funzioni usate

Ricette correlate

Tutte le ricette · Guida delle funzioni · Usa questo da un client MCP