Documentation
Symbulator 7 7

Lesson 2

Symbolic circuits and expert mode

Learn how to solve different types of symbolic circuits in Symbulator. Use the solve command on Symbulator answers. And explore ex, the powerful expert mode, for the ambitious user.

Last updated 2026-08-29

Here you will learn about the types of symbolic circuits and how to solve them in Symbulator, using the solve command when needed, and — for the more adventurous — the powerful expert mode.

2.1About symbolic problems

The problem we saw in Lesson 1 was a numerical problem because it involved a numerical circuit: from the start, we knew the values of all its elements. None were unknown.

A circuit with one or more elements whose value we do not know is a symbolic circuit. A symbolic problem is one that involves a symbolic circuit. It gives me great joy when I encounter a symbolic problem, because the ability to simulate symbolic circuits is what sets Symbulator apart from other programs.

I find it useful to distinguish between two types of symbolic problems:

  • Purely symbolic problems use symbolic circuits whose answers are also symbolic, given as expressions of unknown variables. Solving them in Symbulator is as straightforward as solving numerical problems.
  • Numerical-from-symbolic problems start with a symbolic circuit but ask for numerical answers. That is possible when the problem gives us more information about the circuit.

Numerical-from-symbolic problems can be solved in two ways. If they are simple — one or two unknown values, one or two numerical answers wanted — it is quicker to simulate the circuit symbolically and then solve for the numerical answers with the solve command of the calculator. If they are not simple, it is easier to use expert mode.

Let's see an example of each.

Solving a purely symbolic problem

Since Symbulator is natively a symbolic simulator, there is nothing special about solving a purely symbolic problem. The only limitation comes from the computing capacity of the calculator: while small circuits can be solved relatively fast, larger circuits may be too slow to solve and may cause a memory error.

Let's see a simple purely symbolic problem, from Fundamentals of Electric Circuits by Alexander and Sadiku (5th edition), from now on referred to as AS5.

AS5's Figure 2.29

AS5's Figure 2.29

Solution

All the values in this circuit are variables: no element value is known. This is an example of a symbolic circuit. Imagine you are asked to find symbolic expressions for the current i, the voltage drop in R2, and the power consumed by R1 and R2. Since we are being asked to find symbolic answers from a symbolic circuit, this is a purely symbolic problem.

This is how I would describe this circuit. First, the nodes. The node called a in the schematic stays node a. The node called b is my ground, so it becomes node 0. The node between the two resistors I call c.

Then the elements. I name the source ev and the resistors r1 and r2, and give them variables for values: v for the source, r1 and r2 for the resistors. It is no problem that a symbolic value carries the same name as its element.

type
"ev,a,0,v:r1,a,c,r1:r2,c,0,r2"→cir
s\dc(cir)

This simulation took 15 seconds in my calculator. To find the current i, we ask for ir1 or ir2. To find the voltage drop on r2, we ask for vr2.

Both are expressions rather than numbers:

\[i_{r1} = \dfrac{v}{r1 + r2} \quad\text{and}\quad v_{r2} = \dfrac{r2\,v}{r1 + r2}\]

which is the voltage divider you would have written by hand.

To find the power consumed in r2, we ask for pr2. To find the power delivered by the source, we ask for the negative of pev.

\[p_{r2} = \dfrac{r2\,v^2}{(r1 + r2)^2} \quad\text{and}\quad -p_{ev} = \dfrac{v^2}{r1 + r2}\]

It is this ability to simulate symbolically, as if it were nothing, that puts Symbulator in a league of its own. Symbolic answers from a symbolic circuit take no extra effort.

2.2Numerical from symbolic, with solve

Getting numerical answers from a symbolic circuit, on the other hand, takes an extra step: the solve command, as in this next example, or expert mode, as in the one after.

B11's Example 5.6, with solve

B11's Example 5.6

Solution

This is a very nice numerical-from-symbolic problem. We can solve it into numbers because, although it hides two values from us (the source E and the resistor R1), it gives us in exchange two answers (the equivalent resistance RT and the current I3) to solve for them with.

Since this circuit is structurally identical to B11's Example 5.7 solved in Lesson 1, we will use the same names for the nodes. The description is identical except for the values. Symbulator accepts numbers, variables or even algebraic expressions as values. Here I use e for source e, and r1 for resistor r1.

type
"e,1,0,e:r1,1,2,r1:r2,2,3,4'k:r3,3,0,6'k"→cir
s\dc(cir)

A moment later Symbulator is done. From its symbolic answers and the answers the problem gives us, we write two equations and solve them for the two unknowns.

The problem says that I3 is 6 mA. In Symbulator, I3 is ir3, the current through resistor r3. If you evaluate it, you will see it produces an algebraic expression in terms of the two unknowns, e and r1. This is what we call a symbolic answer. The problem also says that RT is 12 kΩ; the equivalent resistance as seen by the source e is given by re, which when evaluated gives another algebraic expression in terms of r1. We can then write two new equations and solve them for e and r1:

type
solve(re=12000 and ir3=.006,{e,r1})

An instant later we get the answers: e = 72 V and r1 = 2000 Ω. These are the right answers. Not many other circuit simulators allow this flexibility.

2.3Numerical from symbolic, using ex

Symbulator's true strength is seen in numerical-from-symbolic problems like the one we solved above, when we use its expert mode of simulation. Expert mode cracks these problems open even faster, and gives fully numerical answers whenever the problem provides as many answers as it hides values. Learning it pays off handsomely in power and speed.

Let's solve the same circuit again, this time using the expert mode's program ex.

B11's Example 5.6, using ex

Solution

We will use the same circuit description as before, with a single change: we will use rx for the value of resistor R1, instead of the r1 value we used before. Like this:

type
"e,1,0,e:r1,1,2,rx:r2,2,3,4'k:r3,3,0,6'k"→cir

We use rx instead of r1 because expert mode saves the value it finds into that variable, and r1 — like the other r# variables — cannot store anything: trying to results in an error.

To run an expert mode simulation, type this:

type
s\ex(cir)

When prompted, select DC and press Enter. Now you will see a prompt asking you to add equations, variables and conditions. You may recall from algebra that solving a set of equations into numbers needs as many equations as unknowns. The statement of the problem gives us the information we need to write the two additional equations.

In "Add equations" type:

type
re=12'k and ir3=6'm

In "Add unknowns" type:

type
e,rx

Now we have six variables and six equations. Press Enter and wait a few seconds. A few other dialogs appear; in this and every other expert example in this volume, just press OK without changing anything. When Symbulator says "Done", go ahead and retrieve the answers: rx gives 2000 and e gives 72. Both are right.

The speed advantage is not obvious in so simple a problem, but the idea is: you halt the simulation in mid-air and give Symbulator extra information. Had the circuit been larger, the saving would be clear.

2.4Instructive symbolic examples, solved

Numeric-from-symbolic, with solve

HK5's Figure 1-24a (solve)

Determine ix and vx in the following circuit:

I named the nodes thus: bottom is 0, top left is 1, top right is 2. I named the elements according to their value: this facilitates remembering who's who in the circuit. I also defined the resistors' nodes in the direction of the current indicated in the diagram.

type
s\dc("e18,1,0,18:ra,1,0,ra:r6,1,0,6:r5,2,1,5:evx,2,0,vx")

Explore the answers. Since ir5 (which we know is 12 A) is in terms of vx, we can find vx:

type
solve(ir5=12,vx)

We get that vx is 78 V, which is correct. Evaluating ir6 we find that ix is 3 A. The fact that we can find numerical answers in this problem can be quite puzzling until one realizes that ignoring the value of RA doesn't matter: due to the circuit's structure, it is not needed to answer the two questions we have been asked.

Numeric-from-symbolic, with Expert

B11's Example 6.19 (Expert)

This problem, having three unknown element values and three known answers, is a perfect candidate for the expert mode. Below is my circuit description.

type
s\ex("e,1,0,e:r1,1,0,2'k:r2,1,0,r2:r3,1,0,r3")

Select DC. Add these three equations:

type
ir1=8'm and ir2=10'm and ir3=2'm

Add these unknowns:

type
e,r2,r3

Press Enter and Enter. When Symbulator is Done, find IS and E by asking:

type
approx(-ie1)

We get that IS is 0.02 A.

type
e

We get that E is 16 V. These are correct.

B11's Example 7.12 (Expert)

Determine R1, R2 and R3 for the voltage divider supply. Can 2W resistors be used?

This problem is also perfect for the expert mode, because: (a) the target is to obtain numerical values, and (b) we have N unknown element values, and in turn we are given N numerical answers. Here is how I solved it:

type
s\ex("e,a,c,72:r1,a,b,r1:r2,b,0,r2:r3,0,c,r3:rl1,a,0,rl1:rl2,b,0,rl2")

Choose DC. Add these five equations:

type
irl1=20'm and vrl1=60 and irl2=10'm and vrl2=20 and -ie=50'm

Add these five variables to the list of first level variables:

type
r1,r2,r3,rl1,rl2

Press Enter and Enter. When Done, evaluate these variables to find the answers: r1 = 1333.3 Ω, r2 = 1000 Ω, r3 = 240 Ω. These are correct.

Then we ask for the powers consumed in the resistors, and find that:

pr1 is 1.2 W, pr2 is 0.4 W, and pr3 is 0.6 W

Since all are smaller than 2W, it is possible to use 2W resistors in the design.