I dont know how to integrate a function with variables depending on time
Show older comments
I have a function
syms theta(t)
fmov(t) = (2943*sin(theta(t)))/200 - (27*sin(2*theta(t))*diff(theta(t), t)^2)/4 + (3*(9*cos(theta(t))^2 + 2)*diff(theta(t), t, t))/2
Which I want to integrate twice respect to time in order to obtain a function with just theta(t) and t as variables.
And I only have the min and max values of theta(t). It is an angle and range is from 60º until 0º.
I dont know what the final time will be and starting time is 0.
Can anyone help me?
3 Comments
Dyuman Joshi
on 26 Jan 2024
If you want to get a definite solution, boundary values will be required. Which values are to be used for that?
I have a function
fmov(t) =
(2943*sin(theta(t)))/200 - (27*sin(2*theta(t))*diff(theta(t), t)^2)/4 + (3*(9*cos(theta(t))^2 + 2)*diff(theta(t), t, t))/2
fmov(t) is a given function of t and it equals the expression
(2943*sin(theta(t)))/200 - (27*sin(2*theta(t))*diff(theta(t), t)^2)/4 + (3*(9*cos(theta(t))^2 + 2)*diff(theta(t), t, t))/2
, so e.g.
sin(t) = (2943*sin(theta(t)))/200 - (27*sin(2*theta(t))*diff(theta(t), t)^2)/4 + (3*(9*cos(theta(t))^2 + 2)*diff(theta(t), t, t))/2
for fmov(t) = sin(t) ?
?
John D'Errico
on 26 Jan 2024
This is a second order nonlinear differential equation, where theta(t) is the unknown function. You generally can't just integrate it twice. Instead, this is why entire courses and sequences of courses are taught about how to solve differential equations. Since the ODE is not at all in a standard form, I have a funny feeling there will be no analytical solution. And that means only a numerical solution is probably an option. Since it is second order, you will need two initial values or a pair of boundary values. Regardless, two pieces of information will need to be provided by you. Tools like ODE45 or a bvp solver will be necessary.
Accepted Answer
More Answers (0)
Categories
Find more on Numerical Integration and Differential Equations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


