I have an equation I am solving with Mathematica:(adsbygoogle = window.adsbygoogle || []).push({});

In:

DSolve[y''[t] +

Subscript[\[Omega], c]^2 y[

t] == -Subscript[\[Omega], c]^2 Subscript[v, d]*t +

Subscript[\[Omega], c]*Subscript[v, 0], y[t], t]

Out:

{{y[t] ->

C[2] Cos[t Subscript[\[Omega], c]] +

C[1] Sin[t Subscript[\[Omega], c]] + (

Subscript[v, 0] - t Subscript[v, d] Subscript[\[Omega], c])/

Subscript[\[Omega], c]}}

I would like to replace the two constants of integration(C[1], C[2]) with two chosen variables

If I include this with the DSolve command:

{C[1] -> (Voy/omega), C[2] -> ((Voy-Vd)/omega)},

it returns that I can not use these for variables.

I have also found a GeneratedParameters-> function, but it does not work either,.. and if I'm correct, the GeneratedParameters-> Module{C[1], C[2]..&} function is only to ensure that C[] values are all unique, and does not change their representation.

I am also wondering how to change the subscript of Vo into Voy, Mathematica is not letting me do this.

Again, any help would be appreciated

Thanks

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

Join Physics Forums Today!

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

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

# Dsolve: assigning constants of integration and subscripts

Loading...

Similar Threads - Dsolve assigning constants | Date |
---|---|

Mathematica DSolve output with unexpected parameters | Nov 20, 2017 |

[Matlab] Subscripted assignment dimension mismatch. | Oct 27, 2013 |

Mathematica's DSolve with unspecified constant parameters | Mar 7, 2012 |

Creating a function from DSolve output | Jun 18, 2010 |

Mathematica DSolve | Feb 28, 2010 |

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