You are here:

Question
in undetermined coefficients when r(x) has sum of two unlike function
like
e^ax+x^n,we find yp(particular solution) using yp=yp1+yp2(yp1 for e^ax and yp2 for x^n)
but for like functions ,is
sinx+cosx or x^ax+x^3x
we have to find yp using sum of yp1 and yp2 or we find only yp using sin(neglecting cos) or x^ax(neglecting x^3x)?

I assume that, in your question, r(x) is the inhomogeneous term. I also am a little concerned about your function x^ax, which is unusual and does not lend itself to solution by the method of undetermined coefficients. I'll assume that you mean something like x^n + x^m, where n and m are integers.

For the trig functions, if you have just a single trig function (not the sum), i.e., r(x) = Asin(ax) or r(x) = Bcos(bx), you're going tho have to use both the sin and cos functions in your particular solution anyway since, in plugging them in to the differential equation and matching coefficients, you are going to have terms like d[sin(ax)]/dx = acos(ax), so you may as well include both sin and cos in your particular solution from the start.

In the general case for the trig functions, if you have the sum of trig functions with different coefficients in the argument, i.e., r(x) = Asin(ax)+Bcos(bx), then you should split the problem up by using the superposition (i.e., the sum) of the solutions for each case (sin(bx) and/or cos(bx)) separately.

For polynomials, a similar situation occurs, namely, when r(x)=x^n and a term like x^n is used in the particular solution, the derivatives will give d(x^n)/dx = nx^(n-1), so term of lower order will be necessary in the particular solution.
Questioner's Rating
 Rating(1-10) Knowledgeability = 10 Clarity of Response = 9 Politeness = 10 Comment No Comment

Volunteer

#### randy patton

##### Expertise

college mathematics, applied math, advanced calculus, complex analysis, linear and abstract algebra, probability theory, signal processing, undergraduate physics, physical oceanography

##### Experience

26 years as a professional scientist conducting academic quality research on mostly classified projects involving math/physics modeling and simulation, data analysis and signal processing, instrument development; often ocean related

Publications
J. Physical Oceanography, 1984 "A Numerical Model for Low-Frequency Equatorial Dynamics", with M. Cane

Education/Credentials
M.S. MIT Physical Oceanography, B.S. UC Berkeley Applied Math

Past/Present Clients
Also an Expert in Oceanography