Results 1 to 7 of 7

Math Help - Difference equation

  1. #1
    Junior Member
    Joined
    Oct 2005
    Posts
    54

    Difference equation

    How do I calculate:
    y_{n+1}-y_{n}=\sin(n)
    n>=0, y_0=0
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Forum Admin topsquark's Avatar
    Joined
    Jan 2006
    From
    Wellsville, NY
    Posts
    10,211
    Thanks
    419
    Awards
    1
    Quote Originally Posted by a4swe View Post
    How do I calculate:
    y_{n+1}-y_{n}=\sin(n)
    n>=0, y_0=0
    Looks to me like:
    y_0 = 0
    y_1 = y_0 + sin(1) = sin(1)
    y_2 = y_1 + sin(2) = sin(1) + sin(2)

    etc.

    So
    y_{n} = \sum_{i = 0}^n sin(i)

    -Dan
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Junior Member
    Joined
    Oct 2005
    Posts
    54
    Yes, I would agree to that.
    But what then?
    Follow Math Help Forum on Facebook and Google+

  4. #4
    Eater of Worlds
    galactus's Avatar
    Joined
    Jul 2006
    From
    Chaneysville, PA
    Posts
    3,001
    Thanks
    1
    You could start by building your iterations.

    y_{n+1}-y_{n}=sin(n)\Rightarrow{y_{1}+y_{0}=sin(0)}\Righta  rrow{y_{1}=0}

    y_{2}-y_{1}=sin(1)\Rightarrow{y_{2}=sin(1)}

    y_{3}-y_{2}=sin(2)\Rightarrow{y_{3}-sin(1)=sin(2)}

    y_{4}-y_{3}=sin(3)\Rightarrow{y_{4}-(sin(2)+sin(1))=sin(3)}


    And so on and so on.
    Follow Math Help Forum on Facebook and Google+

  5. #5
    Junior Member
    Joined
    Oct 2005
    Posts
    54
    I want to have a formula for ANY n, that method won't help me.
    I know there is one, and getting to that is my problem.

    \frac{\sin(\frac{n}{2})*\sin(\frac{n-1}{2})}{\sin(\frac{1}{2})}
    Is what I want it to be.
    Follow Math Help Forum on Facebook and Google+

  6. #6
    Forum Admin topsquark's Avatar
    Joined
    Jan 2006
    From
    Wellsville, NY
    Posts
    10,211
    Thanks
    419
    Awards
    1
    Quote Originally Posted by a4swe View Post
    I want to have a formula for ANY n, that method won't help me.
    I know there is one, and getting to that is my problem.

    \frac{\sin(\frac{n}{2})*\sin(\frac{n-1}{2})}{\sin(\frac{1}{2})}
    Is what I want it to be.
    (Hmmm...It seems I was off by a term in my earlier post. Galactus has it right.)

    Have you tried an induction proof?

    For n = 1: \frac{\sin(\frac{1}{2})*\sin(\frac{1-1}{2})}{\sin(\frac{1}{2})} = 0
    Since y_1 = 0 this is good. (The formula also works for y_0 = 0.)

    So it works for some n. Let's see if it works for n + 1.
    Now, y_{n+1} = \sum_{i = 0}^{n+1} sin(i) =(?) \frac{\sin(\frac{n+1}{2})*\sin(\frac{n}{2})}{\sin(  \frac{1}{2})}

    By hypothesis y_{n+1} = y_n + sin(n) so
    \frac{\sin(\frac{n+1}{2})*\sin(\frac{n}{2})}{\sin(  \frac{1}{2})} = \frac{\sin(\frac{n}{2})*\sin(\frac{n-1}{2})}{\sin(\frac{1}{2})} + sin(n)
    should be true.

    \sin(\frac{n+1}{2})*\sin(\frac{n}{2}) = \sin(\frac{n}{2})*\sin(\frac{n-1}{2}) + sin(\frac{1}{2})sin(n)

    On the LHS:
    \sin(\frac{n+1}{2})*\sin(\frac{n}{2}) = sin(\frac{n}{2} + \frac{1}{2}) * sin(\frac{n}{2})

    = \left [ sin(\frac{n}{2}) cos(\frac{1}{2}) + sin(\frac{1}{2}) cos(\frac{n}{2}) \right ] sin(\frac{n}{2})

    = sin^2(\frac{n}{2}) cos(\frac{1}{2}) + sin(\frac{1}{2}) sin(\frac{n}{2}) cos(\frac{n}{2})

    = sin^2(\frac{n}{2}) cos(\frac{1}{2}) + \frac{1}{2} sin(\frac{1}{2}) sin(n)

    Similarly we may show that the RHS becomes
    \sin(\frac{n}{2})*\sin(\frac{n-1}{2}) + sin(\frac{1}{2})sin(n) = sin^2(\frac{n}{2}) cos(\frac{1}{2}) - \frac{1}{2} sin(\frac{1}{2}) sin(n) + sin(\frac{1}{2})sin(n)

    Which again gives:
    sin^2(\frac{n}{2}) cos(\frac{1}{2}) + \frac{1}{2} sin(\frac{1}{2}) sin(n)

    So the two sides are equal.

    So the theorem is true for n and n + 1 etc.

    -Dan
    Follow Math Help Forum on Facebook and Google+

  7. #7
    Junior Member
    Joined
    Oct 2005
    Posts
    54
    Ahhh, yes!
    Thank you tops.
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Difference Equation
    Posted in the Discrete Math Forum
    Replies: 1
    Last Post: November 23rd 2011, 09:24 PM
  2. Difference equation
    Posted in the Discrete Math Forum
    Replies: 12
    Last Post: January 10th 2011, 05:06 AM
  3. Difference equation
    Posted in the Differential Equations Forum
    Replies: 2
    Last Post: August 9th 2009, 01:58 AM
  4. Difference Equation Help
    Posted in the Advanced Math Topics Forum
    Replies: 2
    Last Post: March 22nd 2009, 12:49 PM
  5. difference equation
    Posted in the Algebra Forum
    Replies: 1
    Last Post: February 5th 2009, 01:21 PM

Search Tags


/mathhelpforum @mathhelpforum