This question relates specifically to exercise 6.2 of Chapter II of Hartshorne's Algebraic Geometry.
In the situation of that exercise, we have projective space $\mathbb{P}_{k}^{n}$ over an algebraically closed field $k$, a projective variety $X$ embedded in $\mathbb{P}_{k}^{n}$, and an irreducible hyperplane $V \subseteq \mathbb{P}_{k}^{n}$ not containing $X$. Then the intersection has some decomposition into irreducible components $$ V \cap X = Y_{1} \cap Y_{2} \cdots \cap Y_{r} $$ Hartshorne then says the following:
For each $i$, let $f_{i}$ be a local equation for $V$ on some open set $U_{i}$ of $\mathbb{P}_{k}^{n}$ for which $Y_{i} \cap U_{i} \not = \emptyset$ and let $\bar{f_{i}}$ be the restriction of $f_{i}$ to $U_{i} \cap X$
My problem is that I don't understand what "local equation" means in this context, nor what it means to restrict to $U_{i} \cap X$. My understanding of "local equation" in most contexts is the following: Let $\mathcal{I}$ be the quasi-coherent sheaf of ideals defining $V$ as a closed subscheme of $\mathbb{P}_{k}^{n}$. A "local equation for $V$ on $U_{i}$" would usually mean a section $f \in \Gamma(U, \mathcal{I})$. But then what does it mean to restrict this to $U_{i} \cap X$? Indeed $U_{i} \cap X$ is not an open subset in $U_{i}$.
Local equation just means a function which picks out $V\cap U_i$ inside $U_i$. Usually one wants this to be a generator of the ideal of all functions vanishing on $V\cap U_i$ inside $U_i$.
As far as restriction goes, $f_i$ is a function on $U_i$, and $U_i\cap X$ is a subset of it's domain, so it makes sense to talk about the restriction of $f_i$ to $U_i\cap X$ as a function. More formally, this is the image of $f_i$ under the pullback associated to the closed immersion $\iota:U_i\cap X\hookrightarrow U_i$.