Products
  • Wolfram|One

    The definitive Wolfram Language and notebook experience

  • Mathematica

    The original technical computing environment

  • Notebook Assistant + LLM Kit

    All-in-one AI assistance for your Wolfram experience

  • Compute Services
  • System Modeler
  • Finance Platform
  • Wolfram|Alpha Notebook Edition
  • Application Server
  • Enterprise Private Cloud
  • Wolfram Engine
  • Wolfram Player
  • Wolfram Cloud App
  • Wolfram Player App

More mobile apps

Core Technologies of Wolfram Products

  • Wolfram Language
  • Computable Data
  • Wolfram Notebooks
  • AI & Linguistic Understanding

Deployment Options

  • Wolfram Cloud
  • wolframscript
  • Wolfram Engine Community Edition
  • Wolfram LLM API
  • WSTPServer
  • Wolfram|Alpha APIs

From the Community

  • Function Repository
  • Community Paclet Repository
  • Example Repository
  • Neural Net Repository
  • Prompt Repository
  • Wolfram Demonstrations
  • Data Repository
  • Group & Organizational Licensing
  • All Products
Consulting & Solutions

We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technical expertise

  • Data & Computational Intelligence
  • Model-Based Design
  • Algorithm Development
  • Wolfram|Alpha for Business
  • Blockchain Technology
  • Education Technology
  • Quantum Computation

Wolfram Consulting

Wolfram Solutions

  • Data Science
  • Artificial Intelligence
  • Biosciences
  • Healthcare Intelligence
  • Sustainable Energy
  • Control Systems
  • Enterprise Wolfram|Alpha
  • Blockchain Labs

More Wolfram Solutions

Wolfram Solutions For Education

  • Research Universities
  • Colleges & Teaching Universities
  • Junior & Community Colleges
  • High Schools
  • Educational Technology
  • Computer-Based Math

More Solutions for Education

  • Contact Us
Learning & Support

Get Started

  • Wolfram Language Introduction
  • Fast Intro for Programmers
  • Fast Intro for Math Students
  • Wolfram Language Documentation

More Learning

  • Highlighted Core Areas
  • Demonstrations
  • YouTube
  • Daily Study Groups
  • Wolfram Schools and Programs
  • Books

Grow Your Skills

  • Wolfram U

    Courses in computing, science, life and more

  • Community

    Learn, solve problems and share ideas.

  • Blog

    News, views and insights from Wolfram

  • Resources for

    Software Developers

Tech Support

  • Contact Us
  • Support FAQs
  • Support FAQs
  • Contact Us
Company
  • About Wolfram
  • Career Center
  • All Sites & Resources
  • Connect & Follow
  • Contact Us

Work with Us

  • Student Ambassador Initiative
  • Wolfram for Startups
  • Student Opportunities
  • Jobs Using Wolfram Language

Educational Programs for Adults

  • Summer School
  • Winter School

Educational Programs for Youth

  • Middle School Camp
  • High School Research Program
  • Computational Adventures

Read

  • Stephen Wolfram's Writings
  • Wolfram Blog
  • Wolfram Tech | Books
  • Wolfram Media
  • Complex Systems

Educational Resources

  • Wolfram MathWorld
  • Wolfram in STEM/STEAM
  • Wolfram Challenges
  • Wolfram Problem Generator

Wolfram Initiatives

  • Wolfram Science
  • Wolfram Foundation
  • History of Mathematics Project

Events

  • Stephen Wolfram Livestreams
  • Online & In-Person Events
  • Contact Us
  • Connect & Follow
Wolfram|Alpha
  • Your Account
  • User Portal
  • Wolfram Cloud
  • Products
    • Wolfram|One
    • Mathematica
    • Notebook Assistant + LLM Kit
    • Compute Services
    • System Modeler
    • Finance Platform
    • Wolfram|Alpha Notebook Edition
    • Application Server
    • Enterprise Private Cloud
    • Wolfram Engine
    • Wolfram Player
    • Wolfram Cloud App
    • Wolfram Player App

    More mobile apps

    • Core Technologies
      • Wolfram Language
      • Computable Data
      • Wolfram Notebooks
      • AI & Linguistic Understanding
    • Deployment Options
      • Wolfram Cloud
      • wolframscript
      • Wolfram Engine Community Edition
      • Wolfram LLM API
      • WSTPServer
      • Wolfram|Alpha APIs
    • From the Community
      • Function Repository
      • Community Paclet Repository
      • Example Repository
      • Neural Net Repository
      • Prompt Repository
      • Wolfram Demonstrations
      • Data Repository
    • Group & Organizational Licensing
    • All Products
  • Consulting & Solutions

    We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technical expertise

    WolframConsulting.com

    Wolfram Solutions

    • Data Science
    • Artificial Intelligence
    • Biosciences
    • Healthcare Intelligence
    • Sustainable Energy
    • Control Systems
    • Enterprise Wolfram|Alpha
    • Blockchain Labs

    More Wolfram Solutions

    Wolfram Solutions For Education

    • Research Universities
    • Colleges & Teaching Universities
    • Junior & Community Colleges
    • High Schools
    • Educational Technology
    • Computer-Based Math

    More Solutions for Education

    • Contact Us
  • Learning & Support

    Get Started

    • Wolfram Language Introduction
    • Fast Intro for Programmers
    • Fast Intro for Math Students
    • Wolfram Language Documentation

    Grow Your Skills

    • Wolfram U

      Courses in computing, science, life and more

    • Community

      Learn, solve problems and share ideas.

    • Blog

      News, views and insights from Wolfram

    • Resources for

      Software Developers
    • Tech Support
      • Contact Us
      • Support FAQs
    • More Learning
      • Highlighted Core Areas
      • Demonstrations
      • YouTube
      • Daily Study Groups
      • Wolfram Schools and Programs
      • Books
    • Support FAQs
    • Contact Us
  • Company
    • About Wolfram
    • Career Center
    • All Sites & Resources
    • Connect & Follow
    • Contact Us

    Work with Us

    • Student Ambassador Initiative
    • Wolfram for Startups
    • Student Opportunities
    • Jobs Using Wolfram Language

    Educational Programs for Adults

    • Summer School
    • Winter School

    Educational Programs for Youth

    • Middle School Camp
    • High School Research Program
    • Computational Adventures

    Read

    • Stephen Wolfram's Writings
    • Wolfram Blog
    • Wolfram Tech | Books
    • Wolfram Media
    • Complex Systems
    • Educational Resources
      • Wolfram MathWorld
      • Wolfram in STEM/STEAM
      • Wolfram Challenges
      • Wolfram Problem Generator
    • Wolfram Initiatives
      • Wolfram Science
      • Wolfram Foundation
      • History of Mathematics Project
    • Events
      • Stephen Wolfram Livestreams
      • Online & In-Person Events
    • Contact Us
    • Connect & Follow
  • Wolfram|Alpha
  • Wolfram Cloud
  • Your Account
  • User Portal
Wolfram Language & System Documentation Center
RSolveValue
  • See Also
    • RSolve
    • AsymptoticRSolveValue
    • RecurrenceTable
    • RFixedPoints
    • RStabilityConditions
    • Solve
    • Sum
    • ZTransform
    • GeneratingFunction
    • DifferenceRoot
    • DSolve
    • FindSequenceFunction
    • FindGeneratingFunction
    • FindLinearRecurrence
  • Related Guides
    • Discrete Calculus
    • Symbolic Vectors, Matrices and Arrays
  • Tech Notes
    • Solving Recurrence Equations
    • Implementation notes: Algebra and Calculus
    • See Also
      • RSolve
      • AsymptoticRSolveValue
      • RecurrenceTable
      • RFixedPoints
      • RStabilityConditions
      • Solve
      • Sum
      • ZTransform
      • GeneratingFunction
      • DifferenceRoot
      • DSolve
      • FindSequenceFunction
      • FindGeneratingFunction
      • FindLinearRecurrence
    • Related Guides
      • Discrete Calculus
      • Symbolic Vectors, Matrices and Arrays
    • Tech Notes
      • Solving Recurrence Equations
      • Implementation notes: Algebra and Calculus

RSolveValue[eqn,expr,n]

gives the value of expr determined by a symbolic solution to the ordinary difference equation eqn with independent variable n.

RSolveValue[{eqn1,eqn2,…},expr,…]

uses a symbolic solution for a list of difference equations.

RSolveValue[eqn,expr,{n1,n2,…}]

uses a solution for the partial recurrence equation eqn.

Details and Options
Details and Options Details and Options
Examples  
Basic Examples  
Scope  
Basic Uses  
Linear Difference Equations  
Nonlinear Difference Equations  
Show More Show More
Systems of Difference Equations  
Partial Difference Equations  
Q–Difference Equations  
Functional Difference Equations  
Limits of Recursive Sequences  
System Models  
Generalizations & Extensions  
Options  
GeneratedParameters  
Method  
Assumptions  
Applications  
Properties & Relations  
Possible Issues  
Neat Examples  
See Also
Tech Notes
Related Guides
History
Cite this Page
BUILT-IN SYMBOL
  • See Also
    • RSolve
    • AsymptoticRSolveValue
    • RecurrenceTable
    • RFixedPoints
    • RStabilityConditions
    • Solve
    • Sum
    • ZTransform
    • GeneratingFunction
    • DifferenceRoot
    • DSolve
    • FindSequenceFunction
    • FindGeneratingFunction
    • FindLinearRecurrence
  • Related Guides
    • Discrete Calculus
    • Symbolic Vectors, Matrices and Arrays
  • Tech Notes
    • Solving Recurrence Equations
    • Implementation notes: Algebra and Calculus
    • See Also
      • RSolve
      • AsymptoticRSolveValue
      • RecurrenceTable
      • RFixedPoints
      • RStabilityConditions
      • Solve
      • Sum
      • ZTransform
      • GeneratingFunction
      • DifferenceRoot
      • DSolve
      • FindSequenceFunction
      • FindGeneratingFunction
      • FindLinearRecurrence
    • Related Guides
      • Discrete Calculus
      • Symbolic Vectors, Matrices and Arrays
    • Tech Notes
      • Solving Recurrence Equations
      • Implementation notes: Algebra and Calculus

RSolveValue

RSolveValue[eqn,expr,n]

gives the value of expr determined by a symbolic solution to the ordinary difference equation eqn with independent variable n.

RSolveValue[{eqn1,eqn2,…},expr,…]

uses a symbolic solution for a list of difference equations.

RSolveValue[eqn,expr,{n1,n2,…}]

uses a solution for the partial recurrence equation eqn.

Details and Options

  • RSolveValue[eqn,a,n] gives a solution for a as a pure function.
  • The equations can involve objects of the form a[n+λ], where λ is a constant, or in general, objects of the form a[ψ[n]], a[ψ[ψ[n]]], a[ψ[…[ψ[n]]…]], where ψ can have forms such as:
  • n+λarithmetic difference equation
    μ ngeometric or -difference equation
    μ n+λarithmetic-geometric functional difference equation
    μ nαgeometric-power functional difference equation
    linear fractional functional difference equation
  • Equations such as a[0]==val can be given to specify end conditions.
  • If not enough end conditions are specified, RSolveValue will use general solutions in which undetermined constants are introduced.
  • The specification a∈Vectors[p] or a∈Matrices[{m,p}] can be used to indicate that the dependent variable a is a vector-valued or a matrix-valued variable, respectively. Alternatively, a can be specified as a VectorSymbol or MatrixSymbol. » »
  • The constants introduced by RSolveValue are indexed by successive integers. The option GeneratedParameters specifies the function to apply to each index. The default is GeneratedParameters->C, which yields constants C[1], C[2], ….
  • GeneratedParameters->(Module[{C},C]&) guarantees that the constants of integration are unique, even across different invocations of RSolveValue.
  • For partial recurrence equations, RSolveValue generates arbitrary functions C[n][…].
  • Solutions given by RSolveValue sometimes include sums that cannot be carried out explicitly by Sum. Dummy variables with local names are used in such sums.
  • RSolveValue[eqn,a[Infinity],n] gives the limiting value of the solution a at Infinity.
  • RSolveValue handles both ordinary difference equations and ‐difference equations.
  • RSolveValue handles difference‐algebraic equations, as well as ordinary difference equations.
  • RSolveValue can solve linear recurrence equations of any order with constant coefficients. It can also solve many linear equations up to second order with nonconstant coefficients, as well as many nonlinear equations.
  • RSolveValue[u[t]sys,resp,t] can be used for solving discrete-time models, where sys can be a TransferFunctionModel or a StateSpaceModel and the response function resp can be one of the following: »
  • "StateResponse"state response of sys to the input
    "OutputResponse"output response of sys to the input

Examples

open all close all

Basic Examples  (4)

Solve a difference equation:

Include a boundary condition:

Get a "pure function" solution for a:

Plot the solution:

Solve a functional equation:

Obtain the value of the solution at a point:

List of values:

Scope  (54)

Basic Uses  (9)

Compute the general solution of a first-order difference equation:

Obtain a particular solution by adding an initial condition:

Plot the solution of a first-order difference equation:

Make a table of values:

Verify the solution of a difference equation by using a in the second argument:

Obtain the general solution of a higher-order difference equation:

Particular solution:

Solve a system of difference equations:

Plot their solution:

Verify the solution:

Compute the value of the solution at a point:

Compute the limiting value of the solution at Infinity:

Solve a partial difference equation:

Obtain a particular solution:

Plot the resulting solution:

Use different names for the arbitrary constants in the general solution:

Linear Difference Equations  (7)

Geometric equation:

First-order equation with variable coefficients:

A third-order constant coefficient equation:

Initial value conditions:

Plot the solution:

Second-order inhomogeneous equation:

Second-order variable coefficient equation in terms of elementary functions:

Euler–Cauchy equation:

In general, special functions are required to express solutions:

Higher-order inhomogeneous equation with constant coefficients:

Nonlinear Difference Equations  (5)

Solvable logistic equations:

Riccati equations:

Solutions in terms of trigonometric and hyperbolic functions:

Higher-order equations:

Nonlinear convolution equation:

Systems of Difference Equations  (8)

Linear system with constant coefficients:

With boundary conditions:

Plot their solution:

Linear fractional systems:

Diagonal system:

Variable coefficient linear system with a polynomial solution:

Linear constant coefficient difference-algebraic system:

An index-2 system:

Solve a linear system using vector variables:

Alternatively, define as a VectorSymbol:

Solve a linear system using matrix variables:

Alternatively, define as a MatrixSymbol:

Solve an inhomogeneous linear system of ODEs with constant coefficients:

Partial Difference Equations  (3)

First-order linear partial difference equation with constant coefficients:

Substitute the function Sin[2k] for the free function C[1]:

Plot the resulting solution:

Constant coefficient linear equation of orders 2, 3, and 4:

Inhomogeneous:

Variable coefficient linear equation:

Q–Difference Equations  (6)

First-order constant coefficient -difference equation:

Equivalent way of expressing the same equation:

Initial value:

Second-order equation:

Third-order:

Inhomogeneous:

Using a numeric value for :

Plot solution:

Linear varying coefficient equations:

Nonlinear equations:

Riccati equation:

A linear constant coefficient system of -difference equations:

Functional Difference Equations  (4)

Find the general solution for an arithmetic difference equation:

Verify the solution:

Solve an initial value problem for an arithmetic-geometric difference equation:

Plot the solution:

Solve a linear fractional difference equation:

Make a table of values for the solution:

Solve a geometric power difference equation:

Verify the solution:

Limits of Recursive Sequences  (5)

Compute the limit of a linear recursive sequence:

Visualize the convergence of the sequence to its limiting value:

Compute the limit of a nonlinear recursive sequence:

Visualize the convergence of the sequence to its limiting value:

Compute the limit of a trigonometric recursive sequence:

Visualize the convergence of the sequence to its limiting value:

Compute the limit of a second-order recursive sequence:

Visualize the convergence of the sequence to its limiting value:

Compute the limit of the ratio of adjacent terms, f[n+1]/f[n], for the Fibonacci sequence, which satisfies the difference equation:

Solve the difference equation to find the ratio:

Compute the limit of the ratio using DiscreteLimit:

Visualize the convergence of the sequence to its limiting value:

Alternatively, compute the limit using DiscreteLimit in RSolveValue itself:

System Models  (7)

Calculate the OutputResponse and StateResponse of a discrete-time StateSpaceModel for a sinusoidal input:

The output response of a transfer function model to a sinusoidal input:

The response of a state-space model from nonzero initial conditions:

The state response of a single-input system to a unit step input:

Plot the response for eight steps:

The state response for a generic discrete-time system:

The output response to a unit step sequence:

The output response of a discrete-time system to a time-dependent input:

The response for τ=0.1:

Generalizations & Extensions  (2)

Obtain an expression for the square of the solution:

No boundary condition gives two generated parameters:

One boundary condition:

Two boundary conditions:

Options  (3)

GeneratedParameters  (1)

Use differently named constants:

Use subscripted constants:

Method  (1)

Solve a linear ordinary difference equation:

Obtain a solution in terms of DifferenceRoot:

Assumptions  (1)

Solve a second-order linear ordinary difference equation:

Use Assumptions to specify that the parameter λ is positive:

Applications  (13)

This models the amount a[n] at year n when the interest r is paid on the principal p only:

Here the interest is paid on the current amount a[n], i.e. compound interest:

Here a[n] denotes the number of moves required in the Tower of Hanoi problem with n disks:

Here a[n] is the number of ways to tile an n×3 space with 2×1 tiles:

The number of comparisons for a binary search problem:

Number of arithmetic operations in the fast Fourier transform:

The nested radical satisfies a nonlinear difference equation:

Compute the exact value of the nested radical:

Visualize the convergence of the sequence to the exact value:

The integral satisfies the difference equation:

The integral satisfies the difference equation:

The difference equation for the series coefficients of :

The determinant of an n×n tridiagonal matrix with diagonals c, a, b satisfies:

This models the surface area s[n] in dimension n of a unit sphere:

The volume of the unit ball in dimension n:

Applying Newton's method to , or computing :

Applying the Euler forward method to yields:

Solve the difference equation that describes the complexity of Karatsuba multiplication:

Compare with the complexity of schoolbook multiplication:

Efficiently compute the n^(th) term of a linear recurrence for large n:

Properties & Relations  (10)

RSolveValue returns an expression for the solution:

RSolve returns a rule for the solution:

Solutions satisfy their difference and boundary equations:

Difference equation corresponding to Sum:

Difference equation corresponding to Product:

RSolveValue finds a symbolic solution for this difference equation:

RecurrenceTable generates a procedural solution for the same problem:

FindLinearRecurrence finds the minimal linear recurrence for a list:

RSolveValue finds the sequence satisfying the recurrence:

LinearRecurrence generates the n^(th) term for a linear recurrence:

Obtain the same result using RSolveValue:

Use RecurrenceFilter to filter a signal:

Solve the corresponding difference equation using RSolveValue:

Forecast the next value for a time series based on ARProcess:

Obtain the same result using RSolveValue:

Use RFixedPoints to find the fixed points for a system of two recurrence equations:

Use RStabilityConditions to analyze the stability of the fixed point:

Solve the system using a fixed point as the initial condition:

Solve the system for given initial conditions:

Plot the solution:

Possible Issues  (4)

Capital and capital cannot be used as independent variables:

Replacing them by lowercase or lowercase fixes the issue:

The solution to this difference equation is unique as a sequence:

As a function it is only unique up to a function of period 1:

RSolveValue returns only a single branch if the solution has multiple branches:

Use RSolve to get all of the solution branches:

Verify the solution when the equation involves subscripted variables:

Neat Examples  (1)

Compute the n^(th) iterate or composition of a function:

See Also

RSolve  AsymptoticRSolveValue  RecurrenceTable  RFixedPoints  RStabilityConditions  Solve  Sum  ZTransform  GeneratingFunction  DifferenceRoot  DSolve  FindSequenceFunction  FindGeneratingFunction  FindLinearRecurrence

Tech Notes

    ▪
  • Solving Recurrence Equations
  • ▪
  • Implementation notes: Algebra and Calculus

Related Guides

    ▪
  • Discrete Calculus
  • ▪
  • Symbolic Vectors, Matrices and Arrays

History

Introduced in 2014 (10.0) | Updated in 2017 (11.2) ▪ 2022 (13.1) ▪ 2023 (13.3) ▪ 2024 (14.0) ▪ 2025 (14.2)

Wolfram Research (2014), RSolveValue, Wolfram Language function, https://reference.wolfram.com/language/ref/RSolveValue.html (updated 2025).

Text

Wolfram Research (2014), RSolveValue, Wolfram Language function, https://reference.wolfram.com/language/ref/RSolveValue.html (updated 2025).

CMS

Wolfram Language. 2014. "RSolveValue." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2025. https://reference.wolfram.com/language/ref/RSolveValue.html.

APA

Wolfram Language. (2014). RSolveValue. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RSolveValue.html

BibTeX

@misc{reference.wolfram_2025_rsolvevalue, author="Wolfram Research", title="{RSolveValue}", year="2025", howpublished="\url{https://reference.wolfram.com/language/ref/RSolveValue.html}", note=[Accessed: 04-February-2026]}

BibLaTeX

@online{reference.wolfram_2025_rsolvevalue, organization={Wolfram Research}, title={RSolveValue}, year={2025}, url={https://reference.wolfram.com/language/ref/RSolveValue.html}, note=[Accessed: 04-February-2026]}

Top
Introduction for Programmers
Introductory Book
Wolfram Function Repository | Wolfram Data Repository | Wolfram Data Drop | Wolfram Language Products
Top
  • Products
  • Wolfram|One
  • Mathematica
  • Notebook Assistant + LLM Kit
  • Compute Services
  • System Modeler

  • Wolfram|Alpha Notebook Edition
  • Wolfram|Alpha Pro
  • Mobile Apps

  • Wolfram Engine
  • Wolfram Player

  • Volume & Site Licensing
  • Server Deployment Options
  • Consulting
  • Wolfram Consulting
  • Repositories
  • Data Repository
  • Function Repository
  • Community Paclet Repository
  • Neural Net Repository
  • Prompt Repository

  • Wolfram Language Example Repository
  • Notebook Archive
  • Wolfram GitHub
  • Learning
  • Wolfram U
  • Wolfram Language Documentation
  • Webinars & Training
  • Educational Programs

  • Wolfram Language Introduction
  • Fast Introduction for Programmers
  • Fast Introduction for Math Students
  • Books

  • Wolfram Community
  • Wolfram Blog
  • Public Resources
  • Wolfram|Alpha
  • Wolfram Problem Generator
  • Wolfram Challenges

  • Computer-Based Math
  • Computational Thinking
  • Computational Adventures

  • Demonstrations Project
  • Wolfram Data Drop
  • MathWorld
  • Wolfram Science
  • Wolfram Media Publishing
  • Customer Resources
  • Store
  • Product Downloads
  • User Portal
  • Your Account
  • Organization Access

  • Support FAQ
  • Contact Support
  • Company
  • About Wolfram
  • Careers
  • Contact
  • Events
Wolfram Community Wolfram Blog
Legal & Privacy Policy
WolframAlpha.com | WolframCloud.com
© 2026 Wolfram
© 2026 Wolfram | Legal & Privacy Policy |
English