Jump to content

Science:Math Exam Resources/Courses/MATH103/April 2017/Question 08 (a)/Solution 2

From UBC Wiki

We know that the coefficients of the Taylor series are given by an=y(n)(0)n! and that the initial condition is

y(0)=4.

Since y solves the differential equation y′+2y=x2, or equivalently, y′=x2−2y, we must have

y′(0)=02−2y(0)=0−2⋅4=−8.

By differentiating the equation for y′ (with respect to x), we obtain y″=2x−2y′, which implies that

y″(0)=2⋅0−2y′(0)=0−2⋅−8=16.

Differentiating the equation once more, we obtain y‴=2−2y″, so

y‴(0)=2−2y″(0)=2−2⋅16=−30.

We conclude that a0=y(0)0!=4, a1=y′(0)1!=−8, a2=y″(0)2!=8, and a3=y‴(0)3!=−5.