Skip to main content Accessibility help
×
Hostname: page-component-78c5997874-dh8gc Total loading time: 0 Render date: 2024-11-09T19:16:14.977Z Has data issue: false hasContentIssue false

21 - Solving second-order differential equations

Published online by Cambridge University Press:  20 October 2009

Get access

Summary

In this chapter we shall first reflect upon the procedure for solving second-order differential equations numerically, just as we did with first-order equations. Indeed, the obvious method is closely similar. For simplicity, we shall focus on the oscillator equation (20.6). Again we shall temporarily disregard the fact that our chosen equation has a simple analytic solution. This is ‘simple harmonic motion’, x = A sin (ωt + B) or C sin ωt + D cos ωt. Instead we shall ask how we would set about solving it numerically as there are some general lessons to be learned from this. Let us try to find the analogue for second-order equations of Euler's method already studied for first-order equations. Again we shall choose convenient numerical values for purposes of illustration, so we take ω2 = 4 and will look for a solution in the range t = 0 to t = 4.

We shall try to find this by a step-by-step procedure, with a steplength Δt = 0.1. But again we need a ‘jumping-off point’ – some starting information. If we are given, say, x = 1 at t = 0 we can use the differential equation to get d2x/dt2 at t = 0, but this is not enough information to make the required step. We need to be given (or choose) a starting value for dx/dt, say 2, as well, and use two equations to get started.

Type
Chapter
Information
Publisher: Cambridge University Press
Print publication year: 1985

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure [email protected] is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

Available formats
×