How Can I Extract Function Expressions from a DSolve Solution in Mathematica?

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 1K views
Qubix
Messages
82
Reaction score
1
Member warned for not using posting template
I have a very simple issue with Mathematica, but I can't seem to find an answer for it.

I solved an equation with DSolve, and I got a result as an array of the following type:

Solution = { A11 -> Function[ {t} , expression1] , A22 ->Function[ {t}, expression 2] , etc }

Now I want to define a matrix with elements {{A11, A12},{A21, A22}} and to give these elements the values for expression1, expression 2, etc, essentially to put those functions in a matrix:

{{ expression 1, expression 2},{ expression 3, expression 4}}

What I tried so far is to use R11 = {A11} /. Solution[[1]] , but it gives R11 the value Function [ {t} , expression 1] and not expression 1.

How can I solve this issue?
 
Physics news on Phys.org