THE PROBLEM :(adsbygoogle = window.adsbygoogle || []).push({});

y(t) = e^(-t)*sin(t^2);

with t0 = 0 and T = 3.14159. Find y_0, and use it to deduce the corresponding expression

for f(t, y) (Your f should have both a t and a y in it. Simplify it to find the y!).

This is for a matlab project. I've solved this differential equation (which we get from the derivative of the problem above) , but apparently there's a way to solve it where we get y on the right hand side of the equation (and still have t's). This is the only way the code will work in matlab.

MY ATTEMPT: basically I took the derivative of y=e^(-t)*sin(t^2) to get

y'=-e^(-t)[sin(t^2)+(2t)cos(t^2)]

You then inegrate to get the original formula plus a constant

y=e^(-t)*sin(t^2)+C

Now if we apply the inital condition y(0)=0, we get the original equation. Again.

y=e^(-t)*sin(t^2)

This is not correct. What am I missing?

PS, if you want to see my code and think that will help I have that as well. Just ask. Thanks

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

Dismiss Notice

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!

# MATLAB Differential equation for matlab

Loading...

Similar Threads for Differential equation matlab | Date |
---|---|

MATLAB Sovling Bernoulli's differential equation in matlab? | Apr 3, 2018 |

MATLAB Is MATLAB better for numerical simulation | Jan 16, 2017 |

MATLAB Matlab for differential equations | May 24, 2014 |

Coupled 1st order differential equations in matlab | May 1, 2014 |

MATLAB Differential Equation formulation (and execution in matlab) problem | Apr 10, 2013 |

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