Qurak

D solve working with d solve working with dsolvevalue

Tutorial 8 steps, run in order in one session. Every step was executed against the engine and the output below is what it produced.

Step 1
DSolveValue[y'[x] + y[x] == a Sin[x], y[x], x]
Output
C[1]/E^x + (a*(-Cos[x] + Sin[x]))/2
Step 2
sol = DSolveValue[{y'[x] + y[x] == a Sin[x], y[0] == 0}, y, x]
Output
Function[{x}, a/(2*E^x) + (a*(-Cos[x] + Sin[x]))/2]
Step 3
{y'[x] + y[x] == a Sin[x], y[0] == 0} /. y -> sol//Simplify
Output
{(a/E^x + 2*Derivative[1, Function[{x}, a/(2*E^x) + (a*(-Cos[x] + Sin[x]))/2], x] - a*Cos[x] + a*Sin[x])/2 == a*Sin[x], True}
Step 4
Plot[Table[sol[x] /. {a -> i}, {i, 7}], {x, -2, 10}]
Output
-Graphics-
Step 5
DSolveValue[{y''[x] + y[x] == 0, y[0] == 0, y'[0] == 1}, y[3], x]
Output
DSolveValue[{y[x] + Derivative[2][y][x] == 0, y[0] == 0, Derivative[1][y][0] == 1}, y[3], x]
Step 6
DSolveValue[{y''[x] + y[x] == 0, y[0] == 0, y'[0] == 1}, y'[x], x]
Output
DSolveValue[{y[x] + Derivative[2][y][x] == 0, y[0] == 0, Derivative[1][y][0] == 1}, Derivative[1][y][x], x]
Step 7
DSolveValue[{y'[x] + y[x] == Sin[x], y'[0] ^ 2 == 1}, y[x], x]
Output
DSolveValue[{y[x] + Derivative[1][y][x] == Sin[x], Derivative[1][y][0]^2 == 1}, y[x], x]
Step 8
DSolve[{y'[x] + y[x] == Sin[x], y'[0] ^ 2 == 1}, y[x], x]
Output
DSolve[{y[x] + Derivative[1][y][x] == Sin[x], Derivative[1][y][0]^2 == 1}, y[x], x]

Functions used

Related recipes

All recipes · Function reference · Use this from an MCP client