Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

Find the solution of the recurrence relation an=3an-1-3an-2+an-3if a0=2,a1=2, anda2=4.

Short Answer

Expert verified

The solution is

an=α1+α2n+α3n2=2-n+n2

Step by step solution

01

Given data

We have given,

an=3an-1-3an-2+an-3a0=2a1=2a2=4

02

Definition

The equation is said to be linear homogeneous difference equation if and only R(n)=0if and it will be of order n.

The equation is said to be linear non-homogeneous difference equation if R(n)0

03

SOLUTION HOMOGENEOUS RECURRENCE RELATION

Given:

an=3an-1-3an-2+an-3a0=2a1=2a2=4

Let,

an=r3,an-1=r2,an-2=ran-3=1(Let any other terms be zero)

r3=3r2-3r+1r3-3r2+3r-1=0(r-1)3=3±(-3)2-4(1)(-2)2r-1=0r=0withmultiplicity3

04

SOLUTION NON-HOMOGENEOUS RECURRENCE RELATION

The solution of the recurrence relation is of the form an=α1r1n+α2nr1n++αknk-1r1nwith r1aroot with multiplicity kof the characteristic equation.

an(h)=α1·1n+α2·n·1n+α3·n2·1n=α1+α2n+α3n2

Use initial conditions:

2=a0=α12=a1=α1+α2+α34=a2=α1+2α3+4α3

Use α1=2the other equations

2=2+α2+α34=2+2α3+4α3

Subtract 2 from each side of each equation

0=α2+α32=2α3+4α3

Multiply the first equation by 2

0=2α2+2α32=2α3+4α3

Subtract the two equations

2=2α31=α3

Determine α2,

α2=-α3=-1

Hence, the solution is

an=α1+α2n+α3n2=2-n+n2

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with Vaia!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Study anywhere. Anytime. Across all devices.

Sign-up for free