Question
Question: Consider a curve y = f(x) in xy plane. The curve passes through origin and has the property that a s...
Consider a curve y = f(x) in xy plane. The curve passes through origin and has the property that a segment of tangent drawn at any point P(x, f(x)) and the line y = 3 gets bisected by the line x + y = 1, then the equation of the curve is (y−p)2=q(r−x−y), where p, q, r are integers. Then p2+q−2r equals

8
16
32
24
16
Solution
Let the equation of the curve be y=f(x). The curve passes through the origin, so f(0)=0. Let P(x,y) be a point on the curve. The equation of the tangent at P(x,y) is Y−y=dxdy(X−x). Let m=dxdy. The tangent is Y−y=m(X−x). The tangent intersects the line y=3 at point Q. Let the coordinates of Q be (XQ,3). Substituting Y=3 in the tangent equation: 3−y=m(XQ−x). XQ−x=m3−y⟹XQ=x+m3−y. So, Q=(x+m3−y,3).
The segment of the tangent drawn at P(x,y) and the line y=3 is the segment PQ, where P(x,y) and Q(x+m3−y,3). The midpoint of the segment PQ is M=(2x+(x+m3−y),2y+3)=(22x+m3−y,2y+3)=(x+2m3−y,2y+3).
The problem states that this midpoint M is bisected by the line x+y=1. This means M lies on the line x+y=1. Substituting the coordinates of M into the equation x+y=1: (x+2m3−y)+(2y+3)=1. Replace m with dxdy: x+2dxdy3−y+2y+3=1. Multiply the entire equation by 2dxdy: 2xdxdy+(3−y)+(y+3)dxdy=2dxdy. Rearrange the terms to form a differential equation: (2x+y+3−2)dxdy=y−3. (2x+y+1)dxdy=y−3. dxdy=2x+y+1y−3.
This is a first-order differential equation. To solve it, we can use a substitution to make it homogeneous. Let y−3=v and x=X−2. Then dy=dv and dx=dX. dXdv=2(X−2)+(v+3)+1v=2X−4+v+4v=2X+vv. This is a homogeneous equation in v and X. Let v=uX. Then dXdv=u+XdXdu. u+XdXdu=2X+uXuX=2+uu. XdXdu=2+uu−u=2+uu−u(2+u)=2+uu−2u−u2=2+u−u−u2=−2+uu(1+u). Separating variables: u(1+u)2+udu=−XdX. Using partial fraction decomposition for the left side: u(1+u)2+u=uA+1+uB. 2+u=A(1+u)+Bu. Setting u=0, we get 2=A(1)⟹A=2. Setting u=−1, we get 2−1=B(−1)⟹1=−B⟹B=−1. So, the equation is (u2−1+u1)du=−XdX. Integrating both sides: ∫(u2−1+u1)du=∫−XdX. 2ln∣u∣−ln∣1+u∣=−ln∣X∣+C1. ln1+uu2=−ln∣X∣+C1. ln1+uu2+ln∣X∣=C1. ln1+uu2X=C1. 1+uu2X=eC1=K, where K is a non-zero constant. (We need to consider the case K=0 later).
Substitute back u=Xv: 1+Xv(Xv)2X=K. XX+vXv2=K. X+vv2=K. v2=K(X+v).
Substitute back v=y−3 and X=x+2: (y−3)2=K((x+2)+(y−3)). (y−3)2=K(x+2+y−3). (y−3)2=K(x+y−1).
The curve passes through the origin (0, 0). Substitute x=0,y=0 into the equation: (0−3)2=K(0+0−1). (−3)2=K(−1). 9=−K⟹K=−9.
Thus, the equation of the curve is (y−3)2=−9(x+y−1). We are given the form (y−p)2=q(r−x−y). (y−3)2=−9(x+y−1). (y−3)2=9(−(x+y−1)). (y−3)2=9(1−x−y). Comparing this with (y−p)2=q(r−x−y), we have: p=3. q=9. r=1. These are integers as stated in the question.
We need to calculate p2+q−2r. p2+q−2r=(3)2+9−2(1). p2+q−2r=9+9−2. p2+q−2r=18−2. p2+q−2r=16.
We should also consider the case where K=0. This would mean v2=0, which implies v=0. y−3=0⟹y=3. The curve y=3 is a horizontal line. The tangent at any point (x,3) on this line is the line itself, y=3. The segment of the tangent drawn at (x,3) and the line y=3 is just the point (x,3). The midpoint of this segment (which is just the point itself) is (x,3). This midpoint must lie on the line x+y=1. So, x+3=1, which means x=−2. This implies that the line y=3 satisfies the condition only at the point (−2,3). However, the condition must hold for any point P(x,f(x)) on the curve. So y=3 is not the required curve. Also, the curve passes through the origin (0,0), which is not on the line y=3. So K=0 is not possible.
The value of p2+q−2r is 16.