Unlock access to all the studying documents.
View Full Document
Example: Cruise Control (8)
Then Equation 2 becomes
As we have just seen, the solution to Equation 3 can be written
sin2 2
2
2
gy
dt
dy
dt
yd −=++
Equation 3
−−= t
tdgtKty
0
)sin)(()(
Equation 4
Example: Cruise Control (9)
We know from a previous lecture that
are fundamental solutions to Equation 7. Substituting Equations 8
and 9 into Equations 5 and 6 results in
Substituting Equation 10 into Equation 4 leads to
)(
)()(
−−
−=− t
ettK
Equation 8
Equation 10
Example: Cruise Control (10)
Now
and integrating by parts
Recall now that the speed error so
)1(
1
0−=
ede
t
Example: Cruise Control (11)
In summary, an automobile in cruise
control mode transitioning from a
level roadway to an ascending
Note that the steady state error is zero.
Example: Cruise Control (12)
An engineering design decision:
What value to make ?
The larger is :
the smaller the maximum speed error
Example: Cruise Control (13)
Speed error as a function of time and
Example: Cruise Control (14)
Second Order Differential Equations
Another Approach to Solving Linear Time-
Invariant Nonhomogeneous ODEs
Another Solution Approach
Method of undetermined coefficients
It works for most input functions of interest.
Procedure for the
Undetermined Coefficients Method
Step 1: Guess a form for the solution based on the form of the input, adding
terms appropriately and using undetermined coefficients
Examples: input trial solution
Step 2: Substitute the trial solution into the ODE and try to solve for the
undetermined coefficients. If you find more equations than unknowns try
adding another term to your initial guess.
Procedure for the Trial and Error Method (2)
Step 3: If a solution that meets given initial conditions is not required
(i.e., if only the steady-state solution is needed) you can avoid
altogether the task of finding the fundamental solutions.
If a solution that meets given initial conditions is required and you
have found a solution that satisfies the nonhomogeneous