# \[?\] Solve a simple equation using RSolve?

**URL:** <https://community.wolfram.com/t/solve-a-simple-equation-using-rsolve/14239>\
**Category:** Questions\
**Tags:** equation-solving, symbolic-computations\
**Created:** [June 18, 2019, 12:40pm UTC](https://community.wolfram.com/t/solve-a-simple-equation-using-rsolve/14239 "2019-06-18T12:40:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![valentini](https://avatars.discourse-cdn.com/v4/letter/v/58956e/32.png) [@valentini](https://community.wolfram.com/u/valentini)\
**Post date:** [June 18, 2019, 12:40pm UTC](https://community.wolfram.com/t/solve-a-simple-equation-using-rsolve/14239/1 "2019-06-18T12:40:21Z")

</div>

I have the following two equations:

```
I. Subscript[Q, t] == Subscript[EE, t]*Subscript[NN, t] + 
  Subscript[FF, t]*Subscript[MM, t]

II. Subscript[FF, t] == Subscript[EE, t] - 1

```

I would like to solve it for Q\_t so that II. in I. :

```
Subscript[Q, t] == Subscript[EE, t]*Subscript[NN, t] + 
      (Subscript[EE, t] - 1)*Subscript[MM,t]

```

How I can I do this in Mathematica?  
Using RSolve gives me the following error:

```
RSolve::deqx: Supplied equations are not difference equations of the given functions.

```

I would also like to learn how to properly apply the RSolve function with symbolic equations.

---

<div class="post-metadata">

**Author:** ![mariuszi28cg](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/mariuszi28cg/32/308_2.png) [@mariuszi28cg](https://community.wolfram.com/u/mariuszi28cg)\
**Post date:** [June 18, 2019, 2:58pm UTC](https://community.wolfram.com/t/solve-a-simple-equation-using-rsolve/14239/2 "2019-06-18T14:58:35Z")

</div>

You don’t have a recurrence equation where you can use **[RSolve](https://reference.wolfram.com/language/ref/RSolve.html?q=RSolve)**. In your’s case:

```
    Eliminate[{Subscript[Q, t] == 
        Subscript[EE, t]*Subscript[NN, t] + 
         Subscript[FF, t]*Subscript[MM, t], 
       Subscript[FF, t] == Subscript[EE, t] - 1}, 
      Subscript[FF, t]] // Simplify

    % // TeXForm

```

\left(\text{EE}\_t-1\right) \text{MM}\_t+\text{EE}\_t \text{NN}\_t=Q\_t

---

<div class="post-metadata">

**Author:** ![valentini](https://avatars.discourse-cdn.com/v4/letter/v/58956e/32.png) [@valentini](https://community.wolfram.com/u/valentini)\
**Post date:** [June 18, 2019, 3:14pm UTC](https://community.wolfram.com/t/solve-a-simple-equation-using-rsolve/14239/3 "2019-06-18T15:14:49Z")

</div>

Would this be a recurrence problem?

I.

```
`Subscript[X, t] == (1 - \[Theta])*Sum[\[Theta]^(k - 1)*(Subscript[P, t - k] - Subscript[P, t - k - 1]),` 

```

II.

```
`<{k, 1, t - 1}] + \[Theta]^(t - 1)*1,`

```

III. `

```
Subscript[NN, t] == Subscript[X, t]/(\[Gamma]*\[Sigma]^2),` 

```

IV.

```
`Subscript[M, t] == (Subscript[D, t] - (T - t - 1)*\[Gamma]*\[Sigma]^2*Q - Subscript[P, t])/(\[Gamma]* \[Sigma]^2), 

```

V.

```
EE*Subscript[NN, t] + FF*Subscript[MM, t] == Q, 

```

V. `

```
EE == FF - 1`

```

I would like to solve this for Subscript[P, t]

---

<div class="post-metadata">

**Author:** ![mariuszi28cg](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/mariuszi28cg/32/308_2.png) [@mariuszi28cg](https://community.wolfram.com/u/mariuszi28cg)\
**Post date:** [June 18, 2019, 4:00pm UTC](https://community.wolfram.com/t/solve-a-simple-equation-using-rsolve/14239/4 "2019-06-18T16:00:18Z")

</div>

[Possible duplicate Question](https://mathematica.stackexchange.com/questions/200581/solving-symbolic-equations-wih-rsolve-in-mathematica)
