Jump to content

Science:Math Exam Resources/Courses/MATH101/April 2005/Question 01 (e)/Solution 1

From UBC Wiki

To find the general solution for this problem, we need to find both the particular solution, yp, and homogeneous solution, yh.

The homogeneous solution satisfies

yh2yh+yh=0.

From part (d) of this exam we have its general solution

yh(x)=c1ex+c2xex.

To find the particular solution, we look at the right hand side of the equation and notice that there is a term that is linear in x (as opposed to quadratic, cubic, etc.). So we can assume a trial solution of yp=ax+b and plug this into the differential equation to find the constants a,b such that the original differential equation is satisfied.

yp2yp+yp=x02a+ax+b=x

By comparing the linear and constant terms on both sides of the equation, we can see that for the differential equation to be satisfied, we must satisfy a=1 and b=2a=2.

So the general solution to the differential equation is the sum of the homogeneous and particular solutions:

y(x)=x+2+c1ex+c2xex

where c1,c2 are arbitrary constants.