Answer
The potential function is $f\left( {x,y,z} \right) = yz + z\tan x + C$, where $C$ is a constant.
Work Step by Step
1. Assuming that ${\bf{F}}$ is a vector field on a simply connected domain ${\cal D}$, we check if ${\bf{F}} = \left( {{F_1},{F_2},{F_3}} \right) = \left( {z{{\sec }^2}x,z,y + \tan x} \right)$ satisfies the cross-partials condition:
$\dfrac{{\partial {F_1}}}{{\partial y}} = \dfrac{{\partial {F_2}}}{{\partial x}}$, ${\ \ \ }$ $\dfrac{{\partial {F_2}}}{{\partial z}} = \dfrac{{\partial {F_3}}}{{\partial y}}$, ${\ \ \ }$ $\dfrac{{\partial {F_3}}}{{\partial x}} = \dfrac{{\partial {F_1}}}{{\partial z}}$
We get
$0=0$, ${\ \ \ }$ $1=1$, ${\ \ \ }$ ${\sec ^2}x = {\sec ^2}x$
From these results, we conclude that ${\bf{F}} = \left( {{F_1},{F_2},{F_3}} \right) = \left( {z{{\sec }^2}x,z,y + \tan x} \right)$ satisfies the cross-partials condition. Therefore, by Theorem 4, there is a potential function for ${\bf{F}}$.
2. Find a potential function for ${\bf{F}}$.
Let the potential function for ${\bf{F}}$ be $f\left( {x,y,z} \right)$ such that ${\bf{F}} = \nabla f = \left( {\dfrac{{\partial f}}{{\partial x}},\dfrac{{\partial f}}{{\partial y}},\dfrac{{\partial f}}{{\partial z}}} \right)$. So,
a. taking the integral of $\dfrac{{\partial f}}{{\partial x}}$ with respect to $x$ gives
$f\left( {x,y,z} \right) = \smallint z{\sec ^2}x{\rm{d}}x = z\tan x + j\left( {y,z} \right)$
b. taking the integral of $\dfrac{{\partial f}}{{\partial y}}$ with respect to $y$ gives
$f\left( {x,y,z} \right) = \smallint z{\rm{d}}y = yz + g\left( {x,z} \right)$
c. taking the integral of $\dfrac{{\partial f}}{{\partial z}}$ with respect to $z$ gives
$f\left( {x,y,z} \right) = \smallint \left( {y + \tan x} \right){\rm{d}}z = yz + z\tan x + h\left( {x,y} \right)$
Since the three ways of expressing $f\left( {x,y,z} \right)$ must be equal, we get
$z\tan x + j\left( {y,z} \right) = yz + g\left( {x,z} \right) = yz + z\tan x + h\left( {x,y} \right)$
From here, we conclude that the potential function is $f\left( {x,y,z} \right) = yz + z\tan x + C$, where $C$ is a constant.