In this article, we’ll discuss how to integrate partial derivatives using partial integration. To refresh our knowledge, we’ll also review the definition of integration and partial derivatives.
To understand partial integration, you need to know first the definition of integration. Integration is the process of finding a function’s antiderivative function. You can think about integration as the reverse operation of differentiation.
When you integrate some function f(x), you find its antiderivative function. We often denoted this function as F(x), and this process is called taking the indefinite integral. Using this function, a definite integral calculates the area underneath the curve of f(x) on a specific interval.
The notation for integrating f(x) looks like this:
∫f(x)dx=F(x)+C
Taking the derivative of F(x) outputs back f(x), which is why F(x) is called the antiderivative function. The fundamental theorem of calculus assures this relationship between integration and differentiation. In other words, if ∫f(x)dx=F(x)+C, then F’(x)=f(x). We can also say that ∫f’(x)dx=f(x)+C.
As a reminder, we use partial differentiation to differentiate a function of two or more variables. Partial derivatives measure the rate of change of a multivariable function when we let just one of its variables change, while the rest are held constant.
For example, consider the function f(x,y)=xy+x2y, which is a function of two variables. To find ∂x∂f, we treat y as a constant, and then differentiate the function normally. To find ∂y∂f, we treat x as a constant, and then differentiate the function normally.
So for our function f(x,y)=xy+x2y, the partial derivative with respect to x is ∂x∂f(x,y)=y+2yx. The partial derivative with respect to y is ∂y∂f(x,y)=x+x2.
A similar logic holds for partial integration. Suppose we take the integral of a partial derivative of f(x,y). To integrate a partial derivative with respect to x, we would integrate with respect to x while treating y as a constant.
The resulting partial integration formula would look something like:
∫∂x∂f(x,y)dx=F(x,y)+C(y)
To integrate a partial derivative with respect to y, we would integrate with respect to y while treating x as a constant.
This would look something like:
∫∂y∂f(x,y)dy=F(x,y)+C(x)
Note that in this context, partial integration is different than integration by parts and integration by partial fractions. Here, partial integration outputs an integral of a partial derivative with respect to one variable of a multivariable function. By contrast, integration by parts is a technique used to integrate a product of functions, and partial fraction integration is a method used to integrate rational functions.
How Do You Solve Partial Integration?
To use partial integration, we fix one variable as a constant. To integrate a partial derivative with respect to x, we must treat y as a constant. To integrate a partial derivative with respect to y, we must treat x as a constant.
Integrating a partial derivative with respect to one variable by treating the other variable as a constant looks like this:
∫∂x∂f(x,y)dx=F(x,y)+C(y)
or
∫∂y∂f(x,y)dy=F(x,y)+C(x)
Note that our integrand is a derivative. By the fundamental theorem of calculus, the integral of the derivative of a function should equal the original function itself. So, in the above cases, F(x,y)+C(y)=f(x,y) and F(x,y)+C(x)=f(x,y).
Dr. Hannah Fry is an associate professor at University College London. She discusses more about the fundamental theorem:
After we designate one variable as a constant, partial integration becomes nearly identical to normal integration. But, notice that C(y) and C(x) appear at the end of our antiderivative function, instead of the normal constant of integration C. Why is this?
When integrating a function of one variable, the constant C always accompanies the antiderivative function, since the derivative of any constant evaluates to zero. Since C can be any constant, F(x)+C gives us a family of infinitely many functions whose derivative is f(x,y).
Similarly, when taking the derivative of a function with respect to x, we treat the variable y as a constant. As a result, the derivative of any function of y evaluates to zero. Thus the expression F(x,y)+C(y) represents a family of infinitely many functions whose derivative is f(x,y).
Let’s walk through an example with our polynomial function f(x,y)=xy+x2y, using its partial derivatives ∂x∂f(x,y)=y+2yx and ∂y∂f(x,y)=x+x2.
First, let’s find the integral of the partial derivative with respect to x. So, we will treat y as a constant when integrating ∂x∂f(x,y)=y+2yx. To more easily imagine y as a constant, one handy trick is to replace ywith c or k, which are two variables that are commonly used to represent constant values.
Let’s use this trick and replace y with k. Then, we’ll use the power rule for integration. Remember to change k back to y at the end.
∫∂x∂f(x,y)dx=∫(y+2yx)dx
=∫(k+2kx)dx
=kx+22kx2
=kx+kx2
=xy+x2y+C(y)
Now, let’s find the integral of the partial derivative with respect to y. So, we will treat x as a constant when integrating ∂y∂f(x,y)=x+x2. To more easily imagine x as a constant, we’ll replace x with k.
Using the power rule for integration, we have:
∫∂y∂f(x,y)dy=∫(x+x2)dy
=∫(k+k2)dy
=ky+k2y
=xy+x2y+C(x)
Integration Rules
To quickly calculate antiderivative functions of partial derivatives, it’s helpful to memorize the list of integration rules below. Assume that f and g are continuous functions:
Sum Rule
∫[f(x)+g(x)]dx=∫f(x)dx+∫g(x)dx
Difference Rule
∫[f(x)−g(x)]dx=∫f(x)dx−∫g(x)dx
Constant Multiplier Rule
∫kf(x)dx=k∫f(x)dx for some constant k
Power Rule
∫xndx=n+1xn+1+C for some real number n
Constant Rule
∫adx=ax+C for some constant a
Reciprocal Rules
∫x1dx=∫x−1dx=ln∣x∣+C
∫ax+b1dx=a1ln(ax+b)+C
Exponential and Logarithmic Function Rules
∫exdx=ex+C
∫axdx=ln(a)ax+C, for any positive real number a
∫ln(x)dx=xln(x)−x+C
Trigonometric Function Rules
For these rules, assume that x is in radians.
∫sinxdx=−cosx+C
∫cosxdx=sinx+C
∫sec2xdx=tanx+C
∫csc2xdx=−cotx+C
∫secxtanxdx=secx+C
∫cscxcotxdx=−cscx+C
∫1−x2dx=sin−1x+C
∫1−x2−dx=cos−1x+C
∫1+x2dx=tan−1x+C
∫sin(ax)dx=a−cos(ax)+C for some real number a
∫cos(ax)dx=asin(ax)+C for some real number a
Absolute Value Rule
∫∣x∣dx=2x∣x∣+C
Dr. Hannah Fry explains more about integration rules in this lecture clip:
Partial Integration Examples
Example 1
Suppose that ∂x∂f(x,y)=xy2+sin(x) is the partial derivative with respect to y of some function f(x,y). Find f(x,y).
Solution
We’ll integrate with respect to y, so we must treat x as a constant. Then, using the sum rule, power rule, and trigonometry rules, we have:
∫∂x∂f(x,y)dy=∫(xy2+sin(x))dy
=∫(ky2+sin(k))dy
=3ky3+ysin(k)
=3xy3+ysin(x)+C(x)
Thus f(x,y)=3xy3+ysin(x)+C(x). To check our answer, we can take the partial derivative of f(x,y) with respect to y. By hand or with an integral calculator, the resulting partial derivative is ∂x∂f(x,y)=xy2+sin(x), which is the partial derivative we started with.
Example 2
Suppose that ∂x∂f(x,y)=yex+xy is the partial derivative with respect to x of some function f(x,y). Find f(x,y).
Solution
We’ll integrate with respect to x, so we must treat y as a constant. Then, using the sum rule, exponential rule, and logarithmic rule, we have:
∫∂x∂f(x,y)dx=∫(yex+xy)dx
=∫(kex+xk)dx
=kex+kln(x)
=yex+yln(x)+C(y)
Thus $f(x, y) = ye^x + y\ln{(x)} + C(y)$.
Practice Makes Perfect
Outlier’s calculus course is a fantastic way to master integration and other skills in integral calculus:
Outlier offers accessible college classes at a fraction of the cost—80% less expensive than traditional college.
Earn 3 college credits towards your degree for every course you complete, accredited by the University of Pittsburgh, a top 60 school.
Calculus courses are interactive and taught by world-renowned math professors, including Tim Chartier of Davidson College, Hannah Fry of University College London, and John Urschel of MIT.
Course resources include question sets, quizzes, and an active-learning based digital textbook. You’ll also have access to free tutors and a study group.
Transferring credits is easy.
If you do the work and don’t pass, you’ll receive a full refund.
Exam windows are flexible, and lectures are viewable on demand, anywhere.
Outlier (from the co-founder of MasterClass) has brought together some of the world's best instructors, game designers, and filmmakers to create the future of online college.