(possible) Alternative solution to a difference equation

Click For Summary

Homework Help Overview

The discussion revolves around a difference equation defined as a(n+1) = 1 - a(n). Participants are exploring potential solutions and interpretations of the equation, particularly focusing on the behavior of the sequence generated by different initial values.

Discussion Character

  • Exploratory, Assumption checking, Problem interpretation

Approaches and Questions Raised

  • The original poster attempts to propose a general solution for the difference equation and questions its correctness. Other participants discuss the formulation of the proposed solution and its equivalence to the given answer in the material.

Discussion Status

Participants are actively engaging with the proposed solution, with some providing feedback on the notation and clarity of the expression. There is an exploration of whether the initial conditions are fully specified and how they affect the solution.

Contextual Notes

There is a suggestion that the problem may lack complete information regarding initial values, which are crucial for solving difference equations. The discussion also touches on the necessity of specifying initial conditions similar to differential equations.

Nerd-ho
Messages
7
Reaction score
0
Member advised that the homework template is required.
Hi, I'm a high school graduate who's been going through some UNISA (University of South Africa) mathematical modelling material and I've come across the following difference equation -

a(n+1) = 1 - a(n).

The answer given in the material was that the solution alternates between a(0) for n even and 1 - a(0) for n odd.

I think I've come up with a solution that holds true for all n, namely:

a(n) = a(0)*-1^n + (-1^n - 1)*(-1/2)

Am I correct?

Regards, Travis
 
Last edited by a moderator:
Physics news on Phys.org
Nerd-ho said:
Hi, I'm a high school graduate who's been going through some UNISA (University of South Africa) mathematical modelling material and I've come across the following difference equation -

a(n+1) = 1 - a(n).

The answer given in the material was that the solution alternates between a(0) for n even and 1 - a(0) for n odd.

I think I've come up with a solution that holds true for all n, namely:

a(n) = a(0)*-1^n + (-1^n - 1)*(-1/2)

Am I correct?

Regards, Travis

Sure, that's correct. It's exactly the same solution written in a different way.
 
Last edited by a moderator:
  • Like
Likes   Reactions: Chestermiller
Nerd-ho said:
Hi, I'm a high school graduate who's been going through some UNISA (University of South Africa) mathematical modelling material and I've come across the following difference equation -

a(n+1) = 1 - a(n).

The answer given in the material was that the solution alternates between a(0) for n even and 1 - a(0) for n odd.

I think I've come up with a solution that holds true for all n, namely
:

a(n) = a(0)*-1^n + (-1^n - 1)*(-1/2)

Am I correct?

Regards, Travis

It is vital for you to learn to use parentheses. What you wrote is
$$a(n) = a(0) \times -1^n + (-1^n -1 ) \times (-1/2),$$
which evaluates to ##a(n) = -a(0) + (-2) \times (-1/2) = -a(0) + 1## always. You probably want
$$ a(n) = a(0) \times (-1)^n + ((-1)^n -1) \times (-1/2),$$
which produces ##a(0)## for even ##n## and ##1-a(0)## for odd ##n##.

So, written properly, your formula is a(n) = a(0) * (-1)^n + ((-1)^n - 1) * (-1/2), which, of course, is the same as a(0)*(-1)^n + (1/2)*(1 - (-1)^n)).
 
  • Like
Likes   Reactions: jim mcnamara and scottdave
Have we been given the full actual question?

Doesn’t a0, a1, a2, ... = 6.8, -5.8, 6.8, -5.8,... also satisfy your equation?

In other words, for the solution of a difference equation you need initial values, as many as the order of the equation, just like differential equations
 
epenguin said:
Have we been given the full actual question?

Doesn’t a0, a1, a2, ... = 6.8, -5.8, 6.8, -5.8,... also satisfy your equation?

In other words, for the solution of a difference equation you need initial values, as many as the order of the equation, just like differential equations

##a(0)## IS the initial value. For your solution ##a(0)=6.8##.
 
OK a0 is a general initial value, then the general solution is a0. 1-a0, a0, 1-a0,...
 

Similar threads

Replies
2
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
4
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 0 ·
Replies
0
Views
3K
  • · Replies 45 ·
2
Replies
45
Views
7K
Replies
4
Views
2K
Replies
13
Views
3K
Replies
5
Views
2K