# Homework Help: Discrete time state space model: solving for input

1. Dec 12, 2008

### nweibley

Preface: This homework assignment was due long ago. At this point I am only trying to understand the problem (or really if the posted solution follows the problem) before my exam. I have no real indication that this problem (or even one like it) will be on my final, but I feel that my inability to solve it shows a weakness in my understanding of the material that I should fix before I sit down to take the test. The PDF for the assignment is http://csc.list.ufl.edu/3105/fall08/assignment/assignment-8.pdf. So here goes...

1. The problem statement, all variables and given/known data
This the exact wording of the problem:
2. Relevant equations
$$\mathbf{x}[n+1] = A\mathbf{x}[n] + Bu[n]$$
$$\mathbf{y}[n] = C\mathbf{x}[n] + Du[n]$$

3. The attempt at a solution
Well... first I tried to setup a difference equation of the form:
$$\-1y[n+1] + \left(1+\frac{.09}{12}\right) y[n]=u[n]$$
and set
$$x_{1}[n]=y[n]$$
$$x_{2}[n]=y[n+1]$$
and
$$x_{1}[n+1]=y[n+1]=x_{2}[n]$$

However, I came to realize that this is either a) false or b) going to yield a state space representation with 1 state (A is a 1x1 matrix).

I'd be thrilled with a lead to chase on this one; I can't tell if the question as-asked makes sense insomuch as I'm going to find a system matrix of dimensions m x m (m > 1) which are the only state spaces I can remember working in class.

The posted solutions from the TA show a difference equation of the form:
$$x[n+1] = ax[n]-ku[n]$$
Which is then Z transformed to yield:
$$X(z) = -k\left(\frac{z}{\left(z-1\right)\left(z-a\right)}\right)+\frac{z}{z-a}x[0]$$
At which point I believe the TA made a superficial error (but am probably wrong about that).

So, any guidance? Is there a state space solution that makes sense for this problem? And if so, does it essentially present itself like scalars?

Many thanks for any pointers.

Last edited by a moderator: Apr 24, 2017
{"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 1, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "url": "https://www.physicsforums.com/threads/discrete-time-state-space-model-solving-for-input.279132/", "fetch_time": 1531787895000000000, "content_mime_type": "text/html", "warc_filename": "crawl-data/CC-MAIN-2018-30/segments/1531676589536.40/warc/CC-MAIN-20180716232549-20180717012549-00087.warc.gz", "warc_record_offset": 949004305, "warc_record_length": 14796, "token_count": 585, "char_count": 1986, "score": 3.5625, "int_score": 4, "crawl": "CC-MAIN-2018-30", "snapshot_type": "latest", "language": "en", "language_score": 0.9048569202423096, "file_path": "/sailhome/yjruan/project/latent-lm/data/processed/finemath-4plus/finemath-4plus/train-00024-of-00064.parquet"}