I have discovered the solution for the differential equation. I have:(adsbygoogle = window.adsbygoogle || []).push({});

DSolve[{y'[x] == 3 + 1/x}, y, x]

and got

{{y -> Function[{x}, 3 x + C[1] + Log[x]]}}

I'd like to make y a function of z, for example. I just would like to be able to use the function another time, evaluating y[2] for example.

I tried a[x_] = DSolve[{y'[x] == 3 + 1/x}, y, x] but failed

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Creating a function from DSolve output

Loading...

Similar Threads - Creating function DSolve | Date |
---|---|

MATLAB help: Interpolating an array of data to create a function | Dec 29, 2012 |

Create function from a vector in matlab | Oct 25, 2012 |

Creating your own function Determinant in Mathematica | Dec 14, 2011 |

Creating a general function handle | Aug 9, 2011 |

Create a function in MATLAB! | Jul 13, 2011 |

**Physics Forums - The Fusion of Science and Community**