BrightChamps Logo
Login
Creative Math Ideas Image
Live Math Learners Count Icon104 Learners

Last updated on July 13th, 2025

Math Whiteboard Illustration

Objective Function

Professor Greenline Explaining Math Concepts

In linear programming, the objective function is used to represent and solve optimization problems. It is written in the basic form Z = ax + by, where x and y are the decision variables and a and b are constants. The objective function is either maximized or minimized to find the optimal solution. In this article, we will learn the objective function, related terms, and common types of objective functions.

Objective Function for Indian Students
Professor Greenline from BrightChamps

What is Objective Function?

An objective function represents a linear programming optimization problem and is used to solve. The equation for objective function is Z=ax+by, where Z is the value to be optimized, x and y are variables, and a and b are constants, where x > 0 and y > 0.
 

Professor Greenline from BrightChamps

What are the Common Types of Objective Functions

The objective functions can be classified into two types, such as:

 

  • Maximization Objective Function

 

  • Minimization Objective Function

 

 

Maximization Objective Function: It is a mathematical expression used for maximizing the quantity in an optimization condition. It is the value obtained at one of the vertices of the feasible region formed by the constraint. 

 

 

Minimization Objective Function: It is a mathematical expression where the quantity of the function has to be minimized under optimization. The solution typically lies at one of the vertices of the feasible region. 

Professor Greenline from BrightChamps

Methods of Solving Problems with Objective Functions:

There are different methods of solving problems with objective functions, such as:

 

 

  • Graphical Method

 

  • Northwest Corner Method

 

  • Iso-cost Method

 

 

Graphical Method: The graphical method involves converting the given problem to a mathematical equation and plotting it on an XY-plane. The feasible part is the region of intersection. 

 

 
Northwest Corner Method: First, we form an equation based on the given problem and then mark the feasible region. The objective function is then evaluated at each corner point of this region. If the feasible region is bounded, the highest and lowest values, denoted as N and n, give the maximum and minimum of the objective function. If the region is unbounded, the maximum exists only if the objective function’s open half-plane doesn’t overlap with the feasible region. Or else there is no solution

 

 

Iso-cost Method: In this method, we plot the constraints on a graph and identify the feasible region. Then plot the objective function, use the objective function, and choose any suitable value for the objective function Z, and draw its line. Draw a parallel line to the objective function line. Mark the coordinates of the corner points within the feasible region, and then decide a suitable value of Z and draw its corresponding line. 
 

Professor Greenline from BrightChamps

Theorems of Objective Function

In linear programming, the objective function follows two theorems that help in identifying the optimal solution:

 

 

  • If R is the feasible region of a linear programming problem and Z is the objective function, then the optimal value of Z will occur at a corner point of R.

 

  • If the feasible region R is bounded, the objective function will have both a maximum and a minimum value. 
     
Professor Greenline from BrightChamps

How to Solve an Objective Function

The linear programming problem is solved to find to maximize or minimize an objective function, in the form Z = ax + by. In this section, we will learn how to solve an objective function. 

 

 

Step 1: Representing the objective function Z = ax + by and the constraints x ≤ k, y ≤m as a straight line on the graph. It forms a feasible region, that is, the common overlapping area. 

 

 

Step 2: Identifying the corner points of the feasible region using a graph or solving equations where the constraints' line intersects each other 

 

 

Step 3: Calculating the objective function value for each of the corner points. Then identify the maximum and minimum value.  

 

 

Step 4: The values are easy to identify if the feasible region is bounded; if it is unbounded, then:

 

  • The maximum value of Z(M) exists only if the region does not stretch to areas where ax + by > M.

 

  • The minimum value of Z(m) only exists if the region doesn't extend into areas where ax + by < m. 
     
Professor Greenline from BrightChamps

Real-World Applications of Objective Function

The objective functions are used to quantify the goal of optimization problems and to find the optimal solution in different fields. Here are some of the real-life applications of the objective function. 

 

 

 

  •  In supply chain optimization to find the minimum total cost while meeting demand, we use the objective function

 

  • An objective function can be used to plan a healthy and affordable diet by determining the optimal quantity of each food item to include, based on nutritional requirements and budget constraints. 

 

  • Objective functions are used in telecommuting, network optimization, and resource allocation to maximize bandwidth and data throughput while minimizing power consumption. 

 

  • In business, to calculate the maximum profit, we use an objective function to find the optimal mix of products or services to maximize profit.  
Max Pointing Out Common Math Mistakes

Common Mistakes and How to Avoid Them in Objective Function

Students often make mistakes when finding the objective function. Here are some common mistakes and tips to avoid them. 
 

Mistake 1

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Misidentifying the objective function
 

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

Misunderstanding the problems related to the objective function, for example, they might find the cost minimization when the problem is related to profit maximization. To avoid this confusion, always go through the question carefully and identify words like maximize revenue, minimize total cost, optimize delivery time, etc. 
 

Mistake 2

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Including too many terms or constraints
 

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

Students usually include terms or constraints to the objective function, making it difficult to solve. Simplifying the key terms and concepts and analyzing the principal component will reduce the difficulty. 
 

Mistake 3

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Ignoring the coefficients in the objective function
 

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

When finding the objective function, students sometimes ignore the coefficients of the function, which can lead to errors. To avoid this error, always mark the coefficient part in the problem and also verify whether it is correct or not.

Mistake 4

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Maximizing instead of minimizing
 

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

Students sometimes identify the quantity by calculating the maximum instead of minimizing, which will result in errors. To avoid always reading the question properly and then identify what to find, is it the maximizing objective function or the minimizing objective function? 
 

Mistake 5

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Forgetting to add units
 

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

Students mostly find the correct value and forget to add the unit, which makes the answer meaningless. So always write the unit next to the answer and each variable.  

arrow-right
Max from BrightChamps Saying "Hey"

Solved Examples on Objective Function

Ray, the Character from BrightChamps Explaining Math Concepts
Max, the Girl Character from BrightChamps

Problem 1

For example, a farmer has at most 12 hours a day to work on two crops: wheat and corn. He spends 3 hours cultivating one acre of wheat and 2 hours on one acre of corn. He can manage a maximum of 4 acres in total. Furthermore, he earns a profit of Rs 50 per acre of wheat and Rs 80 per acre of corn. Determine the objective function

Ray, the Boy Character from BrightChamps Saying "Let’s Begin"

 P = 50x + 80y
 

Explanation

 Let:
x be the number of acres of wheat
y be the number of acres of corn 

The objective function is to maximize profit, which is the total profit from both crops:
The farmer plants x acres of wheat and y acres of corn, 
So the profit from wheat = 50x 
Profit from corn = 80y
So, total profit: P = 50x + 80y
The time constraint: 3x + 2y ≤ 12
Land constraint: x + y ≤ 4

Max from BrightChamps Praising Clear Math Explanations
Max, the Girl Character from BrightChamps

Problem 2

A factory makes two products, A and B. Profit on A is $40 per unit and on B is $30 per unit. The objective is to maximize the total profit. Write the objective function.

Ray, the Boy Character from BrightChamps Saying "Let’s Begin"

P = 40x + 30y
 

Explanation

Let x be the unit of product A
y is the unit of product B
The profit per unit from product A = $40 per unit
The profit per unit from product B = $30 per unit
The profit from product A = 40x
The profit from product B = 30y
So, P = 40x + 30y

Max from BrightChamps Praising Clear Math Explanations
Max, the Girl Character from BrightChamps

Problem 3

A bakery sells cakes and pastries. Each cake gives a revenue of $20 and each pastry gives $8. How should the bakery maximize its revenue?

Ray, the Boy Character from BrightChamps Saying "Let’s Begin"

The objective function to maximize the total revenue is: R = 20x + 8y
 

Explanation

Let us consider the number of cakes sold is x
The number of pastries sold is y
The total revenue is the sum of revenue from cakes and pastries
Revenue from cakes = 20x 
Revenue from pastries = 8y
So, total revenue R = 20x + 8y
 

Max from BrightChamps Praising Clear Math Explanations
Max, the Girl Character from BrightChamps

Problem 4

A delivery truck uses 2 liters of fuel per km on city roads and 1.5 liters per km on highways. To reduce fuel usage, write the objective function.

Ray, the Boy Character from BrightChamps Saying "Let’s Begin"

 F = 2x + 1.5
 

Explanation

 Let x be the kilometers driven on city roads, and y be the kilometers driven on highways
Driving x km in the city uses 2x liters
Driving y km on the highway uses 1.5y liters
So, F = 2x + 1.5y
 

Max from BrightChamps Praising Clear Math Explanations
Ray Thinking Deeply About Math Problems

FAQs on Objective Function

1.What is an objective function?

Math FAQ Answers Dropdown Arrow

2.What are the common types of objective functions?

Math FAQ Answers Dropdown Arrow

3.How is an objective function written?

Math FAQ Answers Dropdown Arrow

4.Is the objective function always linear?

Math FAQ Answers Dropdown Arrow

5.What are the applications of the objective function?

Math FAQ Answers Dropdown Arrow

6.How does learning Algebra help students in India make better decisions in daily life?

Math FAQ Answers Dropdown Arrow

7.How can cultural or local activities in India support learning Algebra topics such as Objective Function ?

Math FAQ Answers Dropdown Arrow

8.How do technology and digital tools in India support learning Algebra and Objective Function ?

Math FAQ Answers Dropdown Arrow

9.Does learning Algebra support future career opportunities for students in India?

Math FAQ Answers Dropdown Arrow
Math Teacher Background Image
Math Teacher Image

Jaskaran Singh Saluja

About the Author

Jaskaran Singh Saluja is a math wizard with nearly three years of experience as a math teacher. His expertise is in algebra, so he can make algebra classes interesting by turning tricky equations into simple puzzles.

Max, the Girl Character from BrightChamps

Fun Fact

: He loves to play the quiz with kids through algebra to make kids love it.

INDONESIA - Axa Tower 45th floor, JL prof. Dr Satrio Kav. 18, Kel. Karet Kuningan, Kec. Setiabudi, Kota Adm. Jakarta Selatan, Prov. DKI Jakarta
INDIA - H.No. 8-2-699/1, SyNo. 346, Rd No. 12, Banjara Hills, Hyderabad, Telangana - 500034
SINGAPORE - 60 Paya Lebar Road #05-16, Paya Lebar Square, Singapore (409051)
USA - 251, Little Falls Drive, Wilmington, Delaware 19808
VIETNAM (Office 1) - Hung Vuong Building, 670 Ba Thang Hai, ward 14, district 10, Ho Chi Minh City
VIETNAM (Office 2) - 143 Nguyễn Thị Thập, Khu đô thị Him Lam, Quận 7, Thành phố Hồ Chí Minh 700000, Vietnam
Dubai - BrightChamps, 8W building 5th Floor, DAFZ, Dubai, United Arab Emirates
UK - Ground floor, Redwood House, Brotherswood Court, Almondsbury Business Park, Bristol, BS32 4QW, United Kingdom