How Do You Plot Solutions and Understand Coefficients in Differential Equations?

  • Thread starter Thread starter dillonmhudson
  • Start date Start date
  • Tags Tags
    Diff eq
Click For Summary
SUMMARY

This discussion focuses on solving initial value problems for differential equations and plotting their solutions. The equations addressed include dy/dt=-y+5, dy/dt=-2y+5, and dy/dt=-2y+10, with solutions derived as y=5+(y_0-5)e^t, y=5/2+(y_0-5/2)e^(2t), and y=5+(y_0-5)e^(2t) respectively. Additionally, the method of undetermined coefficients is explored for the equation y'+2y=2t+3sin(t), leading to a general solution involving terms like At+B+Ccos(t)-Dsin(t). The discussion highlights the importance of understanding the coefficients in the context of differential equations.

PREREQUISITES
  • Understanding of first-order linear differential equations
  • Familiarity with initial value problems
  • Knowledge of the method of undetermined coefficients
  • Basic skills in plotting functions and interpreting graphs
NEXT STEPS
  • Learn how to plot solutions of differential equations using Python's Matplotlib
  • Study the method of undetermined coefficients in greater detail
  • Explore the stability of solutions for linear differential equations
  • Investigate the application of differential equations in real-world scenarios
USEFUL FOR

Students studying differential equations, educators teaching calculus, and anyone interested in mathematical modeling and analysis of dynamic systems.

dillonmhudson
Messages
47
Reaction score
0

Homework Statement


Solve each of the following initial value problems and plot solutions for several values of y_0.
a) dy/dt=-y+5, y(0)=y_0
b) dy/dt=-2y+5, y(0)=y_0
c) dy/dt=-2y+10, y(0)=y_0


Homework Equations


-


The Attempt at a Solution


I have solved all of the equations for general solutions but am having trouble plotting them (these are correct in the back of the book)
a) y=5+(y_0-5)*e^t
b) y=5/2+(y_0-5/2)*e^2t
c) y=5+(y_0-5)*e^2t

TIA
 
Physics news on Phys.org
1. Homework Statement
Use method of undetermined coefficients to find the general solution of the given equation:
y'+2y=2t+3sin(t)
y=ce^-2t+Y(t) (where Y(t) is picked)
Solutions manual says: Y(t)=At+B+Ccost(t)-Dsin(t)

so that,
y=ce^-2t+At+B+Ccos(t)-Dsin(t)
I understand the "At+B" but why is it "Ccos(t)-Dsin(t)" and why is there a minus?

Thanks again
 

Similar threads

Replies
2
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
9
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 5 ·
Replies
5
Views
5K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 5 ·
Replies
5
Views
2K