Faraday JR provides a remarkably clear and systematic breakdown of the primal-dual transformation, making a core concept of optimization theory highly accessible. It is an essential resource for anyone looking to master the structural symmetry of linear programming with precision.
Deep Dive
Prerequisite Knowledge
- No data available.
Where to go next
- No data available.
Deep Dive
Chapter 3 | Part 02: Dual Form of A LP Model | Faraday JRAdded:
Welcome to Faraday Junior YouTube channel.
In this episode, we are going to look at the dual form of a linear programming model.
All right. As I said earlier, every linear or every LP problem is having two forms.
We have the first or the original form that is known as the primal and then we have the second second form that is known as the dual.
So, normally all the problems we solved so far, we've been dealing with the primal.
Yes, so we are going to look at the dual form or when you are given a linear program model in the primal form, how do you convert it to the primal form. But before then, let me talk this.
Whenever you have a maximization model when you have a maximization model in the primal state, primal in the dual, you have it to be a minimization problem. And then when you have a minimization when you convert it to the dual, you have it to be a maximization.
And then the number of variables in the dual form, number of variables in the dual form in the dual form is equal to the number of constraints in the primal.
Yes.
And there are other relationships between the There are more relationships between the uh primal and then the dual form.
You can refer to your handbook or do your own research and then get more of them, but I think these are the two that I want to share with you.
So, let's take an example.
Let's take an example.
So, we have this maximization problem and then we have to convert it to the dual form.
So, what do we do?
Uh you know, as I said earlier, I said the number of constraints in the or the the variables in the dual form is equal to the number of constraints we have in the primal form. So, this is the primal.
How many constraints we have here? We have three constraints. One, two, three.
Which means that in the dual form, we are supposed to have three decision variables or three variables.
Yes, so let's quickly convert this to its dual form. So, we have X1 plus 2 X2 or equal to 10.
This is one.
Plus 6 X2 This is 2 X1 plus 4 X2 equal to 40.
So, we do this Y1, Y2, Y3.
Let us assign one variable to each of every constraint. So, Y1 for the first constraint, Y2 for the second constraint and then Y3 for the third constraint.
So, this is how we are going to write our our constraint for the dual form. We go this way.
So, here we are going to What's the coefficient of We use the coefficient The coefficient of this one, X1 here is one. So, 1 Y1.
The coefficient of X1 here is 6. So, 6 Y2.
Plus 6 Y2. The coefficient of X1 here is 8. So, plus 8 Y3.
Then the coefficient of X1 in the objective function here is 4. So, we equate it to 4. So, we Sorry.
It will be this way.
Yes.
4.
Less than or equal to 4.
Then we go to the Remember I said when we have a maximization problem in the primal state, its duality will give us a minimization minimization problem. So, this is supposed to be So, it will no longer be less than or equal to since it will be a minimization problem, it's going to give us greater than or equal to 4. So, let's do for the second constraint or this.
So, we have to the coefficient of X2 here is 2. So, 2 Y1 plus this 6 here, Y2.
So, 6 Y2 plus this 4 here, 4 Y3.
4 Y3 greater than or equal to the coefficient of X2 in the maximization or the objective function is 5.
So, 5. You realize that the number of variables you have here, the number of variables you have in the dual form is equal to the number of constraints we have here. We have how many variables?
Y1, Y2, Y3, three variables. It's equal to the number of constraints we have here. We have one, two, three constraints. And the number of constraints we have in the dual form is equal to the number of variables we have in the primal state. You see in the primal state we have X1 and X2 only.
Yes, so we have two variables here.
Then that gave us two constraints here. And then we have three constraints here.
And that gave us three variables here.
Yes, so our objective function will now be min of ZD is equal to So, 10 Y1 10 Y1 plus 36 Y2 plus 40 Y3.
So, this will be our answer for this question. And our non-negativity restriction will be Y1, Y2, Y3 all greater than or equal to zero. So, this is the dual form of the problem. This is the dual form for this problem. All right, let's take another example where we have where we have equal sign and then Yes.
Then we have equal sign.
So, when you have equal sign, what do you do?
Or what do we do?
This is a maximization problem.
And then we have the equal sign in it.
So, you will just go ahead and then convert it to the dual form just like how we did the previous one, but then you have an unrestricted variable in it. So, you let's go ahead and do it. So, you have 4 X1 plus 2 X2 24.
They are X1 plus 7 X2 28.
2 X1 plus 3 X2 Sorry, this is supposed to be equal sign.
This is equal to. Sorry.
18.
All right, so as we did earlier, Y1 for the first constraint, Y2 for the second constraint and Y3 for the third constraint. So, the dual form is going to give us As I said earlier, you write the equation this way by transposing the matrix.
So, 4 Y1 because of this 4 and Y1.
And then you have 1 here and Y2.
So, plus Y2 plus 2 Y3.
Y3.
This is a maximization problem.
And it is less than or equal to, so it should give us a minimization problem, so greater than or equal to.
And that will be the coefficient of X1 in the objective function, 3.
And let's go to the second constraint.
We are going to write it this way. So, 2 Y1 plus 7 Y2 plus 3 Y3 less than or equal to this 7.
All right.
So, we are going to have our objective function to be ZD values.
24 Y1 plus 28 Y2 plus 18 Y3.
And our restrictions is going to be our non-negativity restriction is going to be Y1, Y3 greater than or equal to zero.
And our Y2 because that was the variable assigned to the constraint with the equal sign, so that one is going to be unrestricted.
Unrestricted.
It's just as simple as that. So, that's the dual form of the linear program model given. So, whenever you have an equal sign, the variable you assigned to the constraint with the equal sign is going to be unrestricted.
All right, so let's take another example.
Let me take another example where we have a greater than or equal to constraint in a maximization problem or where we have mixed constraints.
Let me take this out.
So we have mixed constraints.
As we have mixed constraints here and then an unrestricted variable here as well.
So let's see how we are going to solve this problem.
So you can see that this is a maximization problem. You know that all maximization problems have are supposed to have all maximization constraints are supposed to have less than or equal to constraints. But here we have greater than or equal to constraint. So what do we do?
You have to multiply that particular constraint by -1. So this constraint you're going to multiply both sides, the right the right hand side and the left hand side by -1 so that we convert this greater than or equal to to less than or equal to. So let's quickly do that. So we write our constraints.
We have x1 plus 4 x2 plus 2 x3 less than or equal to 16.
We have 3 x2 plus x3 equal to 10.
And then we have -6 x1 plus 2 x2 Sorry, minus.
That should be minus because you are multiplying you are multiplying minus one throughout.
So that should be minus.
And then this sign this sign the greater than or equal to is going to change to less than or equal to and this one is also going to be minus 20. As simple as that. So we go ahead and then convert this to the dual form.
Go ahead and then convert this to the dual form.
So doing that we are going to assign our variables to the constraint y1, y2, y3.
So as we do and so. So we have one here so 1 y1 plus here you don't have any so 0 y2 can just not write it.
0 y2 and then -6 y3.
So -6 y3.
Then equal to 10.
Yeah, then we move to the next one. The 10 here is a is a 0 to or is the coefficient of 10 in the coefficient of x1 in the objective function here.
We move to the next one, x2.
So 4 y1 plus 3 y2 minus 2 y3 all greater than or equal to the coefficient of x2 in the objective function that's 3.
We move to the last one on this side.
So 2 y1 plus plus y2 all equal to 8.
You will understand why we have equal sign here.
This is because we have x3 to be unrestricted.
You know that when we have when we have an equal sign in the primal we have an equal sign in the primal and then we convert it to the dual the variable that is assigned to the constraint with the equal sign is given as unrestricted.
So it's just the same idea that you do it.
So this x3 means that the third constraint is having equal sign. Simple as that.
So this one our non-negativity restriction is going to be this way and then we are going to have y2 to be unrestricted.
This is because our second constraint here is having equal sign.
So our second variable is unrestricted.
This as we have the we have x3 to be unrestricted here and our third constraint in the dual form is also having equal sign. So it's just the same idea that you do it. So our >> [music]
Related Videos
Escaping the Fog
LogicLemurGaming
760 views•2026-06-03
Olympiad Mathematics | Indian | Can You Solve This One?
PhilCoolMath
650 views•2026-06-03
A Brutal Radical Expression Made Easy! The Shortcut Changes Everything.
tamoshop
112 views•2026-06-02
V : jee main /advance class 11 mathematics : Binomial Theorem class-1 ( 29 may 2026 )
dcamclassesiitjeemainsadva9953
125 views•2026-05-29
Is This Pentomino Tileable?
3cycle
241 views•2026-05-30
This Sudoku Has Many Lines!!
CrackingTheCryptic
2K views•2026-05-29
Olympiad Mathematics | Indian Can You Solve This One?
PhilCoolMath
268 views•2026-06-02
Olympiad Mathematics | Indian | Can You Solve This?
PhilCoolMath
669 views•2026-06-02











