Suppose $X$ is normally distributed with mean $10$ and standard deviation $1$. I take a normally-distributed noisy measurement of $X$ with standard deviation $0.1$, and the measurement is $5$. I am interested in determining the posterior distribution of $X$. Is there a general rule for this?
Thinking about it, I see this is equivalent to: $$X \sim N(10,1) \\ Y \sim N(X,0.1)$$ and then asking $P(X | Y = 5)$, which requires solving: $$P(X=x | Y=5) = \frac{f(x,5,0.1) f(x,10,1)}{ \int_{x'} f(x',5,0.1) f(x',10,1) dx'}$$ where $f$ is the normal density, but that's how far I got.