1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Homework Help: Differential Equations problems

  1. Jul 14, 2008 #1
    1. Find the eigenvalues and eigenfunctions for the given boundary-value problem.

      [tex]{d \over dx}[x{dy \over dx}] + {\lambda \over x}{y} = 0, [/tex] subject to [tex] y(1)=0, y'(e^\pi)=0[/tex]

    2. Find the eigenvalues and eigenfunctions for the given boundary-value problem.

      [tex]{d \over dx}[{1 \over 3x^2+1}{dy \over dx}] + {\lambda (3x^2+1)}{y} = 0, [/tex] subject to [tex] y(0)=0, y(\pi)=0[/tex]

      hint: let [tex]t=x^3+x[/tex]
    3. Find the general solution of the Cauchy-Euler equation Assume x>0.

      [tex]x^3{d^3y \over dx^3} - 4x^2{d^2y \over dx^2} + 8x{dy \over dx} - 8y = 4ln(x)[/tex]
    4. Use teh variation of parameters to find the general solution of the given differential equation.

      [tex]{d^2y \over dx^2} +y = {1 \over 1+sin x}[/tex]

    5. Given that [tex]y_1(x)=x[/tex] is a solution of the DE [tex](1-x^2)y'' - 2xy' + 2y = 0, -1<x<1,[/tex] use the reduction of order to find a second solution (Do not use the formula.)
    6. Use the method of undetermined coefficients to find the general solution of the give DE.

      [tex]y''+y = x sinx[/tex]

    I need a lot of help here! In a little bit, I'll post my work so far, which should lead you in the right direction.
    1. The problem statement, all variables and given/known data

    2. Relevant equations

    3. The attempt at a solution
  2. jcsd
  3. Jul 14, 2008 #2


    User Avatar
    Science Advisor

    Good. I'll wait for it.
  4. Jul 14, 2008 #3
    1.[tex]{d \over dx}[x{dy \over dx}] + {\lambda \over x}{y} = 0, [/tex] subject to [tex] y(1)=0, y'(e^\pi)=0[/tex]

    differentiate that first term.

    [tex]x{d^2y \over dx^2} +{dy \over dx} +{\lambda \over x}{y} = 0, [/tex]

    multiply through by x to make it a Cauchy-Euler equation (making the powers of x and derivatives of y the same).

    [tex]x^2{d^2y \over dx^2} +x{dy \over dx} +{\lambda}{y} = 0, [/tex] (1)

    now using the substitution [tex]x=e^t [/tex] and [tex]t=ln x[/tex], and taking derivatives of t, you can substitute [tex]x^2y"= {d^2y \over dt^2} - {dy \over dt}[/tex] and [tex]xy'= {dy \over dt} [/tex]

    When substituted, the [tex]{dy \over dt} [/tex] cancels out leaving

    [tex]{d^2y \over dt^2} + \lambda{y} = 0[/tex] (2)

    now getting the auxiliary/characteristic equation of (2) gives us
    [tex]m^2+\lambda=0[/tex] or [tex]m=+/- i \sqrt{\lambda}[/tex]

    that gives us the complimentary solution [tex]y_c = c_1cos(sqrt{\lambda}t) + c_2 sin (sqrt{\lambda}t)[/tex]

    now since we're working with t instead of x, we need to modify our boundaries using t=ln(x). That gives us [tex]y(0)=0, y'(\pi)=0[/tex]

    plugging in the first boundary y(0)=0, gives us [tex]c_1 = 0[/tex]

    now this is where I'm stuck I think.

    we gotta get the first derivative of [tex]y_c[/tex], and we could ignore the cosine term because c1=0.

    we get [tex]y'_c = c_2\sqrt{\lambda}cos(\sqrt{\lambda}t)[/tex], but when I plug in y(pi)=0, which I am not even sure if its right, I get stuck. All I know is I get to this line [tex]0=c_2\sqrt{\lambda}cos(\sqrt{\lambda}\pi)[/tex] and Im clueless. I know cos(n*pi)=-1 for n=1,3,5... and =1 for n=2,4,6...

    now from my notes it says the eigenvalues are [tex]\lambda_n = {n^2\pi^2 \over L^2}[/tex] where L is the second boundary y(L)=y1, and the eigenfunctions are supposed to be [tex]y_n(x) = c_2 sin ({n\pi \over L}{x}) [/tex]for n=1,2,3,4...

    ****... gonna go kill myself...
  5. Jul 14, 2008 #4
    number 5.... watch this, this is sad...

    Given that [tex]y_1(x)=x[/tex] is a solution of the DE [tex](1-x^2)y'' - 2xy' + 2y = 0, -1<x<1,[/tex] use the reduction of order to find a second solution (Do not use the formula.)

    attempted solution:

    if its given that y1=x, the method of reduction of order says that y2=u(x)y1(x).

    so [tex]y_2=ux[/tex] and [tex]y'_2= u + u'x[/tex] and [tex]y''_2=u''x+2u'[/tex]

    and putting the DE in standard form.

    [tex]y'' - {2x \over 1-x^2}y' + {2 \over 1-x^2}y = 0[/tex]

    plugging in [tex]y_2, y'_2, and y''_2[/tex] you get

    [tex]u''x+2u' - {2x \over 1-x^2}(u + u'x) + {2 \over 1-x^2}(ux) = 0[/tex]

    expanding cancels out the u term, leaving [tex]xu''+(2-{2x^2 \over 1-x^2})u' = 0[/tex], and divide by x, [tex]u''+({2 \over x}-{2x \over 1-x^2})u' = 0[/tex]

    Now is where the reduction of order method gets its name. you let w=u', so w'=u", reducing the second-order equation into an eaiser first-order DE.

    so [tex]w'+( {2 \over x}-{2x \over 1-x^2})w = 0[/tex] is the result after the substitution. But getting the integrating factor is what got me.

    [tex]\mu(x)=e^{\int ({2 \over x}-{2x \over 1-x^2})dx}[/tex], which I would like someone to check this, I get [tex]\mu(x)=e^{ln[x^2(1-x^2)]}=x^2(1-x^2) = x^2-x^4[/tex]

    Now if this mu is correct, than multiplying both sides of the DE by the mu will result by definition as

    [tex]{d \over dx}{[(x^2-x^4)w] = 0*[x^2(1-x^2)] = 0[/tex]

    But this is were I run into problems. Integrating this equation gives me

    [tex](x^2-x^4)w= c_1[/tex], and [tex]w= {c_1 \over (x^2-x^4)}[/tex].

    Substituting u' for w again, will give us u after integration. But its this integration that got me stuck.

    I havent been able to integrate [tex]u'= {c_1 \over (x^2-x^4)}[/tex]... Assuming I did everything right ealier, and Im supposed to integrate that..
  6. Jul 14, 2008 #5
    and im pretty dumb, I think Im able to integrate that using integration by partial fractions.. gonna try right now.
  7. Jul 14, 2008 #6
    Well I knocked off #5 I believe, I integrated by partial fractions and got

    [tex]u' = c_1\left[ \int {{-1 \over x^2} + {-1/2 \over x+1} + {1/2 \over x-1}} \right]dx[/tex]

    [tex]u = c_1\left[{1 \over x} + {1 \over 2}{ln(x-1)} - {1 \over 2}{ln(x+1)}\right] +c_2[/tex]

    and for convinience, we'll let c1=1 and c2=0 rendering

    [tex]u = {1 \over x} + {1 \over 2}{ln(x-1)} - {1 \over 2}{ln(x+1)}[/tex]

    and since from the beginning we assumed that [tex]y_2(x) = y_1(x)u(x)[/tex] and y1=x, then [tex]y_2(x) = x \left [ {1 \over x} + {1 \over 2}{ln(x-1)} - {1 \over 2}{ln(x+1)} \right ][/tex]

    sweet, 1 down, 5 to go....
  8. Jul 14, 2008 #7
    I think the general solution to #6 is

    [tex]y(x) = c_1cos x + c_2sin x + xsin x[/tex]

    let me know what you get. Im too lazy to type the work right now, I think its right so I rather work on another problem.
  9. Jul 14, 2008 #8
    Im almost done with #4 but Im stuck at the integration again. This time its serious.

    for u2, I get [tex]u_2=\int {cosx \over 1+sinx}dx[/tex], which simple substitution u=1+sinx can integrate.

    I get stuck on u1, where I get [tex]u_1=\int -{sinx \over 1+sinx}dx[/tex]...

    Now this is one hell of an integral to compute, I can tell just by putting it into the Wolfram Mathematica Online Integrator. It says that

    [tex]\int -{sinx \over 1+sinx}dx = - {{[ cos ({x \over 2}) + sin ({x \over 2}) ] [ xcos({x \over 2}) + (x-2)sin( {x \over 2} ) ]} \over 1+ sin x}[/tex]

    how in the world would I do an integral by hand and get this crazy function!!
  10. Jul 14, 2008 #9
    maybe integration by parts?
  11. Jul 14, 2008 #10


    User Avatar
    Homework Helper

    I don't think this is right. Remember that y'(e^pi) in the boundary conditions refers to dy/dx. Now you're working in dy/du. The chain rule for dy/dx = dy/du du/dx.

    EDIT: This is in reply to qn 1, by the way.
  12. Jul 14, 2008 #11


    User Avatar
    Homework Helper

    That's odd. By partial fractions I got [tex]\frac{1}{x^2} + \frac{1}{2(1-x)} + \frac{1}{2(1+x)}[/tex]. Where did your minus sign come from?

    Actually it's a lot more complicated than that. This appears to be a straightforward application of the variation of parameters. The particular solution for y(x) is in the form [tex]y_p(x) = u(x)y_1(x) + v(x)y_2(x)[/tex], where y1 and y2 are individual linearly independent solutions to the homogenous DE.
    Last edited: Jul 14, 2008
  13. Jul 14, 2008 #12


    User Avatar
    Homework Helper

    This is for qn 4:

    To integrate that you might want to use something known as t-formulae or tangent half-formulae. Or also known by its fancy name Weierstrass substitution.

    EDIT: I just tried it out and it seems to work.
  14. Jul 14, 2008 #13
    it has nothing to do with the minus sign, what did you get for you integrating factor, mu? EDIT: Im gonna make it BOLD on my work so you see what Im talking about.

    and I' ll post my work to number 6 tomorrow, im too lazy to write that all out right now. But the problem says use the method of undetermined coefficients.

    you get the homogeneous case out the way, and for the particular solution you let y_p=(Ax+B)cos x (Cx+D)sin x. After the two differentiations and plugging in and cancelling terms, you're left with -2Asinx + 2Bcosx. Since these terms are duplicated in the homogeneous case, you multiply thru by x.

    you you got that -2Axsinx+2Bxcos=xsinx

    you match up coefficients, making B=0 and A=-1/2...
    Last edited: Jul 14, 2008
  15. Jul 14, 2008 #14


    User Avatar
    Homework Helper

    My integrating factor is the same as yours.

    Apparently I didn't see that, so yeah, I suppose you should use that instead of variation of parameters.

    This is with reference to qn 6?

    EDIT: Woohoo! 999 posts. Great number. Maybe I should stop posting for a while just to retain that post number.
  16. Jul 14, 2008 #15
    strange, it didnt let me edit.. so I had 2 quote myself..
  17. Jul 14, 2008 #16


    User Avatar
    Homework Helper

    Yes, and I did say that I got the same integrating factor as you did.
  18. Jul 15, 2008 #17
    Okay, then this is my work.
    [tex]\mu(x)=e^{\int ({2 \over x}-{2x \over 1-x^2})dx} = e^{ln x^2}*e^{ln(1-x^2)}dx}= x^2(1-x^2) = x^2(x+1)(x-1)[/tex]

    doing partials fractions on that is where I got my answer.

    Yes. question 6 is undetermined coefficients.

    please dont lol. I really need help, and the help is greatly appreciated.
  19. Jul 15, 2008 #18


    User Avatar
    Homework Helper

    Well for one thing [tex]x^2(1-x^2)[/tex] is not the same as [tex]x^2(x^2-1)[/tex].

    Oh well I guess I'm past that anyway. Maybe next time when I'm at 1,111 posts.
  20. Jul 15, 2008 #19
    yeah, there you go. I used 1-x^2, thats how the problem appears on my paper.

    any more help?? especially with the first 2. I could probably get the rest on my own but those first two eigeinvalues/eigenfunctions are killing me!
  21. Jul 15, 2008 #20
    HAHA I made the same mistake. I used 1-x^2, but when I split it I put (x-1)(x+1) instead of (1-x)(1+x)... so your right in the above quote. Although the work is the same, its just a matter of factoring out the minus sign you're mentioning.

    EDIT: nevermind, neither of us is right.

    its supposed to be [tex]\frac{1}{2(1+x)} - \frac{1}{x^2} - \frac{1}{2(1-x)}[/tex]
  22. Jul 15, 2008 #21


    User Avatar
    Homework Helper

    You used x^2-1 and not 1-x^2. And as for the first two questions, I did reply earlier for qn 1. I haven't looked at 2 yet.
  23. Jul 15, 2008 #22
    I did this, instead of y(x) boundaries, transformed the equation using t=ln(x), so the boundaries instead of y(1)=0 and y'(e^pi)=0 become y(0)=0 and y'(pi)=0
  24. Jul 15, 2008 #23
    Well, with help from a friend on another forum, I think we solved #1.

    we got:

Share this great discussion with others via Reddit, Google+, Twitter, or Facebook