Results 1 to 5 of 5

Math Help - 2nd order differential equation problem

  1. #1
    Member nautica17's Avatar
    Joined
    Aug 2009
    Posts
    121

    2nd order differential equation problem

    I just wanted to confirm I did this right.

    "Verify by substitution that the given function is a solution of the given differential equation."

    Given:
    x^2 y'' - xy' + 2y = 0
    y = x*cos( ln(x) )

    My work:
    y' = cos(ln(x)) - sin(ln(x))
    y'' = -(1/x) * ( sin(ln(x)) + cos(ln(x)) )

    Substituting back in to the differential equation:
    x^2 (-(1/x)(sin(ln(x)) + cos(ln(x)))) - x(cos(ln(x)) - sin(ln(x))) - 2(xcos(ln(x)) = 0

    -xsin(ln(x)) - xcos(ln(x)) - xcos(ln(x)) + xsin(ln(x)) + 2x*cos(ln(x)) = 0

    0 = 0

    Does this mean I verified the solution? See I'm confused because in first order diff. equations I would just separate out the x's and y's and integrate both sides and get my y equation. This is a little different apparently.
    Follow Math Help Forum on Facebook and Google+

  2. #2
    MHF Contributor FernandoRevilla's Avatar
    Joined
    Nov 2010
    From
    Madrid, Spain
    Posts
    2,162
    Thanks
    45

    Re: 2nd order differential equation problem

    Quote Originally Posted by nautica17 View Post
    Does this mean I verified the solution?
    Yes, you have proved that the given function is a solution of the differential equation.

    See I'm confused because in first order diff. equations I would just separate out the x's and y's and integrate both sides and get my y equation. This is a little different apparently.
    The order of the equation is irrelevant. One thing is to solve a differential equation and another thing is to verify that a given function is a solution.
    Follow Math Help Forum on Facebook and Google+

  3. #3
    MHF Contributor chisigma's Avatar
    Joined
    Mar 2009
    From
    near Piacenza (Italy)
    Posts
    2,162
    Thanks
    5

    Re: 2nd order differential equation problem

    Quote Originally Posted by FernandoRevilla View Post
    Yes, you have proved that the given function is a solution of the differential equation.



    The order of the equation is irrelevant. One thing is to solve a differential equation and another thing is to verify that a given function is a solution.
    The DE...

    x^{2}\ y^{''} - x\ y^{'} + 2\ y=0 (1)

    ... is 'Euler's type' and a particular solution of it has the form x^{\alpha}. Substituting x^{\alpha} in (1) You arrive at the algebraic equation...

    \alpha^{2}-2\ \alpha +2 =0 (2)

    ...the solution of which are 1 \pm i, so that the general solution of (1) is...

    y(x)=c_{1}\ x\ (\cos \ln x +i\ \sin \ln x) + c_{2}\ x\ (\cos \ln x -i\ \sin \ln x) (3)

    Of course if You want a real solution it must be c_{1}=c_{2}=c...

    Kind regards

    \chi \sigma
    Follow Math Help Forum on Facebook and Google+

  4. #4
    MHF Contributor FernandoRevilla's Avatar
    Joined
    Nov 2010
    From
    Madrid, Spain
    Posts
    2,162
    Thanks
    45

    Re: 2nd order differential equation problem

    Quote Originally Posted by chisigma View Post
    The DE...

    x^{2}\ y^{''} - x\ y^{'} + 2\ y=0 (1)

    ... is 'Euler's type' and a particular solution of it has the form x^{\alpha}. Substituting x^{\alpha} in (1) You arrive at the algebraic equation...

    \alpha^{2}-2\ \alpha +2 =0 (2)

    ...the solution of which are 1 \pm i, so that the general solution of (1) is...

    y(x)=c_{1}\ x\ (\cos \ln x +i\ \sin \ln x) + c_{2}\ x\ (\cos \ln x -i\ \sin \ln x) (3)

    Of course if You want a real solution it must be c_{1}=c_{2}=c...

    Kind regards

    \chi \sigma
    This confirms that it is not the same to find the general solution of a DE that verify that a given function is a solution of a DE.
    Follow Math Help Forum on Facebook and Google+

  5. #5
    MHF Contributor chisigma's Avatar
    Joined
    Mar 2009
    From
    near Piacenza (Italy)
    Posts
    2,162
    Thanks
    5

    Re: 2nd order differential equation problem

    Quote Originally Posted by chisigma View Post
    The DE...

    x^{2}\ y^{''} - x\ y^{'} + 2\ y=0 (1)

    ... is 'Euler's type' and a particular solution of it has the form x^{\alpha}. Substituting x^{\alpha} in (1) You arrive at the algebraic equation...

    \alpha^{2}-2\ \alpha +2 =0 (2)

    ...the solution of which are 1 \pm i, so that the general solution of (1) is...

    y(x)=c_{1}\ x\ (\cos \ln x +i\ \sin \ln x) + c_{2}\ x\ (\cos \ln x -i\ \sin \ln x) (3)

    Of course if You want a real solution it must be c_{1}=c_{2}=c...

    Kind regards

    \chi \sigma
    My answer has been a little hurried so that what i wrote is not precise... the general solution of the De is...

    y(x)=c_{1}\ x\ (\cos \ln x +i\ \sin \ln x) + c_{2}\ x\ (\cos \ln x -i\ \sin \ln x) (1)

    ... bue c_{1} and c_{2} may be complex, so that the general real solution is...

    y(x)= x\ (a_{1}\ \cos \ln x + a_{2}\ \sin \ln x)

    ... where a_{1} and a_{2} are 'arbitrary real constants'...

    Kind regards

    \chi \sigma
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. frist order differential equation problem
    Posted in the Differential Equations Forum
    Replies: 5
    Last Post: September 5th 2011, 05:30 PM
  2. Problem Solving First Order Differential Equation
    Posted in the Differential Equations Forum
    Replies: 5
    Last Post: March 17th 2011, 06:49 AM
  3. Replies: 2
    Last Post: March 19th 2010, 01:45 PM
  4. Second Order differential equation problem
    Posted in the Differential Equations Forum
    Replies: 1
    Last Post: March 8th 2010, 12:21 AM
  5. First order differential equation problem
    Posted in the Differential Equations Forum
    Replies: 1
    Last Post: March 2nd 2009, 12:49 PM

Search Tags


/mathhelpforum @mathhelpforum