is there a way to use previous calculated values of solve?
solving equations based on asymptotic expansion
$x^2+x-\varepsilon=0$
$x=x_0+\varepsilon x_1 + \varepsilon^2 x_2 + \varepsilon^3 x_3$
Clear["Global`*"]
Collect[Expand[(x0 + e x1 + e^2 x2 + e^3 x3)^2 + (x0 + e x1 + e^2 x2 +
e^3 x3) - e], e]
for some reason output isn't grouped in ascending/descending powers of e
x0 + x0^2 + e (-1 + x1 + 2 x0 x1) + e^2 (x1^2 + x2 + 2 x0 x2) + 2 e^5 x2 x3 + e^6 x3^2 + e^3 (2 x1 x2 + x3 + 2 x0 x3) + e^4 (x2^2 + 2 x1 x3)
but anyways, copying one by one
Solve[x0 + x0^2 == 0]
Solve[-1 + x1 + 2 x0 x1 == 0, x1]
Solve[x1^2 + x2 + 2 x0 x2 == 0, x2]
Solve[2 x1 x2 + x3 + 2 x0 x3 == 0, x3]
is there a way to solve successive lines of input using previously found?
Asymptotic*family of solvers, I wrote such a routine for differential equations here – Michael E2 Mar 22 '22 at 03:29ReplaceAll (/.)i.e.Solve[2 x1 x2 + x3 + 2 x0 x3 == 0, x3] /. Solve[x1^2 + x2 + 2 x0 x2 == 0, x2] /. Solve[-1 + x1 + 2 x0 x1 == 0, x1] /. Solve[x0 + x0^2 == 0, x0]– Artes Mar 22 '22 at 03:50DSolve[{y1''[x] + y0^2[x] == 0, y1[0] == 0, y1'[0] == 0}, y1[x], x] /. DSolve[{y0''[x] == 0, y0[0] == 1, y0'[0] == 0}, y0[x], x]? – 2Napasa Mar 22 '22 at 03:59