The general form of a straight line is Ax+By+C=0, whose slope is m=−BA (provided B=0).
For the first line
p(p2+1)x−y+q=0
we have A1=p(p2+1) and B1=−1, so its slope is
m1=−B1A1=−−1p(p2+1)=p(p2+1).
For the second line
(p2+1)2x+(p2+1)y+2q=0
we have A2=(p2+1)2 and B2=(p2+1), so its slope is
m2=−B2A2=−(p2+1)(p2+1)2=−(p2+1).
Let a third line with slope m be perpendicular to both given lines. For perpendicularity we need
mm1=−1andmm2=−1.
Cancelling m gives m1=m2.
Therefore the two given lines themselves must be parallel:
p(p2+1)=−(p2+1).
Factorising,
(p2+1)(p+1)=0.
Since p2+1>0 for all real p, the only real solution is
p=−1.
For p=−1 both lines have finite, equal slopes, so a unique line with slope m=−m11 is perpendicular to them.
Hence there is exactly one real value of p for which the two given lines are perpendicular to a common line.
Option B which is: exactly one value of p