The function can also be used to compute solutions to differential equations. Unlike , it returns the solution as a list of rules of the form . Therefore, a replacement rule needs to be applied before extracting the expression for the solution. The replacement rule can be done with
. Then, extract the solution with , , or any other equivalent function.
For the given differential equation, the corresponding Wolfram Language code is: