Mathematica DSolve output with unexpected parameters

  • Thread starter Thread starter CAF123
  • Start date Start date
  • Tags Tags
    Output Parameters
AI Thread Summary
The discussion revolves around using DSolve in Mathematica to solve a differential equation, specifically x*y'[x] == -b0*y[x]^2 - b1*y[x]^3. The output generated includes an inverse function, which confuses the user due to the presence of symbols like #1 and &. It is clarified that these symbols are part of Mathematica's pure function syntax, and the documentation is recommended for understanding them. The inverse function is explained as the solution when a closed-form expression is not available. Users are encouraged to visualize the solution by plotting the function to better understand its behavior.
CAF123
Gold Member
Messages
2,918
Reaction score
87
I'm trying to solve a relatively simple equation with DSolve in Mathematica. The equation I'm trying to solve along with the output from mathematica is shown
Code:
In[1]:=DSolve[x*y'[x] == -b0*y[x]^2 - b1*y[x]^3, y[x], x]
Out[1]:= 
{{y[x] -> 
   InverseFunction[-((b1 Log[#1])/b0^2) + (b1 Log[b0 + b1 #1])/b0^2 - 
       1/(b0 #1) &][C[1] - Log[x]]}}

This output is more or less useless to me because a) I don't know what #1 or & means in this context and b) I don't understand why it returns the inverse function and how I can then proceed to obtain the function. Can anyone illuminate me?

Thanks!
 
Physics news on Phys.org
CAF123 said:
I don't know what #1 or & means in this context
Did you check the documentation? When you don't know what something means then the documentation is the best place to start:
http://reference.wolfram.com/language/tutorial/PureFunctions.html

CAF123 said:
I don't understand why it returns the inverse function and how I can then proceed to obtain the function.
The inverse function is the solution. The inverse function is itself a function, it is used in certain circumstances when there is not a closed form expression. For example, if you need the inverse of x^2 then the inverse function is Sqrt[x], but when there is no nice expression then it just leaves it as the inverse function.

If you want to see how the function behaves, just plot it.
 

Similar threads

Replies
1
Views
3K
Replies
2
Views
2K
Replies
1
Views
2K
Replies
1
Views
2K
Replies
1
Views
2K
Replies
1
Views
2K
Replies
13
Views
2K
Replies
5
Views
3K
Replies
4
Views
2K
Back
Top