NEETJEE.guru
MathematicsJEE

Objective Function in Linear Programming

By Admin 13 November 2026 Updated 27 November 2026 9 min read 10 views
On this page· 13 sections
Overview

Source & scope. Class 12 Mathematics, Chapter 12 Linear Programming, Section 12.2.1 Mathematical formulation of the problem. Builds on: Decision Variables in Linear Programming. Next: Constraints and Non-Negative Restrictions in Linear Programming, after which the three pieces together make up the f...

Source & scope. Class 12 Mathematics, Chapter 12 Linear Programming, Section 12.2.1 Mathematical formulation of the problem. Builds on: Decision Variables in Linear Programming. Next: Constraints and Non-Negative Restrictions in Linear Programming, after which the three pieces together make up the full mathematical formulation.

The objective function is the linear function Z = ax + by, where a and b are constants, that a linear programming problem asks to be maximised or minimised. NCERT defines it formally: "Objective function: Linear function Z = ax + by, where a, b are constants, which has to be maximised or minimized is called a linear objective function." In the furniture-dealer example, Z = 250x + 75y is the objective function representing total profit.

At a glance

  • The objective function is written , with a, b constants and x, y the decision variables.
  • It is always linear — no squared terms, no products of variables.
  • The LPP's goal is to either maximise or minimise this function.
  • In the furniture-dealer problem, represents total profit in rupees.
  • The objective function is evaluated at each corner point of the feasible region to find the optimal value (see sibling articles).

Learning objectives

  • State the general form of a linear objective function, Z = ax + by.
  • Construct an objective function from a word problem.
  • Explain why the objective function must be linear.
  • Distinguish the objective function from the constraints.

Prerequisite knowledge

The reader should already know what decision variables are (see the dedicated sibling article); the objective function is written directly in terms of those decision variables.

Core explanation

NCERT's definition. After introducing x (number of tables) and y (number of chairs) as decision variables, NCERT derives the dealer's total profit: since a table earns Rs 250 profit and a chair earns Rs 75 profit, buying x tables and y chairs earns a total profit of Z = 250x + 75y. NCERT calls Z "the objective function," and the general definition reads: "Objective function: Linear function Z = ax + by, where a, b are constants, which has to be maximised or minimized is called a linear objective function."

General form. The objective function always has the form Z = ax + by for a two-variable LPP, where a and b are fixed numerical coefficients (determined by the problem's data, such as profit-per-unit or cost-per-unit figures) and x, y are the decision variables. Because a and b are constants and x, y appear only to the first power with no product xy, Z = ax + by is a linear function — consistent with the requirement that every part of an LPP (objective function and constraints alike) be linear.

Constructing the objective function from a word problem. The practical skill is translating a verbal statement like "profit of Rs 250 per table and Rs 75 per chair" into the algebraic expression Z = 250x + 75y. Each coefficient (250, 75) is the per-unit value of the quantity being optimised (here, profit), multiplied by the corresponding decision variable (x tables, y chairs), and the products are added together since the total profit from tables and the total profit from chairs combine additively.

Maximise or minimise. Unlike a constraint, which simply restricts the variables, the objective function is the one expression the entire problem is built around: the LPP's instruction always begins with either "Maximise Z = ..." (as in the furniture-dealer problem, since profit should be as large as possible) or "Minimise Z = ..." (as in NCERT's Example 2, which minimises a cost function Z = 200x + 500y). Some LPPs, such as NCERT's Example 3, ask for both the minimum and the maximum of the same objective function over the same feasible region.

Role in the solution process. Once the feasible region is found (covered in a sibling article), the objective function is evaluated at every corner point of that region, and by the Corner Point Method (a separate sibling article), the largest or smallest of these values gives the optimal value of Z. The objective function is therefore the single expression that all of the graphical work in this chapter is ultimately computing.

Key terms

  • Objective function (Z) — the linear function Z = ax + by that an LPP seeks to maximise or minimise.
  • Coefficients (a, b) — the fixed per-unit values (e.g., profit per table, profit per chair) multiplying the decision variables.
  • Maximise — seek the largest possible value of Z.
  • Minimise — seek the smallest possible value of Z.
  • Optimal value — the maximum or minimum value of Z actually found (see the sibling article on optimal feasible solutions).

Diagram / figure guidance

Show the furniture-dealer data as a small two-row table (Table: cost Rs 2500, profit Rs 250; Chair: cost Rs 500, profit Rs 75), with an arrow leading from the "profit" column straight into the formula Z = 250x + 75y, visually demonstrating how per-unit profit figures become the coefficients of the objective function.

Worked example

A dealer earns a profit of Rs 250 per table and Rs 75 per chair. If x is the number of tables and y is the number of chairs bought, write the objective function for maximising total profit.

Each table bought contributes Rs 250 to the profit, and since x tables are bought, tables contribute a total of 250x rupees. Similarly, each chair contributes Rs 75, and y chairs contribute 75y rupees in total. Because profit from tables and profit from chairs simply add together (there is no interaction term between tables and chairs), the total profit is Z = 250x + 75y. Since the dealer wants this total as large as possible, the objective function statement is: Maximise Z = 250x + 75y.

Common misconceptions

  • "The objective function can include products like xy if the problem seems to need it." It cannot, in a linear programming problem — a term like xy would make the function non-linear, taking it outside the scope of linear programming altogether.
  • "The objective function is a constraint." It is not — constraints restrict which values of x and y are allowed; the objective function is the single quantity being optimised across all the allowed (feasible) values.
  • "An LPP's objective function must always be maximised." It can equally be minimised; NCERT's own Example 2 is a minimisation problem, and Example 3 asks for both.
  • "The coefficients a and b in Z = ax + by can be variables themselves." They must be fixed constants, determined by the problem's given data (such as profit-per-unit), not unknowns to be solved for.

Exam application (JEE)

JEE regularly tests the construction of the objective function directly from word problems — translating "profit of Rs X per unit of A and Rs Y per unit of B" into Z = Xa + Yb style expressions is a near-universal first step. A frequent scoring error is mixing up which coefficient goes with which decision variable (e.g., attaching the chair's profit to x instead of y) — always double-check which decision variable represents which item before writing Z.

Frequently asked questions

  • What is an objective function in linear programming? It is the linear function Z = ax + by, with constant coefficients a and b, that an LPP seeks to maximise or minimise.
  • How do you form the objective function from a word problem? Multiply each decision variable by its per-unit contribution to the quantity being optimised (such as profit per unit), and add the results.
  • Can the objective function be minimised instead of maximised? Yes — an LPP can ask to minimise Z just as easily as maximise it, depending on the problem (e.g., minimising cost).
  • Why must the objective function be linear? Because linear programming, by definition, restricts both the objective function and the constraints to linear expressions — this is what makes the graphical method applicable.
  • Is the objective function the same as a constraint? No — the objective function is the single quantity being optimised; constraints are the separate conditions restricting which values of the decision variables are allowed.

Practice questions (original practice questions)

  1. If a product earns a profit of Rs 40 per unit of item P and Rs 60 per unit of item Q, and p, q are the units produced, the objective function to maximise profit is:
    • (a) Z = 40p + 60q
    • (b) Z = 60p + 40q
    • (c) Z = 40p − 60q
    • (d) Z = pq
    • Answer: (a) — Each item's profit multiplies its own decision variable, and the results are added.
  2. Which of the following could be a valid linear objective function?
    • (a) Z = x² + 2y
    • (b) Z = 3x + 5y
    • (c) Z = xy + 1
    • (d) Z = √x + y
    • Answer: (b) — Only option (b) is linear in x and y, with no squares, products, or roots.
  3. An LPP's objective function represents:
    • (a) A restriction on the decision variables
    • (b) The quantity to be maximised or minimised
    • (c) A fixed numerical constant
    • (d) The feasible region's boundary
    • Answer: (b) — The objective function is the single quantity the LPP seeks to optimise.
  4. In Z = ax + by, the letters a and b represent:
    • (a) The decision variables
    • (b) Fixed constants given by the problem's data
    • (c) The optimal value of Z
    • (d) Constraints on x and y
    • Answer: (b) — a and b are fixed coefficients (such as per-unit profit), not variables.
  5. A cost-minimisation LPP has objective function Z = 200x + 500y. This means:
    • (a) The problem seeks to make Z as large as possible
    • (b) The problem seeks to make Z as small as possible
    • (c) Z is a constraint, not an objective function
    • (d) x and y must both equal zero
    • Answer: (b) — "Minimisation" problems seek the smallest possible value of Z.

Quick revision

  • The objective function has the general form , with a, b constants.
  • It represents the quantity the LPP seeks to maximise or minimise.
  • It is always linear — built from the decision variables with no products or powers.
  • In the furniture-dealer problem: (total profit).
  • The objective function is evaluated at corner points to find the optimal value.

Related articles

NCERTMathematicsClass 12
Rate this article
No ratings yetSign in to rate

0 Comments

Sign in to join the discussion.

Objective Function in Linear Programming — JEE Notes | NEETJEE.guru