Solving DE x*y'' - y' = 3x^2: 2 Ways Found

  • Thread starter Thread starter Mabbott608
  • Start date Start date
Mabbott608
Messages
6
Reaction score
0
I have to find three ways of solving the equation

x*y'' - y' = 3x^2

So far, I have tried Cauchy-Euler with success and am now working on using series solutions (although I do not know a series for 3x^2). And for a final way of solving I am completely lost.
 
Physics news on Phys.org
Is there any way that you could "un-product rule" the left side into d/dx(xy') or something? That might work... or it might not.

You could always try the "Professor's Solution"...

"This problem is left as an exercise for the grader."
 
This problem is solved with 'method of variation of parameters'.this way,y''+p(x)y'+q(x)y=f(x)
Yp=c1*y1+c2*y2
Yp(x)=u1*y1+u2*y2
u1=(-)integration(y2*f(x)/w[y1,y2])dx and u2=int(y1*f(x)/w[y1,y2])dx
w[y1,y2] is wronskian of y1 and y2
consequently,we locate yg=yp+yc
 
You can either let u=y' or just multiply both side by 1/x^2 and get d\left(\frac{1}{x}y'\right)=3
 
I have used the cauchy-euler with variation of parameters with success. I have been informed by a friend and now jackmell to use the substitution u=y'. unfortunately i do not know how that is worked out. if i let u=y' then the order of the equation is reduced. does that mean i can just solve it as a first order linear equation? or are there other steps i need to be aware of.

Thanks everyone for the input! This site is awesome
 
jackmell said:
You can either let u=y' or just multiply both side by 1/x^2 and get d\left(\frac{1}{x}y'\right)=3

I should have written d\left(\frac{1}{x}y'\right)=3dx

to be more accurate but that's just skipping steps so yes, make the substitution u=y', solve the first-order equation in u for u, then back-substitute dy/dx=u, and solve for dy, then integrate again. Don't forget to include the constants of integration after each integration.
 
Thanks...i did so and got an answer! So far, i have completed two methods successfully yet they both produce a slightly different answer. I have yet to plug them into the original but I am curious, does this happen when various methods are used?
 
Mabbott608 said:
Thanks...i did so and got an answer! So far, i have completed two methods successfully yet they both produce a slightly different answer. I have yet to plug them into the original but I am curious, does this happen when various methods are used?

You mean the "same" answer just written differently. For example if c is an arbitrary constant then e^c x^2 and c x^2 represent the "same" answer. Yes, that happens especially when you use Mathematica to check your work but you can just do a little algebra to get it to look like the other expression or in the above, recognize that e^c is still just an arbitrary constant. Just type:

DSolve[x y''[x]-y'[x]==3x^2,y,x]

into Wolfram Alpha to check your result.
 
What is mathematica?
 
  • #10
Mabbott608 said:
What is mathematica?

Mathematica is a program for doing mathematics. You can google Wolfram Alpha which accesses some of the features of Mathematica. You typed in that DSolve command yet? Well, when you do, it will pass it to a running Mathematica program on some server somewhere and it will solve the differential equation and give you the result. Of course don't rely on asking Mathematica to solve problems for you. I recommend it here to check your answers that you first learn to work manually--then use Mathematica :)
 
  • #11
Power series for 3x^2 is 3x^2 (all other terms are zero).
 

Similar threads

Back
Top