The Maths
Private Key Security
Using Euler's totient function
The public key contains the modulus n, which is usually created from the product or two primes.
If n is known, then it has to be factorised into the primes in oder to determine the value of φ(n)
Using large values of n
In reality, the primes used for RSA encryption are very large and the resulting value
of the modulus n should contain at least 2048 bits.
If the public key is known, the the private key can be derived by factorising n into
it's prime factors, p and q, to then generate the value of φ(n).
For such large values of n, it is so exceedingly difficult and time consuming to find the prime factors,
that it is infeasible to find the private key from the resulting public key.