The given series can be rewritten as:
∑n=1∞3nxn=∑n=1∞(3x)n. This is a geometric series with first term a=3x and common ratio r=3x. A geometric series ∑n=1∞arn−1 converges to 1−ra if ∣r∣<1. In our case, we have ∑n=1∞arn. Then, ∑n=1∞(3x)n=∑n=1∞3x(3x)n−1. So, a=3x and r=3x. The series converges if ∣r∣=∣3x∣<1, which means ∣x∣<3 or −3<x<3. The sum of the geometric series is given by:
S=1−ra=1−3x3x=33−x3x=3−xx. The sum of a geometric series ∑n=0∞rn is 1−r1 for ∣r∣<1. Here we have ∑n=1∞(3x)n=∑n=0∞(3x)n−(3x)0=1−3x1−1=33−x1−1=3−x3−1=3−x3−(3−x)=3−xx.