# Solving Optimization Problems in Calculus: A Daily Fantasy Baseball Connection

Optimization problems are an essential part of calculus, as they involve finding the maximum or minimum value of a function within certain constraints. These problems often arise in real-world applications where resources are limited, and we need to make the best possible use of them. In this post, we’ll explore what an optimization problem is in calculus and discuss why we should care about them when making a daily fantasy baseball lineup on FanDuel.

## What is an Optimization Problem?

In a typical optimization problem, we are given two equations: one that represents the restriction or constraint and another that we aim to maximize or minimize.

For instance, imagine you have a limited amount of material to build a fence around a rectangular garden. In this case, the restriction equation represents the perimeter of the fence, while the equation to maximize or minimize represents the area of the garden. Solving an optimization problem involves finding the dimensions of the garden that maximize its area while staying within the constraint of the available fencing material.

If you want to read more about how to solve an optimization problem that you would come across in calculus, you can see an example worked out here.