System of Differential Equations

AI Thread Summary
The discussion focuses on solving a system of differential equations where the variable D changes with respect to time. The initial approach involved treating D as constant, leading to non-real numbers in calculations when incorporating a second differential equation. Adjustments were made by reducing the step size and constants, which resolved the issue of generating valid numerical outputs. There is uncertainty regarding the method for plotting results, particularly the application of slope increments without a direct time term in the differentials. The integration technique suggested involves using the formula f(t + Δt) = f(t) + f'(t) Δt for accurate results.
confused student
Messages
2
Reaction score
0

Homework Statement


upload_2019-2-24_17-10-45.png

(It should be noted that the actual problem has specific values associated with a, b, and c. However, at this point I'm trying to find a method to solve the problem rather than a specific solution).

Homework Equations


upload_2019-2-24_17-10-38.png


The Attempt at a Solution


When I was trying to solve this initially, I didn't realize that D changed with respect to t; for that reason my solution only applies for when D is constant. I calculated dv/dt with a constant D and multiplied that slope by small increments of t in order to get values of v. I know there are more efficient methods to do numerical integration like the Runge Kutta method, but I was trying to blow through the problem without them. My excel sheet started giving non real numbers when I added in the second differential equation (dD/dt), so I'm really stuck. How should I go about solving this with the additional differential equation? Thank you in advance for any assistance!
upload_2019-2-24_17-10-56.png
 

Attachments

  • upload_2019-2-24_17-9-50.png
    upload_2019-2-24_17-9-50.png
    23.3 KB · Views: 321
  • upload_2019-2-24_17-10-38.png
    upload_2019-2-24_17-10-38.png
    6.5 KB · Views: 544
  • upload_2019-2-24_17-10-45.png
    upload_2019-2-24_17-10-45.png
    18.9 KB · Views: 697
  • upload_2019-2-24_17-10-56.png
    upload_2019-2-24_17-10-56.png
    33.9 KB · Views: 579
Physics news on Phys.org
Hello and :welcome:
confused student said:
started giving non real numbers
What does that look like, imaginary numbers ? Or just error indications ?

Can happen if D becomes negative. I would first try a smaller value for ##a## and/or a smaller step size
 
  • Like
Likes confused student
So I kept fiddling with it, and the problem was that D changed too quickly; I made my step size smaller and made my constants smaller. That generated actual numbers. One thing I'm still not sure of is my method to generate the plots. Does it make sense to multiply the slope by small increments of t if there is no t term in the differentials?
 
There is a ##dt## in the denominator, I should hope ?
What you do is you integrate: ##f(t+\Delta t) = f(t) + f'(t) \Delta t##
 

Similar threads

Back
Top