My Algebraic Topology book states the following:
Let $k:X\to Y$ be continuous path. If $f$ and $g$ are two paths in $X$ with $f(1)=g(0)$, then $$k\circ(f*g)=(k\circ f)*(k\circ g)$$
I'm trying to construct an example to understand this concept better, but going wrong somewhere.
Let $f:[0,1]\to(t,3t)$ and $g:[0,1]\to (t,3-3t)$. Clearly $f(1)=g(0)$. Let $k:\Bbb{R^2}\to\Bbb{R^2}$ be defined as $k:(x,y)\to(x^2,y^2)$. Then the mapping of $f$ will be $f':[0,1]\to(t',9t')$, and $g':[0,1]\to(t',9t'-18\sqrt{t'}+9)$. This can easily be verified. Now $f'*g'=(k\circ f)*(k\circ g)$ is $\left\{ \begin{array}{l l} (t',18t') & \quad \text{for $t'\in[0,\frac{1}{2}]$}\\ (t',18t'-18\sqrt{2t'-1}) & \quad \text{for $t'\in[\frac{1}{2},1]$} \end{array} \right.$
Now we shall determine $k\circ(f*g)$. Here $f*g$ is $\left\{ \begin{array}{l l} (t,6t) & \quad \text{for $t\in[0,\frac{1}{2}]$}\\ (t,6-6t) & \quad \text{for $t\in[\frac{1}{2},1]$} \end{array} \right.$
Hence, $k\circ(f*g)$ is $\left\{ \begin{array}{l l} (t',36t') & \quad \text{for $t'\in[0,\frac{1}{2}]$}\\ (t',36t'-72\sqrt{t'}+36) & \quad \text{for $t'\in[\frac{1}{2},1]$} \end{array} \right.$
So I'm getting $$(k\circ f)*(k\circ g)\neq k\circ (f*g)$$
Could someone please help me out? I realise this might entail a lot of seemingly mundane calculations, but I've been stuck on this for some time now, and would greatly appreciate any inputs.
I assume that $k$ is merely continuous, not a continuous path (that would require $X$ to be an interval). In fact your example $k$ is a continuous map $\mathbb R^2\to\mathbb R^2$, not a path. But your $f$ and $g$ fail to be paths in $\mathbb R^2$. You should have something like $f\colon[0,1]\to\mathbb R^2$, $t\mapsto (t,3t)$ and $g\colon[0,1]\to\mathbb R^2$, $t\mapsto (t+1,3-3t)$
After your edits, note that $f(t)=(t,3t)$, $g(t)=(t,3-3t)$ and $k(x,y)=(x^2,y^2)$ implies $(k\circ f)(t)=(t^2,9t^2)$, $(k \circ g)(t)=(t^2,9-18t+9t^2)$, hence (of course) $(k\circ f)(1)=(1,9)=(k\circ g)(0)$. No square root gets introduced anywhere.